Manage @if($operation_type_title)
:
{{ $operation_type_title }} @endif
Create {{ Str::singular($operation_type_title) }}
Create {{ Str::singular($operation_type_title) }} Page
{{ $myoperations->links() }}
@if($isOpen) @include('livewire.operation.create') @endif
Title
Sort Code
Description
@if ($this->operation_type_id == 1)
Material
Cost
@endif @if ($this->operation_type_id == 2)
Supplier
Time / Cost
@endif @if (in_array($this->operation_type_id, [3]))
Machine
Time / Cost
Location
Time / Cost
Employee
Time / Cost
Total Cost
@endif
Recurring?
Action
@foreach($myoperations as $operation)
{{$operation->name}}
@livewire('component.edit-field',['id'=>$operation->id,'object'=>'Operation','field'=>'sortcode'], key(rand() * $operation->id))
{{ $operation->description }}
@if ($this->operation_type_id == 1)
@if($operation->sub_product) {{ $operation->sub_product->name }} @endif
£{{ $operation->material_cost }}
@endif @if ($this->operation_type_id == 2)
@foreach($operation->suppliers as $operationsupplier) {{ $operationsupplier->name }}
@endforeach
{{ $operation->supplier_time }} / £{{ $operation->supplier_cost }}
@endif @if (in_array($this->operation_type_id, [3]))
@if($operation->machine) {{ $operation->machine->name }} @endif
{{ $operation->machine_time }} / £{{ $operation->machine_cost }}
@if($operation->location) {{ $operation->location->name }} @endif
{{ $operation->location_time }} / £{{ $operation->location_cost }}
@if($operation->employee) {{ $operation->employee->name }} @endif
{{ $operation->labour_time }} / £{{ $operation->labour_cost }}
£{{ $operation->final_cost }}
@endif
@livewire('component.toggle-button', [ 'model' => $operation, 'field' => 'frequent', ],key(rand() * $operation->id))
@endforeach