@extends('layouts.app') @section('title') {{'Item Wise Purchase Report'}} @endsection @section('content') @include('layouts.numbertowords')
|
Supplier Name : {{ $supplier_list[0]->id }} - {{ $supplier_list[0]->name }}
|
|||||||||||
|
Contact Person : {{ $supplier_list[0]->person_name }}
|
|||||||||||
|
Address : {{ $supplier_list[0]->address }}
|
|||||||||||
|
Mobile No. : {{ $supplier_list[0]->mobile }}
|
@php
$product_name="";
if(isset($_GET['id']) && $_GET['id'] != "All"){
foreach($item_info as $val){
if($val->id == $_GET['id']){
$product_name = $val->id ."-".$val->product_name;
break;
}
}
}
@endphp
Item Name : {{ isset($_GET['id']) && $_GET['id'] == "All" ? "All" : $product_name }}
|
@endif
||||||||||
| S.L. | Date | Voucher | Supplier Name | Purchase Quantity | Purchase Price | Total | |||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Item Name: {{$product_name}} | |||||||||||
| '. $i++ .' | '; echo ''. date('d-F-Y', strtotime($catrow->txn_date)) .' | '; echo 'PI#'. $catrow->invoice_id .' | '; echo ''. $catrow->supp_name .' | '; echo ''. $product_qty .' | '; echo ''. number_format($avg_price,2) .' | '; echo ''. number_format($total_value,2) .' | '; echo '|||||
| Sub Total = | {!! number_format($sub_grand_qty) !!} | {!! number_format($sub_grand_total,2) !!} | |||||||||
| Grand Total = | {!! number_format($g_torder_quantity) !!} | {{ number_format($g_t_total_price,2) }} | |||||||||
| IN WORDS : {!! numberTowords($g_t_total_price) !!} | |||||||||||