@extends('layouts.app') @section('title', 'Expired Payment Schedules') @section('content')

Expired Payment Schedules

Back Monthly Schedule Create Schedule
@if(session('success')) @endif @if(session('error')) @endif
Total Expired Schedules

{{ $totalCount }}

Unpaid expired commitments
Total Amount

BDT {{ number_format($totalAmount, 2) }}

From expired schedules
Total Committed Amount

BDT {{ number_format($totalPaidAmount, 2) }}

Against expired schedules
Remaining Amount

BDT {{ number_format($totalRemainingAmount, 2) }}

Still due
Clear
@if($expiredSchedulesPaginated->count() > 0)
Expired Payment Schedules
@foreach($expiredSchedulesPaginated as $schedule) @endforeach
# Provider Invoice Due Date Days Overdue Amount Committed Amount Remaining Payment Status Notes Actions
{{ $loop->iteration + ($expiredSchedulesPaginated->currentPage() - 1) * $expiredSchedulesPaginated->perPage() }} {{ $schedule->provider->company_name ?? $schedule->provider->name ?? 'N/A' }} @if($schedule->invoice_id) {{ $schedule->invoice->bill_no ?? 'Invoice #' . $schedule->invoice_id }} @else @endif {{ $schedule->due_date->format('d M Y') }} {{ $schedule->days_overdue }} days BDT {{ number_format($schedule->amount, 2) }} BDT {{ number_format($schedule->paid_amount, 2) }} BDT {{ number_format($schedule->remaining_amount, 2) }} @if($schedule->payment_status == 'paid') Paid @elseif($schedule->payment_status == 'partial') Partial @else Pending @endif @if($schedule->notes) {{ Str::limit($schedule->notes, 30) }} @else @endif
@else
No expired payment schedules found for the selected period.

All payment schedules are up to date!

@endif
@endsection