@extends('admin.layouts.app') @section('title','Invoices') @section('content') @if(session('success'))
{{ session('success') }}
@endif
@forelse($invoices as $key => $invoice) @empty @endforelse
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' }}
@csrf @method('DELETE')
No invoices found.
@endsection