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

Order Production No : {{ $orderProduction->no }}

Date : {{ $orderProduction->formatted_date }}

PO Buyer No : {{ $orderProduction->obDetail->ob->po->no }}
PO Buyer Date : {{ $orderProduction->obDetail->ob->po->formatted_date }}
OB No : {{ $orderProduction->obDetail->ob->no }}
OB Date : {{ $orderProduction->obDetail->ob->formatted_date }}
Size : {{ $orderProduction->obDetail->size }}
Color Code : {{ $orderProduction->obDetail->color_code }}
Qty : {{ $orderProduction->obDetail->qty }}
BOM : {{ $orderProduction->obDetail->bom_filename }}

Order Production : List

Order Production List for this Production Card

@if ($orderProduction->boms->isEmpty())

Add new Order Production

@else
@foreach ($orderProduction->boms as $bom)
No : {{ $bom->no }}
@switch($bom->is_subcon) @case(true) Subcon @break @default @endswitch @switch($bom->type) @case('BOM') Main @break @case('SUBBOM') Sub @break @default @endswitch
@if ($bom->approved_by) @endif
Order Production Alias : {{ $bom->alias }}
Date : {{ $bom->formatted_date }}
Material Fullname : {{ $bom->material->formatted_material }}
Material Code : {{ $bom->material_code }}
Material Type Code : {{ $bom->material->material_type_code }}
Qty : {{ $bom->qty }}
Material UoM : {{ $bom->material->uom_code }}
Lead Time : {{ $bom->lead_time }} day(s)
Start Date : {{ $bom->start_date }}
Level : {{ $bom->level }}
Labor Per Unit : {{ $bom->labor_per_unit }}
PIC : {{ $bom->createdBy->full_contact }}
Work Order No : @if (isset($bom->work_order_no)) {{ $bom->work_order_no }} @else Please approve this bom @endif
Approved By : {{ $bom->approvedBy->full_contact }}

@if (!$bom->details->isEmpty())
@foreach ($bom->details as $detail) @endforeach
Material Fullname Material Code UoM Type Consumption Sub Total Extra Purchase Total Volume MTO/MTS Action
{{ $detail->material->formatted_material }} {{ $detail->material_code }} {{ $detail->material->uom_code }} {{ $detail->material->material_type_code }} {{ $detail->consumption }} {{ $detail->sub_total }} {{ $detail->extra_purchase }} % {{ $detail->total }} {{ $detail->volume }} {{ $detail->mtomts }} @switch($detail->mtomts) @case('MTO')
@break @case('SUBCON') @break @default @endswitch
@endif
@endforeach
@endif
@if ($orderProduction->boms->isEmpty()) @endif @if (!$orderProduction->boms->isEmpty())

Order Production : save

@if (!$orderProduction->boms->isEmpty())
@csrf

Please fill detail below


@error('name')
{{ $message }}
@enderror
@error('desc')
{{ $message }}
@enderror
@else
Please complete the Order Production before you can save as template @endif
@endif @if (!$orderProduction->boms->isEmpty()) @endif @endsection @section('js') @endsection