@extends('layouts.admin') @push('styles') @endpush @section('content')

Mushok 4.3 (History)

@if(isset($his_ids) && is_array($his_ids)) @foreach($his_ids as $k => $v) @php $fourp3history = Helper::FourPointThreeCoefficient($v); $ingredientData = $fourp3history['ingredientData']; $recipeData = $fourp3history['recipeData']; $recipe_id = $fourp3history['recipe_id']; $expense = $fourp3history['expense']; $product_id = $fourp3history['product_id']; $printDate = $fourp3history['printDate']; $companyInfo = $fourp3history['companyInfo']; $products = $fourp3history['products']; @endphp

History Date: {{ Helper::dateFormate($recipeData->history_date) }}

@if (isset($recipeData)) @php $sl = 1; @endphp @php $totalQty = 0; $totalRate = 0; $totalWastage = 0; $ttexpAmt = 0; $totalAmt = 0; @endphp @foreach ($ingredientData as $k => $i) @php if($i->pur_price > 0){ $rate = $i->pur_price; }else{ $rate = $i->rate; } $wastage = number_format($i->wstage_qty, 3, '.', ''); $ing_unit_name = $i->ing_unit_name; $rate = number_format($rate, 3, '.', ''); $quantity = number_format($i->quantity, 3, '.', ''); $amount = $rate * $quantity; $parcent = number_format(($wastage / $quantity) * 100, 3, '.', ''); $totalQty = number_format($totalQty + $quantity, 3, '.', ''); $totalRate = number_format($totalRate + $rate, 3, '.', ''); $totalWastage = number_format($totalWastage + $wastage, 3, '.', ''); if(isset($expense[$k]->description)){ $expens = $expense[$k]->description; }else{ $expens = ''; } if(isset($expense[$k]->total)){ $expens_amt = $expense[$k]->total; $ttexpAmt = $ttexpAmt + $expens_amt; }else{ $expens_amt = ''; } if(count($ingredientData) >= count($expense)){ $rowspan = count($ingredientData); }else{ $rowspan = count($expense); } $totalAmt = $totalAmt + $amount; @endphp @if($sl == 2) @endif @endforeach @if(isset($ingredientData) && count($expense) > count($ingredientData)) @foreach($expense as $k => $e) @if($k > (count($ingredientData)-1)) @php $expens = $e->description; $expens_amt = $e->total; $ttexpAmt = $ttexpAmt + $expens_amt; @endphp @endif @endforeach @endif @endif
ক্রমিক সংখ্যা পণ্যের এইচ এস কোড/সেবা কোড সরবরাহতব্য পণ্য/সেবার নাম ও বর্ণনা (প্রযোজ্য ক্ষেত্রে ব্র্যান্ড নাম সহ) সরবরাহের একক একক পণ্য/সেবা সরবরাহে ব্যবহায় যাবতীয় উপকরণের/কাঁচামাল ও প্যাকিং সামগ্রীর বিবরণ,পরিমাণ ও ক্রয়মূল্য (উপকরণভিত্তিক অপচয়ের শতকরা হারসহ) মূল্য সংযোজনের বিবরণ মন্তব্য
বিবরণ অপচয় সহ পরিমাণ ক্রয়মূল্য অপচয়ের পরিমাণ শতকরা হার মূল্য সংযোজনের খাত মূল্য
(১) (২) (৩) (৪) (৫) (৬) (৭) (৮) (৯) (১০) (১১) (১২)
{{ $sl++ }}{{ $recipeData->hscode }} {{ $recipeData->product_name }} {{ $recipeData->unit_name }}{{ $i->product_name }} {{ $quantity }} {{ $ing_unit_name }} {{ $amount }} {{ $wastage }} {{ $ing_unit_name }} {{ $parcent }} % {{$expens}} {{$expens_amt}}
{{$expens}} {{$expens_amt}}
Total {{ $totalQty }} {{ $totalAmt }} {{ $totalWastage }} {{$ttexpAmt}}
@endforeach @endif
@endsection @push('scripts') @endpush