@extends('layouts.app') @section('content')

Invoice No : {{ $poGeneralInvoice->no }}

Date : {{ $poGeneralInvoice->formatted_date }}

@switch($poGeneralInvoice->gr_status) @case(false) Not complete @break @case(true) Complete @break @default @endswitch
{{-- --}}
BC No : {{ $poGeneralInvoice->bc['no'] }}
BC Type : {{ $poGeneralInvoice->bc['type'] }}
BC Date : {{ $poGeneralInvoice->bc['date'] }}
Supplier Code : {{ $poGeneralInvoice->po->supplier_code }}
ETA Date : {{ $poGeneralInvoice->po->formatted_eta_date }}
Invoice PIC : {{ $poGeneralInvoice->createdBy->full_contact }}

Invoice Material Details
@foreach ($poGeneralInvoice->po->details as $detail) @endforeach
Material Code Material Name Material UoM Qty Order Qty Received
{{ $detail->material_code }} {{ $detail->material->name }} {{ $detail->material->uom_code }} {{ $detail->qty }} {{ $detail->qty_received }}

List Good Receive

Below is the list of Good Receives that you have created on this page.

@foreach ($poGeneralInvoice->grs as $gr) @php $details = $gr->details; @endphp @endforeach
No Date Actual Date Material Code Material UoM Qty Receive PIC Approved by Approved at
{{ $gr->no }} {{ $gr->date }} {{ $gr->actual_date }} @foreach ($details as $material) @endforeach
{{ $material->material_code }}
@foreach ($details as $uom) @endforeach
{{ $uom->material->uom_code }}
@foreach ($details as $qty) @endforeach
{{ $qty->qty }}
{{ $gr->createdBy->full_contact }} {{ $gr->approvedBy->full_contact }} {{ $gr->formatted_approved_at }}
@endsection @section('js') @endsection