@php // deal with some of the cosmetic changes per item $gridcols= 4; switch($product->product_type_id){ case 1: case 3: $gridcols= 5; break; } @endphp

Build {{ Str::singular($product_type_title) }} - {{ $product->name }}

@if (in_array($product_type_id, [1,3,7])) {{ Str::singular($product_type_title) }} Details | @endif Back to Grid
@if($isOpen) @if($templateType == 1) @include('livewire.item.create') @endif @if($templateType == 2) @include('livewire.operation.create') @endif @endif
ID Name Sku Sort Code Price Cost Material Supplier Product Description Action {{ $product->id }} @livewire('component.edit-field',['id'=>$product->id,'object'=>'Product','field'=>'name'], key(rand() * $product->id)) {{ $product->sku }} @livewire('component.edit-field',['id'=>$product->id,'object'=>'Product','field'=>'sortcode'], key(rand() * $product->id)) @livewire('component.edit-field',['id'=>$product->id,'object'=>'Product','field'=>'price'], key(rand() * $product->id)) {{ $product->cost_currency }} {{ $product->material }} @foreach($product->supplier as $productsupplier) {{ $productsupplier->name }} @endforeach {{ $product->product_description }} @if (in_array($product->product_type_id, [1,3,7])) @endif Manufacturing Material and Operations
New Raw Material Piece New Operation in House New Operation out sourced
@if (in_array($product->product_type_id, [1,3]))
@foreach($product_sub_list as $productitem) @endforeach
@foreach($product_mp_list as $productitem) @endforeach
@endif @if (in_array($product->product_type_id, [1,3,7]))
@foreach($product_pp_list as $productitem) @endforeach
@foreach($product_material_list as $material) @endforeach
@endif
@foreach($operation_list as $operationitem) @endforeach
Title Type Sort Code Machine Time Labour Time Description Each Cost Qty Total Cost Order Actions @foreach($product->materiallist as $operation) @php $counter = 1; @endphp @foreach($product_list as $productpart) @include('livewire.item.itemslist') @endforeach
@endforeach @foreach($product->operationlist as $operation) @php $counter = 1; @endphp @include('livewire.item.operationslist')
@endforeach
@push('scripts') @endpush