{{-- Header bar --}}
{{-- Title + barcode --}}
|
{{ $record->name }}
|
@if ($record->name)
{!! DNS1D::getBarcodeHTML($record->name, 'C128', 1.5, 40) !!}
@endif
|
{{-- Responsible --}}
@if ($record->assignedUser)
@endif
{{-- Product / Qty to produce / Qty producing --}}
|
Product:
{{ $record->product?->name ?? '—' }}
|
Quantity to Produce:
{{ number_format((float) $record->quantity, 2) }} {{ $record->uom?->name ?? '' }}
|
@if ($record->quantity_producing !== null)
Quantity Producing:
{{ number_format((float) $record->quantity_producing, 2) }} {{ $record->uom?->name ?? '' }}
|
@endif
{{-- Work Orders / Operations Done --}}
@if ($record->workOrders->isNotEmpty())
Operations Done
| Operation |
WorkCenter |
Duration (minutes) |
Barcode |
@foreach ($record->workOrders as $workOrder)
| {{ $workOrder->name ?? $workOrder->operation?->name ?? '—' }} |
{{ $workOrder->workCenter?->name ?? '—' }} |
{{ number_format((float) ($workOrder->duration ?? 0), 1) }} |
@if ($workOrder->name)
{!! DNS1D::getBarcodeHTML($workOrder->name, 'C128', 1.2, 30) !!}
@endif
|
@endforeach
@endif
{{-- Components --}}
@if ($record->rawMaterialMoves->isNotEmpty())
Components
| Product |
Consumed |
To Consume |
@foreach ($record->rawMaterialMoves as $move)
| {{ $move->product?->name ?? '—' }} |
{{ number_format((float) ($move->quantity ?? 0), 2) }} |
{{ number_format((float) $move->product_uom_qty, 2) }}
{{ $move->uom?->name ?? '' }}
|
@endforeach
@endif
{{-- Footer bar --}}