{{-- resources/views/sales/invoices/index.blade.php --}} @extends('layouts.app') @section('title', 'Sales Invoices') @section('content')
| Invoice # | Customer | Date | Due Date | Total | Outstanding | Status | Actions |
|---|---|---|---|---|---|---|---|
| {{ $inv->number }} | {{ $inv->customer->name }} | {{ $inv->date->format('d M Y') }} | {{ $inv->due_date ? $inv->due_date->format('d M Y') : '-' }} | ৳{{ number_format($inv->total, 2) }} | ৳{{ number_format($inv->outstanding, 2) }} | @php $cls=['draft'=>'secondary','submitted'=>'info','partially_paid'=>'warning','paid'=>'success','overdue'=>'danger','cancelled'=>'secondary']; @endphp {{ ucfirst(str_replace('_',' ',$inv->status)) }} | |
| No invoices found. Create your first invoice | |||||||