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

Receive Issuance Info

@if($issue['table_name'] == 'employee') @else @endif @if($issue['description'])@endif
Employee: {{$issue['employee_no']}} - {{$issue['name']}}
Department: {{$issue['hname']}}
Vendor: {{$issue['vendor_no']}} - {{$issue['fname']}}
Receive Date: {{\Carbon\Carbon::parse($issue['stock_date'])->format('d-m-Y')}}
Detail:
@php echo $issue['description'] @endphp
Receive Issuance.#: {{$issue['stock_no']}}
Issue Date: {{\Carbon\Carbon::parse($issue['sdate'])->format('d-m-Y')}}
Job.#: {{($issue['job_no'])? $issue['job_no']:'Default Purchase'}}
@if($issueItem->count()) @foreach($issueItem as $item) @if($item->quantity) @if($item->component_product_type_id) @elseif($item->material_id > 0) @else @endif @endif @endforeach @endif
Sr. Type Article No Material / Stage / Component Work Done Quantity
{{$loop->index + 1}}Component {{$item->article_no}} - Size {{$item->sname}} {{$item->component_article_no}} - {{$item->component_name}}Material {{$item->article_no}} - Size {{$item->sname}} {{$item->name}}Product {{$item->article_no}} - Size {{$item->sname}} {{$item->stage}} @foreach(explode('|', $item->work_logs) as $index => $work) @php $headName = $head->firstWhere('head_id', $work)?->name; @endphp @if($headName) @if($index > 0), @endif {{ $headName }} @else None @endif @endforeach {{$item->quantity}} {{($item->uname)? $item->uname:$item->puname}}
Sr. Type Article No Material / Stage / Component Work Done Quantity
@endsection