@extends('AdminLte.template') @section('title') Cycle List @endsection @section('ExternalCss') @parent @endsection @section('Content')
@php $i = 1 + $cycleData->currentPage() * $cycleData->perPage() - $cycleData->perPage(); @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->pendingProductCount == 0) { $cycleStatus = "Submitted/Closed"; $class = 'success'; $status = "CO"; } else if($cycleList->updatedProductCount == 0){ $cycleStatus = "Open"; $class = 'danger'; $status = "PA"; } else { $cycleStatus = "Partially Submitted"; $class = 'info'; $status = "PE"; } if($cycleList->updatedProductPhyStock != NULL){ $stockDiff = $cycleList->updatedProductPhyStock - $cycleList->updatedProductSysStock; } @endphp @endforeach

{{'Cycle List'}}



{{ Form::open(['action' => 'ItemController@stockCycleList','method' => 'POST','role' => 'search','autocomplete' => 'off']) }}
{{ Form::close() }}
Sr. Cycle No  Cycle Date Time Store Cycle By Product/Category Cycle Detail Zero Qty Status Product Count System Stock Updated Action
Product Count Sys Stock Phy Stock Stock Diff
{{ $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) }} @if($status=="PA" || $status=="PE") @endif    
{{ $cycleData->appends(['storeCode' => $storeCode,'storeName'=>$storeName,'search' => $search, 'fromDate' => $fromDate, 'toDate' => $toDate, 'status' => $status])->links() }}
@if(session()->has('successMessage'))
× {{ session()->get('successMessage') }}
@endif @if(session()->has('errorMessage'))
× {{ session()->get('errorMessage') }}
@endif
@endsection @section('ExternalJs') @endsection