@foreach($purchases as $purchase)
Entry No: |
{{$purchase->id}} |
Date: |
{{date('Y-m-d', strtotime($purchase->transaction_date))}} |
GRN No: |
{{$purchase->invoice_no}} |
Purchase Type: |
{{$purchase->purchase_type}} |
Type: |
{{$purchase->account_type}} |
Account Code
| {{$purchase->account->account_code}} |
Account Name: |
{{$purchase->account->account_name}} |
Item Code |
Description |
qty |
STR |
Rate |
Amount |
@php
$total_before_tax = 0.00;
@endphp
@foreach($purchase->lines_of_purchase as $purchase_line)
{{ $purchase_line->product->code }}
|
{{ $purchase_line->product->name }}
|
{{ $purchase_line->quantity }} |
{{ $purchase_line->store->name }} |
{{ $purchase_line->rate }} |
{{ $purchase_line->rate * $purchase_line->quantity }} |
@php
$total_before_tax += ($purchase_line->quantity * $purchase_line->rate);
@endphp
@endforeach
@endforeach