Hi {{ Auth::user()->name ?? session('user_name') }}!
it’s good to see you again.
income statistics
Revenue Updates
Customers
{{ $customerCount }}
Invoices
{{ $invoiceCount }}
Staff
{{ $staffCount }}
Stores
{{ $storeCount }}
Invoice List
SHORT BY
| ID | STORE | CLIENT | CONTACT | DATE | STATUS | ACTION |
|---|---|---|---|---|---|---|
| {{ $sno++ }} | {{ $invoice->store->store ?? 'N/A' }} | {{-- Name (Assuming relationship with customer or store) --}}{{ $invoice->customer->name ?? 'N/A' }} | {{-- Mobile --}}{{ optional($invoice->customer)->mobile ?? 'N/A' }} | {{-- Joining / Created Date --}}{{ $invoice->created_at->format('d-m-Y') }} | {{-- Status --}}@php $total = floatval($invoice->total_amount); $paid = floatval($invoice->advance_paid); if ($paid >= $total && $total > 0) { $status = 'Paid'; $badge = 'success'; } elseif ($paid > 0 && $paid < $total) { $status='Partially Paid' ; $badge='warning' ; } else { $status='Not Paid' ; $badge='danger' ; } @endphp {{ $status }} | {{-- Action --}}
|