@forelse ($invoices as $invoice) {{-- Serial Number --}} {{ ($invoices->currentPage() - 1) * $invoices->perPage() + $loop->iteration }} {{-- Invoice Number --}} {{ $invoice->invoice_no }} {{-- Customer --}}
{{ $invoice->customer->brauser_name ?? 'N/A' }}
{{-- Invoice Date --}} {{ \Carbon\Carbon::parse($invoice->invoice_date)->format('d M, Y') }} {{-- Status --}} @php $status = strtolower($invoice->status ?? 'pending'); $badge = [ 'paid' => 'success', 'overdue' => 'danger', 'pending' => 'warning' ][$status] ?? 'warning'; @endphp {{ ucfirst($invoice->status ?? 'Pending') }} {{-- Total --}} ₹{{ number_format($invoice->total_amount, 2) }} {{-- Round Off --}} {{ number_format($invoice->round_off ?? 0, 2) }} {{-- Bank --}} {{ $invoice->bank ?? '-' }} {{-- Created Date --}} {{ $invoice->created_at ? $invoice->created_at->format('d M, Y') : '-' }} {{-- Actions --}}
{{-- View --}} {{-- Edit --}} {{-- Download --}} {{-- Delete --}}
@empty
No invoices found.
@endforelse