|
|
@endusercan
{{ __('SL') }}. | {{ __('Date') }} | @if (auth()->user()->accessToMultiBranch()){{ __('Branch') }} | @endif{{ __('Invoice No') }} | {{ __('Party Name') }} | {{ __('Total') }} | {{ __('Discount') }} | {{ __('Paid') }} | {{ __('Due') }} | {{ __('Status') }} | {{ __('Action') }} |
|---|---|---|---|---|---|---|---|---|---|---|---|
| @endusercan | {{ ($purchases->currentPage() - 1) * $purchases->perPage() + $loop->iteration }} | {{ formatted_date($purchase->purchaseDate) }} | @if (auth()->user()->accessToMultiBranch()){{ $purchase->branch->name ?? '' }} | @endif{{ $purchase->invoiceNumber }} | {{ $purchase->party->name }} | {{ currency_format($purchase->totalAmount, currency: business_currency()) }} | {{ currency_format($purchase->discountAmount, currency: business_currency()) }} | {{ currency_format($purchase->paidAmount, currency: business_currency()) }} | {{ currency_format($purchase->dueAmount, currency: business_currency()) }} |
@if ($purchase->details->sum('quantities') == 0)
{{ __('Returned') }}
@elseif($purchase->dueAmount == 0)
{{ __('Paid') }}
@elseif($purchase->dueAmount > 0 && $purchase->dueAmount < $purchase->totalAmount)
{{ __('Partial Paid') }}
@else
{{ __('Unpaid') }}
@endif
|
|