{{ $store->name}}

{{ $store->first_address }} @if(!empty($store->second_address))
{{ $store->second_address }} @endif @if(!empty($store->contact_number))
{{ $store->contact_number }} @endif
@if($invoice->status === "COMPLETE") @endif
Invoice / Receipt No {{ $invoice->invoice_paper_number }}
Invoice Number {{ $invoice->invoice_number }}
Store {{ $invoice->warehousestore->name }}
Invoice Date {{ convert_date2($invoice->invoice_date) }}
Customer {{ $invoice->customer->firstname }} {{ $invoice->customer->lastname }}
Status {{ $invoice->status }}
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
Credit Balance {{ number_format($invoice->customer->credit_balance,2) }}

@foreach($invoice->invoice_items as $item) @endforeach @if(isset($invoice->paymentMethodTable->first()->payment_method_id) && $invoice->paymentMethodTable->first()->payment_method_id == "1") @php $method = json_decode($invoice->paymentMethodTable->first()->payment_info); @endphp @if(isset( $method-> customer_change)) @endif @endif
# Name Quantity Price Total

{{ $loop->iteration }} {{ $item->stock->name }} {{ $item->quantity }} {{ number_format($item->selling_price,2) }} {{ number_format(($item->total_selling_price),2) }}
Sub Total {{ number_format($invoice->sub_total,2) }}
Total {{ number_format(($invoice->sub_total),2) }}
Change {{ number_format(($method-> customer_change),2) }}

{{ $store->footer_notes }}
{!! softwareStampWithDate() !!}