@if(session('success')) @endif @if(session('error')) @endif

My Bills

SHOW ENTRIES
@if($bills->count() > 0)
@foreach($bills as $bill) @if($bill->notes) @endif @endforeach
Bill Number Bill for Month Due Date Amount Discount Late Fee Total Amount Status Generated Action
{{ $bill->bill_number }} @if($bill->month_year) @php try { $date = \Carbon\Carbon::createFromFormat('Y-m', $bill->month_year); echo $date->format('M, Y'); } catch (\Exception $e) { echo $bill->month_year; } @endphp @else N/A @endif {{ $bill->due_date ? \Carbon\Carbon::parse($bill->due_date)->format('M d, Y') : 'N/A' }} ৳{{ number_format($bill->amount, 2) }} ৳{{ number_format($bill->discount ?? 0, 2) }} ৳{{ number_format($bill->late_fee ?? 0, 2) }} ৳{{ number_format($bill->total_amount, 2) }} {{ ucfirst($bill->status) }} {{ $bill->created_at->format('M d, Y') }} @if($bill->status === 'pending' || $bill->status === 'overdue') @else - @endif
{{ $bill->notes }}
{{ $bills->links() }}
@else

No Bills Found

You don't have any bills yet. Bills will appear here once they are generated.

@endif