Try adjusting your search or filters
@if($this->activeFiltersCount > 0) @endif| ID @if($sortBy === 'id') @else @endif | Reference @if($sortBy === 'reference') @else @endif | Customer | Date @if($sortBy === 'invoice_date') @else @endif | Status @if($sortBy === 'status') @else @endif | Drops | Qty | Value | Actions |
|---|---|---|---|---|---|---|---|---|
| #{{ $invoice->id }} | {{-- Reference --}}
{{ $invoice->reference ?? '—' }}
@if($invoice->supplier_invoice_ref)
{{ $invoice->supplier_invoice_ref }}
@endif
|
{{-- Customer --}}
{{ $invoice->customer?->name ?? '—' }} | {{-- Date --}}@if($invoice->invoice_date) {{ $invoice->invoice_date->format('d M Y') }} @else — @endif | {{-- Status Badge --}}@if($statusOpt) {{ $statusOpt['label'] }} @endif | {{-- Drops --}}
{{ $invoice->drops_count }}
@if($invoice->status === 'draft' && $invoice->unshipped_drops_count > 0)
{{ $invoice->unshipped_drops_count }} unshipped
@endif
|
{{-- Qty --}}
{{ number_format($invoice->total_qty ?? 0) }} | {{-- Value --}}{{ $invoice->customer?->currency ?? '$' }}{{ number_format($invoice->total_value ?? 0, 2) }} | {{-- Actions --}}
{{-- View/Edit --}}
{{-- Download File --}}
@if($invoice->invoice_file_path)
@endif
{{-- Status-specific actions --}}
@if($invoice->status === 'draft')
@if($invoice->drops_count === 0)
@elseif($invoice->unshipped_drops_count > 0)
@else
@endif
@endif
{{-- Sent indicator for completed invoices --}}
@if(in_array($invoice->status, ['ready', 'sent_to_zoho', 'complete']))
@endif
|