@extends('layouts.app') @section('title', 'Payment Schedule Details') @section('content')

Payment Schedule Details

Edit
Schedule Information
@if($paymentSchedule->notes) @endif
Provider: {{ $paymentSchedule->provider->company_name ?? $paymentSchedule->provider->name ?? 'N/A' }}
Invoice: @if($paymentSchedule->invoice_id) {{ $paymentSchedule->invoice->bill_no ?? 'Invoice #' . $paymentSchedule->invoice_id }} @else @endif
Due Date: {{ $paymentSchedule->due_date->format('d M Y') }} @if($paymentSchedule->isOverdue()) Overdue @endif
Amount: BDT {{ number_format($paymentSchedule->amount, 2) }}
Committed Amount: BDT {{ number_format($paymentSchedule->paid_amount, 2) }}
Remaining Amount: BDT {{ number_format($paymentSchedule->remaining_amount, 2) }}
Payment Status: @if($paymentSchedule->payment_status == 'paid') Paid @elseif($paymentSchedule->payment_status == 'partial') Partial @else Pending @endif
Notes: {{ $paymentSchedule->notes }}
Created By: @if($paymentSchedule->createdBy) {{ $paymentSchedule->createdBy->name ?? $paymentSchedule->createdBy->company_name ?? 'N/A' }} @else @endif
Created At: {{ $paymentSchedule->created_at->format('d M Y, h:i A') }}
Updated At: {{ $paymentSchedule->updated_at->format('d M Y, h:i A') }}
Quick Actions
Edit Schedule
@csrf @method('DELETE')
@if($paymentSchedule->invoice_id) View Invoice @endif
@endsection