@php // Read permissions once so the invoice actions stay easy to follow. $canCreateInvoice = \App\Support\AdminAccess::canAction('invoices', 'create'); $canViewInvoice = \App\Support\AdminAccess::canAction('invoices', 'view'); $canEditInvoice = \App\Support\AdminAccess::canAction('invoices', 'edit'); $canDeleteInvoice = \App\Support\AdminAccess::canAction('invoices', 'delete'); @endphp
| {{ __('Invoice #') }} | {{ __('Customer') }} | {{ __('Date') }} | {{ __('Total Amount') }} | {{ __('Paid') }} | {{ __('Status') }} | {{ __('Actions') }} | |
|---|---|---|---|---|---|---|---|
| #{{ $invoice->invoice_number }} @if(! empty($invoice->is_exchange)) {{ __('Exchange') }} @elseif(! empty($invoice->exchange_invoice_number)) {{ __('Exchange Sale') }} @endif | {{ $invoice->customer->display_name ?? __('Walking Customer') }} | {{ $invoice->created_at->format('d M, Y') }} | Rs. {{ number_format($invoice->total, 0) }} | Rs. {{ number_format($invoice->paid_amount, 0) }} |
@php
$invoiceDisplayStatus = $this->resolveInvoiceDisplayStatus($invoice);
@endphp
@if($invoiceDisplayStatus == 'paid')
{{ __('Fully Paid') }}
@elseif($invoiceDisplayStatus == 'unpaid')
{{ __('Unpaid') }}
@else
{{ __('Partial') }}
@endif
@if(! empty($invoice->is_exchange))
{{ __('Marked as exchanged') }}
@elseif(! empty($invoice->exchange_invoice_number))
{{ __('Created in exchange') }}
@endif
|
||
|
Koi invoice nahi mili. |
|||||||
| {{ __('Product') }} | {{ __('Qty') }} | {{ __('Price') }} | {{ __('Total') }} |
|---|---|---|---|
| {{ $item->product_name }} | {{ number_format($item->qty, 2) }} | Rs. {{ number_format($item->price, 2) }} | Rs. {{ number_format($item->total, 2) }} |
| {{ __('No invoice items found.') }} | |||