Invoice / Receipt No |
{{ $invoice->invoice_paper_number }} |
Invoice Number |
{{ $invoice->invoice_number }} |
Store |
{{ $invoice->warehousestore->name }} |
Invoice Date |
{{ convert_date($invoice->invoice_date) }} |
Time |
{{ date("h:i a",strtotime($invoice->sales_time)) }} |
Customer |
{{ $invoice->customer->firstname }} {{ $invoice->customer->lastname }} |
Status |
{{ $invoice->status }} |
@if($invoice->status === "COMPLETE")
Mode of Payment |
@if($invoice->paymentMethodTable->count() > 1)
@php
$methods = [];
@endphp
@foreach($invoice->paymentMethodTable as $meth)
@php
echo $meth->payment_method->name." : ". number_format( $meth->amount,2)." ";
@endphp
@endforeach
@else
{{ $invoice->paymentMethodTable->first()->payment_method->name }} : {{ number_format($invoice->paymentMethodTable->first()->amount,2) }}
@endif
|
@endif
Credit Balance |
{{ number_format($invoice->customer->credit_balance,2) }} |