@if($purchase->is_estimate == 'yes') @else @endif
Invoice From

{!! $purchase->supplier->address_details !!}
Invoice Date
{{ $purchase->invoice_date->format(app_date_format()) }}

Invoice No.
{{ $purchase->invoice_no }}

Ref. No.
{{ $purchase->reference_no }}
@if($purchase->is_estimate == 'yes') @foreach ($purchase->items as $purchaseKey => $purchaseItems) @endforeach
S.No. Product Quantity Rate Total
{{ $purchaseKey+1 }}. {{ $purchaseItems->product->product_name }} {{ round($purchaseItems->quantity,2) }} {{ number_format($purchaseItems->price,2) }} {{ number_format($purchaseItems->row_total,2) }}
Sub Total {{ number_format($purchase->sub_total,2) }}
Round Off {{ number_format($purchase->round_off,2) }}
Grand Total {{ number_format($purchase->grand_total,2) }}
@else @foreach ($purchase->items as $purchaseKey => $purchaseItems) @endforeach
S.No. Product Qty. Rate Discount Tax Total
{{ $purchaseKey+1 }}. {{ $purchaseItems->product->product_name }} {{ round($purchaseItems->quantity,2) }} {{ number_format($purchaseItems->price,2) }} {{ round($purchaseItems->discount,2) }} % ({{ number_format($purchaseItems->discount_amt,2) }}) {{ round($purchaseItems->tax,2) }} % ({{ number_format($purchaseItems->tax_amt,2) }}) {{ number_format($purchaseItems->row_total,2) }}
Sub Total {{ number_format($purchase->sub_total,2) }}
Round Off {{ number_format($purchase->round_off,2) }}
Grand Total {{ number_format($purchase->grand_total,2) }}
@endif