@extends('layouts.app') @section('content')

Payment Schedules - {{ $date->format('l, F d, Y') }}

All Schedules
@if(session('success'))
{{ session('success') }}
@endif
Total Expected Amount

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

Total Payment Amount

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

Total Schedules

{{ $totalCount }}

@if($schedules->count() > 0)
{{ $date->format('l, F d, Y') }} @if($date->isToday()) Today @endif {{ $schedules->count() }} schedule(s)
@foreach($schedules as $index => $schedule) @endforeach
# Invoice Company Name Mobile Number Expected Amount Payment Amount Paid On Method Actions
{{ $index + 1 }} {{ optional($schedule->salesInvoice)->invoice_no ?? 'N/A' }} @php $user = $schedule->user; $displayName = $user && $user->company_name ? $user->company_name : ($user ? $user->name : 'N/A'); @endphp {{ $displayName }} @php $user = $schedule->user; $mobileNumber = $user && $user->phone ? $user->phone : 'N/A'; @endphp {{ $mobileNumber }} BDT {{ number_format($schedule->expected_payment_amount, 2) }} BDT {{ number_format($schedule->transaction_payment_amount ?? 0, 2) }} {{ optional($schedule->paid_on)->format('Y-m-d') ?? '—' }} {{ $schedule->payment_method ? ucfirst(str_replace('_', ' ', $schedule->payment_method)) : '—' }} View Edit
Date Total: BDT {{ number_format($totalExpectedAmount, 2) }} BDT {{ number_format($totalPaymentAmount, 2) }}
@else

No payment schedules found for {{ $date->format('F d, Y') }}.

@endif
@endsection