{{-- 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 --}}
|
{{ __('manufacturing::app.documents.product') }}
{{ $record->product?->name ?? '—' }}
|
{{ __('manufacturing::app.documents.quantity-to-produce') }}
{{ number_format((float) $record->quantity, 2) }} {{ $record->uom?->name ?? '' }}
|
@if ($record->quantity_producing !== null)
{{ __('manufacturing::app.documents.quantity-producing') }}
{{ number_format((float) $record->quantity_producing, 2) }} {{ $record->uom?->name ?? '' }}
|
@endif
{{-- Work Orders / Operations Done --}}
@if ($record->workOrders->isNotEmpty())
{{ __('manufacturing::app.documents.operations-done') }}
| {{ __('manufacturing::app.documents.operation') }} |
{{ __('manufacturing::app.documents.work-center') }} |
{{ __('manufacturing::app.documents.duration-minutes') }} |
{{ __('manufacturing::app.documents.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())
{{ __('manufacturing::app.documents.components') }}
| {{ __('manufacturing::app.documents.product') }} |
{{ __('manufacturing::app.documents.consumed') }} |
{{ __('manufacturing::app.documents.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 --}}