@extends('layouts.app') @section('title', 'Monthly Payment Schedules') @section('content')
| Date | Day | Total Amount | Committed Amount | Remaining Amount | Total Schedules | Status | Actions |
|---|---|---|---|---|---|---|---|
| {{ $dateObj->format('Y-m-d') }} @if($isToday) Today @endif | {{ $dateObj->format('l') }} | BDT {{ number_format($dayAmount, 2) }} | BDT {{ number_format($dayPaidAmount, 2) }} | BDT {{ number_format($dayRemainingAmount, 2) }} | {{ $dayCount }} | @if($isToday) Today @elseif($isPast) Past @else Future @endif | View |
| Grand Total: | BDT {{ number_format($totalAmount, 2) }} | BDT {{ number_format($totalPaidAmount, 2) }} | BDT {{ number_format($totalRemainingAmount, 2) }} | {{ $totalCount }} | |||
| # | Provider | Invoice | Due Date | Amount | Committed Amount | Remaining | Payment Status | Notes | Actions |
|---|---|---|---|---|---|---|---|---|---|
| {{ $loop->iteration }} | {{ $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') }} @if($schedule->isOverdue()) Overdue @endif | 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 |