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

PO Subcon : show

Page for show PO Subcon
@switch($poSubcon->status) @case(false) Not complete @break @case(true) Complete @break @default @endswitch
PO Subcon No : {{ $poSubcon->no }}
PO Subcon Date : {{ $poSubcon->date }}
Supplier Code : {{ $poSubcon->supplier_code }}
ETA Date : {{ $poSubcon->eta_date }}
Delivery Date : {{ $poSubcon->delivery_date }}
Notes : {{ $poSubcon->notes }}
PIC : {{ $poSubcon->createdBy->full_contact }}
Status : Complete
Approved By : {{ $poSubcon->approvedBy->full_contact }}
Approved At : {{ $poSubcon->formatted_approved_at }}

List Material to Subcon

Below is the list of Material to Subcon that you have created on this page.

@foreach ($poSubcon->details as $detail) @php $materialToSends = $detail->materialToSends; @endphp @endforeach
Material Fullname Material Code Material Name Material Type Material UoM Qty Material Need to Send Currency Code Price Subcon per Unit Total Price Additional
{{ $detail->material->formatted_material }} {{ $detail->material_code }} {{ $detail->material->name }} {{ $detail->material->material_type_code }} {{ $detail->material->uom_code }} {{ $detail->qty }} @if (!$materialToSends->isEmpty()) @foreach ($materialToSends as $material) @endforeach
Material Code Material Name Qty UoM Price per Unit Total Price
{{ $material->material_code }} {{ $material->material->name }} {{ $material->total }} {{ $material->material->uom_code }} {{ number_format($material->price_per_unit, 2) }} {{ number_format($material->total_price, 2) }}
@endif
{{ $poSubcon->currency_code }} {{ number_format($detail->price_per_unit, 2) }} {{ number_format($detail->total_price, 2) }} @switch($detail->is_additional) @case(true) Yes @break @case(false) No @break @default @endswitch
@endsection @section('js') @endsection