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

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

Date : {{ $poSubconInvoice->formatted_date }}

@switch($poSubconInvoice->sj_status) @case(false) Not complete @break @case(true) Complete @break @default @endswitch
{{-- --}}
BC No : {{ $poSubconInvoice->bc['no'] }}
BC Type : {{ $poSubconInvoice->bc['type'] }}
BC Date : {{ $poSubconInvoice->bc['date'] }}
Work Order No : {{ $poSubconInvoice->po->work_order_no }}
Material to Subcon / Output : {{ $poSubconInvoice->po->wo->finishGood->formatted_material }}
Qty Target : {{ $poSubconInvoice->po->wo->qty_target }} {{ $poSubconInvoice->po->wo->finishGood->uom_code }}
Supplier Code : {{ $poSubconInvoice->po->supplier_code }}
ETA Date : {{ $poSubconInvoice->po->formatted_eta_date }}
Invoice PIC : {{ $poSubconInvoice->createdBy->full_contact }}
Your current stock
This is your stock on Divisi {{ $poSubconInvoice->po->wo->divisi_from }}. Material was filtered only for this WO
{{-- @dd($stocks) --}} @foreach ($poSubconInvoice->po->wo->details as $detail) @php $check = $stocks->where('material_code', $detail->material_code)->first(); if ($check) { $stock = $stocks->where('material_code', $detail->material_code)->first()->balance; } else { $stock = 0; } @endphp @endforeach
Material Fullname Material Code Material Name Material Type Material UoM Extra Purchase Total Balance
{{ $detail->material->formatted_material }} {{ $detail->material_code }} {{ $detail->material->name }} {{ $detail->material->material_type_code }} {{ $detail->material->uom_code }} {{ $detail->extra_purchase }} % {{ $detail->total }} @if ($stock < $detail->total)
{{ $stock }}
@else
{{ $stock }}
@endif
Subcon Material to Send
This is list material you need to send to subcontractor company
@csrf
@error('license_plate')
{{ $message }}
@enderror
@error('driver')
{{ $message }}
@enderror
@foreach ($poSubconInvoice->po->details as $detail) @foreach ($detail->materialToSends as $materialSend) @endforeach @endforeach
Material Fullname Material Code Material Name Material UoM Qty Need to Send Qty Sent Qty Send
{{ $materialSend->material->formatted_material }} {{ $materialSend->material_code }} {{ $materialSend->material->name }} {{ $materialSend->material->uom_code }} {{ $materialSend->total }} {{ $materialSend->qty_send }} @error('qty.' . $materialSend->id)
{{ $message }}
@enderror
@error('qty')
{{ $message }}
@enderror
@error('send_from_divisi')
{{ $message }}
@enderror

Are you sure want to create this ? .

After you click Yes, you will receive Surat Jalan with material with all your inputed data

List Surat Jalan Out

Below is the list of Surat Jalan Outs that you have created on this page.

@foreach ($poSubconInvoice->suratJalans as $sj) @php $details = $sj->details; @endphp @endforeach
No Date Material Fullname Material Code Material UoM Qty Send Send From License Plate Driver PIC Action
{{ $sj->no }} {{ $sj->formatted_date }} @foreach ($details as $fullname) @endforeach
{{ $fullname->material->formatted_material }}
@foreach ($details as $material) @endforeach
{{ $material->material_code }}
@foreach ($details as $uom) @endforeach
{{ $uom->material->uom_code }}
@foreach ($details as $qty) @endforeach
{{ $qty->qty }}
{{ $sj->send_from_divisi }} {{ $sj->license_plate }} {{ $sj->driver }} {{ $sj->createdBy->full_contact }}
  • Are you sure want to delete this ?

    @csrf @method('DELETE')

Are you sure want to complete this ? .

Once you complete, all material will descrease the Stock Database

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