@include('pos.supplier._purchasing_nav')

Supplier Due Summary

{{-- Today's Due Bills --}}
Today Due Bill ({{ now()->toDateString() }})

@php $totalAmount = 0; @endphp @forelse($todayDue as $index => $bill) @php $totalAmount += $bill->total_amount; @endphp @empty @endforelse
No. Bill Number Supplier Create Date Due Date Bill Amount Create User
{{ $index + 1 }} {{ $bill->supplier_bill_details_billnumber }} {{ $bill->supplier->supplier_company }} {{ $bill->supplier_bill_details_create_date->format('M d, Y') }} {{ $bill->supplier_bill_details_due_date->format('M d, Y') }} {{ number_format($bill->total_amount, 2) }} {{ $bill->createdByUser ? explode(' ', $bill->createdByUser->name)[0] : '' }}
No bills due today
Total Amount {{ number_format($totalAmount, 2) }}
{{-- Next 7 Days Due Bills --}} @php $sevenDayDate = now()->addDays(7)->toDateString(); @endphp
Bills to be paid in the next 7 days ({{ now()->toDateString() }} to {{ $sevenDayDate }})

@php $totalAmount = 0; @endphp @forelse($sevenDaysDue as $index => $bill) @php $totalAmount += $bill->total_amount; @endphp @empty @endforelse
No. Bill Number Supplier Create Date Due Date Bill Amount Create User
{{ $index + 1 }} {{ $bill->supplier_bill_details_billnumber }} {{ $bill->supplier->supplier_company }} {{ $bill->supplier_bill_details_create_date->format('M d, Y') }} {{ $bill->supplier_bill_details_due_date->format('M d, Y') }} {{ number_format($bill->total_amount, 2) }} {{ $bill->createdByUser ? explode(' ', $bill->createdByUser->name)[0] : '' }}
No bills due in next 7 days
Total Amount {{ number_format($totalAmount, 2) }}
{{-- Current Month Due Bills --}}
Current Month Due Bill ({{ now()->format('F') }})

@php $totalAmount = 0; @endphp @forelse($monthDue as $index => $bill) @php $totalAmount += $bill->total_amount; @endphp @empty @endforelse
No. Bill Number Supplier Create Date Due Date Bill Amount Create User
{{ $index + 1 }} {{ $bill->supplier_bill_details_billnumber }} {{ $bill->supplier->supplier_company }} {{ $bill->supplier_bill_details_create_date->format('M d, Y') }} {{ $bill->supplier_bill_details_due_date->format('M d, Y') }} {{ number_format($bill->total_amount, 2) }} {{ $bill->createdByUser ? explode(' ', $bill->createdByUser->name)[0] : '' }}
No bills due this month
Total Amount {{ number_format($totalAmount, 2) }}
@push('scripts') @endpush