@extends('Reports.template') @section('title') @php $reportTitle = "Product Expiry Report With Supplier Detail"; @endphp {{$reportTitle}} @endsection @section('ExternalCss') @parent @endsection @section('Content') @php $currentTime = \Carbon\Carbon::now(); @endphp @if($reportType == "all") @else @endif @php $srHeader = 1; $oldUniqueID = ''; $totalQty = 0; $totalStockAmt = 0; @endphp @foreach($productStockExpData as $stock) @php $uniqueID = $stock->product_id." ".$stock->batch_no; @endphp @if($uniqueID != $oldUniqueID) @if($totalQty != 0 && $oldUniqueID != '') @endif @php $sr = 1; $totalQty = 0; $stockAmt = $stock->current_stock_qty * $stock->price_per_unit_wo_gst; $totalStockAmt += $stockAmt; @endphp @endif @if($stock->supplier_name != null) @php $totalQty += $stock->quantity_per_unit_suom; @endphp @endif @php $oldUniqueID = $uniqueID; @endphp @endforeach @if($totalQty != 0) @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}} Store : {{$storeName}}As on : {{\Helper::getDisplayDate($toDate)}}Period : {{\Helper::getDisplayDate($fromDate)}} TO {{\Helper::getDisplayDate($toDate)}}
Sr No.   Item Name Cat Batch Exp SUOM Stock Qty     Stock Rate (WO GST) Stock Amt
Sr No.  Supplier Name Vou No   Vou Date   Supp Bill No   Supp Bill Date   Qty
Total Qty :   {{$totalQty}}
{{$srHeader++}}   {{$stock->product_name}} {{$stock->category_abbrev}} {{strtoupper($stock->batch_no)}} {{\Helper::getMonthYearFromDate($stock->batch_exp)}} {{$stock->unit_abbrev}} {{\Helper::zeroValueToNbspSpace($stock->current_stock_qty)}}     {{\Helper::customAmountFormat4($stock->price_per_unit_wo_gst)}} {{\Helper::customAmountFormat($stockAmt)}}
{{$sr++}}  {{$stock->supplier_name}} {{$trnType.($stock->trn_id ? "/" : "").$stock->trn_fyear.($stock->trn_id ? "/" : "").$stock->trn_id}}   {{\Helper::getDisplayDate($stock->trn_date)}}   {{$stock->purchase_bill_no}}   {{\Helper::getDisplayDate($stock->purchase_bill_date)}}     {{$stock->quantity_per_unit_suom}}
Total Qty :   {{$totalQty}}
Total Amt : {{\Helper::customAmountFormat($totalStockAmt)}}
{{ strtoupper(Session::get('userId'))." # ".$currentTime->format('d/m/Y H:i:s ')}}
@if($trnType == "P") Back @else Back @endif
@endsection @section('BootstrapModals') @endsection @section('ExternalJs') @endsection