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

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

Date : {{ $poSupplierInvoice->formatted_date }}

@switch($poSupplierInvoice->gr_status) @case(false) Not complete @break @case(true) Complete @break @default @endswitch
{{-- --}}
BC No : {{ $poSupplierInvoice->bc_data['no'] }}
BC Type : {{ $poSupplierInvoice->bc_data['type'] }}
BC Date : {{ $poSupplierInvoice->bc_data['date'] }}
Supplier Code : {{ $poSupplierInvoice->supplier_code }}
ETA PO Supplier : {{ $poSupplierInvoice->formatted_eta_date }}
Nomor Polisi : {{ $poSupplierInvoice->bc_data['nopol'] }}
Pengangkut : {{ $poSupplierInvoice->bc_data['pengangkut'] }}
Forwarder : {{ $poSupplierInvoice->bc_data['forwarder'] }}
Nama Kapal : {{ $poSupplierInvoice->bc_data['nama_kapal'] }}
AWB : {{ $poSupplierInvoice->bc_data['awb'] }}
ETA Invoice : {{ $poSupplierInvoice->bc_data['eta'] }}
ETD : {{ $poSupplierInvoice->bc_data['etd'] }}
No Karantina : {{ $poSupplierInvoice->bc_data['no_karantina'] }}
Tanggal Karantina : {{ $poSupplierInvoice->bc_data['tanggal_karantina'] }}
No Kontainer : {{ $poSupplierInvoice->bc_data['no_kontainer'] }}
Jumlah Kontainer : {{ $poSupplierInvoice->bc_data['jumlah_kontainer'] }}

Invoice Material Details
@csrf
@foreach ($poSupplierInvoice->details as $detail) @endforeach
Material Fullname Material Code Material Name Material UoM Qty Order Qty Received Qty Receive
{{ $detail->material->formatted_material }} {{ $detail->material_code }} {{ $detail->material->name }} {{ $detail->material->uom_code }} {{ $detail->qty }} {{ $detail->qty_received }} @error('qty.' . $detail->id)
{{ $message }}
@enderror
@error('qty')
{{ $message }}
@enderror
@error('faktur')
{{ $message }}
@enderror
@error('actual_date')
{{ $message }}
@enderror
@error('divisi_code')
{{ $message }}
@enderror

Are you sure want to create this ? .

After you click Yes, you will receive Good Receive with material with all your inputed data

List Good Receive

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

@foreach ($poSupplierInvoice->grs as $gr) @php $details = $gr->details; @endphp @endforeach
No Date Actual Date Faktur Pajak Material Status Action
{{ $gr->no }} {{ $gr->date }} {{ $gr->actual_date }} {{ $gr->faktur }} @foreach ($details as $detail) @endforeach
Material Fullname Materual Code Material UoM Material Color Qty Received
{{ $detail->material->formatted_material }} {{ $detail->material_code }} {{ $detail->material->uom_code }} {{ $detail->material->color_code }} {{ $detail->qty }}
@switch($gr->status) @case(true) Complete @break @case(false) Not complete @break @default @endswitch
    @if (!$gr->status)
  • Are you sure want to complete this ?

    @csrf @method('PUT')
  • Are you sure want to delete this ?

    @csrf @method('DELETE')
  • @endif

Total Qty Received: {{ number_format($poSupplierInvoice->grs->flatMap->details->sum('qty'), 0, ',', '.') }}

Are you sure want to complete this ? .

Once you complete, all material on Good Receive "Not Complete" will fill the stock

@csrf @method('PUT')
@endsection @section('js') @endsection