@extends('layouts.admin') @section('title', 'Invoices') @section('content') @php($canManage = auth()->user()?->hasPermission('invoices', 'manage'))

Invoices

Create and manage company & customer invoices

@if($canManage) Create Invoice @endif
Reset
Invoice Number Customer Name Invoice Type Invoice Date Due Date Grand Total Payment Status Actions @forelse($invoices as $invoice) {{ $invoice->invoice_number }} {{ $invoice->bill_to_name }} {{ ucfirst($invoice->invoice_type) }} {{ $invoice->invoice_date->format('d M Y') }} {{ $invoice->due_date->format('d M Y') }} ₹{{ number_format((float) $invoice->grand_total, 2) }} {{ ucfirst($invoice->payment_status) }}
@if($canManage)
@csrf @method('DELETE')
@endif
@empty No invoices found. @endforelse
{{ $invoices->links() }}
@endsection