@extends('layouts.app') @section('content')

Purchase Entry Sequence Report

@foreach($purchases as $purchase)
@php $total_before_tax = 0.00; @endphp @foreach($purchase->lines_of_purchase as $purchase_line) @php $total_before_tax += ($purchase_line->quantity * $purchase_line->rate); @endphp @endforeach
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
{{ $purchase_line->product->code }} {{ $purchase_line->product->name }} {{ $purchase_line->quantity }} {{ $purchase_line->store->name }} {{ $purchase_line->rate }} {{ $purchase_line->rate * $purchase_line->quantity }}
{{ $total_before_tax }}

@endforeach
{!! Form::close() !!}
@endsection