@extends('Reports.template') @section('title') @php $reportTitle = "Product Expiry Report"; @endphp {{$reportTitle}} @endsection @section('ExternalCss') @parent @endsection @section('Content') @php $currentTime = \Carbon\Carbon::now(); @endphp @if($reportType == "all") @else @endif @php $sr = 1; $tempProductName = ''; $tempcatname = ''; $tempunit =''; $stockAmt = 0; $totalStockAmt = 0; @endphp @foreach ($productStockExpData as $stock) @php $stockAmt = $stock->current_stock_qty * $stock->price_per_unit_wo_gst; $totalStockAmt += $stockAmt; @endphp @if($stock->product_name != $tempProductName) @else @endif @if($stock->product_name != $tempProductName || $tempcatname != $stock->category_abbrev) @else @endif @if($stock->product_name != $tempProductName || $tempunit != $stock->unit_abbrev) @else @endif @php $tempProductName = $stock->product_name; $tempcatname = $stock->category_abbrev; $tempunit = $stock->unit_abbrev; @endphp @endforeach
@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 Cat Batch Exp SUOM Stock Qty   Stock Rate (WO GST) Stock Amt
{{$sr++}} {{$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)}}
Total : {{\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