@extends('admin.layouts.app') @section('title','Invoices') @section('content')
Manage invoices and payment status
| S.No | Invoice No | Date | Customer | Booking No | Grand Total | Payment | Action |
|---|---|---|---|---|---|---|---|
| {{ $key + 1 }} | {{ $invoice->invoice_no }} | {{ \Carbon\Carbon::parse($invoice->invoice_date)->format('d-m-Y') }} | {{ $invoice->customer->customer_name ?? '-' }} | {{ $invoice->booking->booking_no ?? '-' }} | ₹{{ number_format($invoice->grand_total, 2) }} | @php $badgeClass = 'badge-danger'; if($invoice->payment_status == 'Paid') { $badgeClass = 'badge-success'; } elseif($invoice->payment_status == 'Partial') { $badgeClass = 'invoice-payment-partial'; } @endphp {{ $invoice->payment_status ?? 'Pending' }} | |
| No invoices found. | |||||||