@extends('index') @section('content')

Receive Issuance

@csrf
Good job!
Good job!
Good job!
{{-- --}}
Good job!

Good job!
Good job!

{{-- Component Product Type Receive Section --}} @php // Extract component products from issued items $issuedComponents = collect(); foreach($issueItem as $item) { if($item->component_product_type_id) { $issuedComponents->push($item); } } @endphp @if($issuedComponents->count())

@endif
{{-- Receive Issuance --}}
@if($receiveItem->count()) @foreach($receiveItem as $item) @endforeach @endif
Sr. Item / Product Material / Stage Work/Cost Quantity Action
{{$loop->index + 1}} {{$item->article_no}} - Size {{$item->sname}} {{($item->name)? $item->name:$item->stage}} @php $workLogIds = array_map('intval', explode('|', $item->work_logs)); @endphp @php $comma = false; @endphp @foreach($workLogIds as $workLogId) @php $found = false; @endphp @foreach($workLog as $log) @if($log->head_id == $workLogId) @if($comma), @endif {{$log->hname}} @php $found = true; $comma = true; break; @endphp @endif @endforeach {{ !$found ? 'None' : '' }} @endforeach {{$item->quantity}}
Sr. Item / Product Material / Stage Work/Cost Quantity Action
{{-- Issuance --}}
@if($issueItem->count()) @foreach($issueItem as $item) @endforeach @endif
Sr. Item / Product Material / Stage Quantity Average
{{$loop->index + 1}} {{$item->article_no}} - Size {{$item->sname}} {{($item->name)? $item->name:$item->stage}} {{$item->quantity}} {{$item->uname}} {{ $item->pqty != 0 ? bcdiv($item->quantity, $item->pqty, 1) : '0' }} Units
Sr. Item / Product Material / Stage Quantity Average
{{-- Received --}}
@if($issueSum->count()) @foreach($issueSum as $item) @endforeach @endif
Sr. Article No Material / Stage Quantity
{{$loop->index + 1}} {{$item->article_no}} - Size {{$item->sname}} {{($item->name)? $item->name:$item->stage}} {{$item->total_quantity}} {{($item->uname)? $item->uname:$item->puname}}
Sr. Article No Material / Stage Quantity
@endsection