@extends('layouts.structure') @section('content')
No coil details available.
@endif| Dispatched Weight & Dimensions | Process Type | Vehicle Details | Driver Name | Transport Date | Destination | Remark |
|---|---|---|---|---|---|---|
|
@php
$weight = $dispatch->dispatched_wt ?? 'N/A';
$dimensions = 'N/A';
if ($dispatch->type === 'ctl' && $dispatch->ctlCut) {
$width = $dispatch->ctlCut->cut_width ?? 'N/A';
$length = $dispatch->ctlCut->cut_length ?? 'N/A';
$dimensions =
$width !== 'N/A' && $length !== 'N/A'
? number_format($width, 1) .
' x ' .
number_format($length, 0) .
' mm'
: 'N/A';
} elseif ($dispatch->type === 'crs' && $dispatch->crsCut) {
$cutWidth = $dispatch->crsCut->cut_width ?? null;
$quantity = $dispatch->crsCut->quantity ?? null;
$dimensions =
$cutWidth !== null && $quantity !== null
? number_format($cutWidth, 1) . ' x ' . $quantity . ' mm'
: 'N/A';
}
@endphp
{{ $weight !== 'N/A' ? $weight . ' TON' : 'N/A' }}
@if ($dimensions !== 'N/A')
{{ $dimensions }} @endif |
{{ $dispatch->type ?? 'N/A' }} | {{ $dispatch->vehicle_no ?? 'N/A' }} | {{ $dispatch->driver_name ?? 'N/A' }} | {{ $dispatch->transport_date ?? 'N/A' }} | {{ $dispatch->destination ?? 'N/A' }} | {{ $dispatch->cut_remark ?? 'N/A' }} |
No transport details available for this plan.
@endif| Process Type | Total Cuts | Total Weight (TON) | Cut Details |
|---|---|---|---|
| {{ strtoupper($process->process_type) }} | {{ $process->process_type === 'crs' ? $process->crsCuts->count() : $process->ctlCuts->count() }} | {{ $process->process_type === 'crs' ? number_format($process->crsCuts->sum('current_weight'), 3) : number_format($process->ctlCuts->sum('current_weight'), 3) }} |
@if ($process->process_type === 'crs')
@if ($process->crsCuts->isNotEmpty())
|
No process details available.
@endif