@extends('Reports.template') @section('title') @php $reportTitle = "Material Issue Summary - Product Wise"; @endphp {{$reportTitle}} @endsection @section('ExternalCss') @parent @endsection @section('Content') @if($reportType == "S") @php $reportTypeDisplay = " (Summary)"; @endphp @else @php $reportTypeDisplay = " (With Transactions)"; @endphp @endif @if($reportType != 'S') @else @endif @php $srheader = 1; $sr = 1 ; $totalIssueQty = 0; $totalIssueAmount = 0; $totalAmount = 0; $productId = ''; $patOrCustName = ''; $finalAmount = 0; @endphp @foreach ($storeProductData as $product) @php $finalAmount += $product->total; @endphp @if($product->product_id != $productId && $product->quantity != 0) @if($srheader != 1) @if($reportType != 'S') @if($totalIssueQty != 0) @else @endif @endif @endif @endif @php $totalIssueQty = 0; $totalIssueAmount = 0; $totalSaleProduct = 0; $productId = $product->product_id; @endphp @if($reportType != 'S') @else @if($product->quantity != 0) @else @endif @endif @if($reportType != 'S') @foreach ($storeProductTransactionData as $transaction) @if($transaction->product_id == $product->product_id) @php $patOrDeptName = ($transaction->patient_name != '') ? $transaction->patient_name : $transaction->department_name ; @endphp @if($transaction->calc_quantity != 0) @else @endif @php $totalIssueQty += $transaction->calc_quantity; $totalIssueAmount += $transaction->sold_amt; $productId = $product->product_id; @endphp @endif @endforeach @endif @endforeach @if($reportType != 'S') @if($totalIssueQty != 0) @else @endif @else @endif @php $currentTime = \Carbon\Carbon::now(); @endphp @if($reportType != 'S') @else @endif
@if($businessEntityMasterData[0]->logo != null) Pharmacy Logologo )}}"/> @endif
{{ $businessEntityMasterData[0]->name }}
{{$businessEntityMasterData[0]->add1. " " .$businessEntityMasterData[0]->add2 ." ".$businessEntityMasterData[0]->city." : " .$businessEntityMasterData[0]->pincode }}
{{"Phone : ".$businessEntityMasterData[0]->tel1}}
{{$reportTitle.$reportTypeDisplay}} Store : {{$storeName}} Period : {{\Helper::getDisplayDate($fromDate)}} TO {{\Helper::getDisplayDate($toDate)}}
Sr No Product Name Generic Drug Name Category
 Trn No  Trn Date  Department / Patient Name  Qty  Price (WO GST)  Amount
Sr No Product Name Generic Drug Name Category Total Qty Total Price (WO GST) Total Amount
Total {{$totalIssueQty}}{{\Helper::customAmountFormat4(round($totalIssueAmount/$totalIssueQty,4))}}{{\Helper::customAmountFormat4(0)}}{{\Helper::customAmountFormat4($totalIssueAmount)}}
{{$srheader++}} {{$product->product_name}} {{$product->generic_drug_name}} {{$product->category_abbrev }}
{{$srheader++}} {{$product->product_name}} {{$product->generic_drug_name}} {{$product->category_abbrev }} {{$product->quantity}}{{ \Helper::customAmountFormat4(round($product->total/$product->quantity,4)) }}{{ \Helper::customAmountFormat4(0) }}{{ \Helper::customAmountFormat4($product->total) }}
 {{ $transaction->trn_type.$transaction->trn_id }}  {{\Helper::getDisplayDate($transaction->trn_date)}}  {{$patOrDeptName}}  {{$transaction->calc_quantity}} {{ \Helper::customAmountFormat4(round($transaction->sold_amt/$transaction->calc_quantity,4))}} {{ \Helper::customAmountFormat4(0)}} {{ \Helper::customAmountFormat4($transaction->sold_amt)}}
Total {{$totalIssueQty}}{{\Helper::customAmountFormat4(round($totalIssueAmount/$totalIssueQty,4))}}{{\Helper::customAmountFormat(0)}}{{\Helper::customAmountFormat4($totalIssueAmount)}}
Grand Total {{\Helper::customAmountFormat4($finalAmount)}}
Grand Total {{\Helper::customAmountFormat4($finalAmount)}}
{{Config::get('constants.asterisk.WALK_CUST')}} {{ strtoupper(Session::get('userId'))." # ".$currentTime->format('d/m/Y H:i:s ')}}{{ strtoupper(Session::get('userId'))." # ".$currentTime->format('d/m/Y H:i:s ')}}
Back
@endsection @section('BootstrapModals') @endsection @section('ExternalJs') @endsection