Fabrics Challan Input List
Fabrics Challan Input
@if (is_null($fabricsChallanDataInputs) || empty($fabricsChallanDataInputs))

Currently No Information Available!

@else @if (session('message'))
× {{ session('message') }}.
@endif @if (session('error_message'))
× {{ session('error_message') }}.
@endif
@csrf





Reset
@php $sl=0 @endphp @foreach ($fabricsChallanDataInputs as $spl) @php $data = DB::table('fabrics_receives') ->where('buyer_id', $spl->buyer_id) ->where('order_style', $spl->order_style) ->where('book_no', $spl->book_no) ->get(); $issue = DB::table('fabrics_issues') ->where('buyer_id', $spl->buyer_id) ->where('order_style', $spl->order_style) ->where('book_no', $spl->book_no) ->get(); $receive = 0; $dlv_cutting = 0; if ($data->isNotEmpty()) { foreach ($data as $d) { $receive += $d->receive_qty; } } if ($issue->isNotEmpty()) { foreach ($issue as $i) { $dlv_cutting += $i->dlv_cutting; } } // dd($dlv_cutting); @endphp {{-- --}} {{-- --}} @endforeach
Sl# BUYER NAME ORDER / STYLE BOOK. NO lot Receive Balance Qty Issue Balance Qty New Issue Actions
@if (auth::user()->role_id == 1) @endif {{ $spl->id }}-{{ ++$sl }} {{ $spl->buyer_name }} {{ $spl->order_style }} {{ $spl->book_no }} @php $lot = DB::table('fabrics_receives') ->where('buyer_id', $spl->buyer_id) ->where('order_style', $spl->order_style) ->where('book_no', $spl->book_no) ->select('lot') ->distinct() ->get(); @endphp @if ($lot->isNotEmpty()) @foreach ($lot as $item) {{ $item->lot }}, @endforeach @else 0 @endif @if ($receive != null) @else 0 @endif @if ($dlv_cutting == null) 0 @else @endif
@csrf
@csrf
@csrf
@if (auth::user()->role_id == 6 || auth::user()->role_id == 1)
@csrf
@endif
@endif