@extends('admin.layout.master') @section('title','ALLOCATION MANAGEMENT') @section('custom_style') @endsection @section ('content')

ALLOCATION

@csrf
{{-- --}}
{{--
--}}
{{--
--}}

@csrf
@php $tr=''; @endphp @forelse ($showRooms as $a=>$showRoomGroup) @if($a!='') @php $tr.=''; @endphp @endif @empty @endforelse {!! $tr.'' !!} @php $p=1; @endphp @forelse ($orderedProduct as $i=>$item) @forelse ($showRooms as $k=>$showRoom) @if($k!='') @endif @empty @endforelse @php $closing= ($transactions->where('product_id',$i)->where('dr_cr',1)->sum('quantity')-$transactions->where('product_id',$i)->where('dr_cr',2)->sum('quantity')) - $item->where('transaction_type','!=',3)->sum('allocated_qty'); @endphp @empty @endforelse
# PRODUCT STOCK ORDER{{$showRoomGroup->first()->showroom->name_eng}}OrderQtyAllot. QtyAllocated Closing Action
{{ ($p++) }} {{ $item->first()->product->name_eng }} {{ $transactions->where('product_id',$i)->where('dr_cr',1)->sum('quantity')-$transactions->where('product_id',$i)->where('dr_cr',2)->sum('quantity') }} {{ $transactions->where('product_id',$i)->where('transaction_type','!=',3)->sum('order_qty') }} {{ $item->where('party_id',$k)->where('transaction_type','!=',3)->sum('order_qty') }} {{$item->where('transaction_type','!=',3)->sum('allocated_qty') }} {{ $closing }}
@endsection @section('script') @stop