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

Product Distribution Update

Distribution List
@csrf @method('PUT')
@error('disDate') {{ $message }} @enderror
@error('dep_id') {{ $message }} @enderror
@if(!empty($disDetils)) @php $sl = 1; $total_amt = 0; $disItem['disItem'] = []; @endphp @foreach($disDetils as $v) @php $product_id = $v->product_id; $quantity = $v->quantity; $price = $v->rate; $total = $v->total; $unit_name = $v->unit_name; $pname = $v->product_name; $total_amt = $total_amt + $total; $sl=$sl+1; $disItem['disItem'][$product_id] = [ 'product_id' => $product_id, 'quantity' => $quantity, 'price' => $price, 'total' => $total, 'unit_name' => $unit_name, 'pname' => $pname ]; @endphp @endforeach @php session(['disItem' => $disItem]); Request::session()->save(); @endphp @endif
Sl Product Quantity (stock : ) Unit Rate Amount Action
1

{{$sl}} {{$pname}} {{$quantity}} {{$unit_name}} {{$price}} {{$total}}
Total: {{$total_amt}}
@endsection @push('scripts') @endpush