@extends('Reports.template') @section('title') Cycle Report @endsection @section('ExternalCss') @parent @endsection @section('Content') @php $currentTime = \Carbon\Carbon::now(); @endphp @php $i = 1; $sysStockTotal = $phyStockTotal = $diffStockTotal = 0; @endphp @foreach ($cycleData as $key => $cycleList) @php $productWise = $cycleList->product_wise; $productID = $cycleList->product_id; $productName = $cycleList->product_name; $categoryWise = $cycleList->category_wise; $productCategoryID = $cycleList->product_category; $productCategoryName = $cycleList->category_name; $ptrFrom = $cycleList->ptr_from; $ptrTo = $cycleList->ptr_to; $product_range_from = $cycleList->product_range_from; $product_range_to = $cycleList->product_range_to; $cycleDetail = ""; $categoryOrProduct = ""; if($categoryWise == "Y"){ $cycleBy = "Category"; if($ptrFrom != NULL){ $cycleDetail = $ptrFrom."-".$ptrTo.", "; } $cycleDetail .= strtoupper($product_range_from."-".$product_range_to); $categoryOrProduct = $productCategoryID == 0 ? "ALL" : $productCategoryName; } else if($productWise == "Y"){ $cycleBy = "Product"; $cycleDetail = ""; $categoryOrProduct = $productName; } $stockDiff = ""; $product_with_zero_qty = $cycleList->product_with_zero_qty; $system_stock_amt = $cycleList->system_stock_amt; $physical_stock_amt = $cycleList->physical_stock_amt; $total_product_count = $cycleList->total_product_count; $status = ""; if($cycleList->updatedProductCount == 0){ $cycleStatus = "Not Submited"; $class = 'danger'; $status = "PA"; } else if($cycleList->pendingProductCount == 0) { $cycleStatus = "Submited"; $class = 'success'; $status = "CO"; } else { $cycleStatus = "Partial Submited"; $class = 'info'; $status = "PE"; } $sysStockTotal += $cycleList->updatedProductSysStock; $phyStockTotal += $cycleList->updatedProductPhyStock; if($cycleList->updatedProductPhyStock != NULL){ $stockDiff = $cycleList->updatedProductPhyStock - $cycleList->updatedProductSysStock; $diffStockTotal += $stockDiff; } @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}}
Cycle Summary Report Period : {{\Helper::getDisplayDate($fromDate)}} TO {{\Helper::getDisplayDate($toDate)}}
Sr No Cycle No Cycle Date Time Store Cycle By Product/Category Cycle Detail Zero Qty Cycle Status Product Count Sys Stock Updated Product Count Updated Sys Stock Updated Phy Stock Updated Diff Stock Created By
{{ $i++ }} {{ $cycleList->cc_trn_no }}   {{ \Helper::getDisplayDateTime($cycleList->created_date) }} {{ $cycleList->storeName }} {{ $cycleBy }} {{ $categoryOrProduct }} {{ $cycleDetail }} {{ $product_with_zero_qty }} {{ $cycleStatus }} {{ $total_product_count }} {{ \Helper::customAmountFormat($system_stock_amt) }} {{ $cycleList->updatedProductCount }} {{ \Helper::customAmountFormat($cycleList->updatedProductSysStock) }} {{ \Helper::customAmountFormat($cycleList->updatedProductPhyStock) }} {{ \Helper::customAmountFormat($stockDiff) }} {{ strtoupper($cycleList->created_by) }}
Total {{ \Helper::customAmountFormat($sysStockTotal) }} {{ \Helper::customAmountFormat($phyStockTotal) }} {{ \Helper::customAmountFormat($diffStockTotal) }}
{{ strtoupper(Session::get('userId'))." # ".$currentTime->format('d/m/Y H:i:s ')}}


Back
@endsection @section('BootstrapModals') @endsection @section('ExternalJs') @endsection