@extends('layouts.structure') @section('title', 'Classic Roof Pvt Ltd') @section('content') Coil Details and Transportation

Coil Details and Transportation

@if (session('success')) @endif @if (session('error')) @endif @if (isset($success_message)) @endif

Transportation Details

@csrf @foreach ($selected_processes ?? [] as $process_id) @endforeach
@error('vehicle_details')
{{ $message }}
@enderror
@error('driver_name')
{{ $message }}
@enderror
@error('transport_date')
{{ $message }}
@enderror
@error('destination')
{{ $message }}
@enderror
@error('location')
{{ $message }}
@enderror
@error('remark')
{{ $message }}
@enderror

Coil Details for {{ $client_name ?? 'N/A' }}

Coil ID CRR No. Grade Width (mm) Thickness (mm) Net Weight (TON) Balance Weight (TON)
{{ $coil_id ?? 'N/A' }} {{ $crr_no ?? 'N/A' }} {{ $grade ?? 'N/A' }} {{ is_numeric($width) ? number_format($width, 2) : 'N/A' }} {{ is_numeric($thickness) ? number_format($thickness, 1) : 'N/A' }} {{ is_numeric($net_weight) ? number_format($net_weight, 3) : 'N/A' }} {{ is_numeric($balance_weight) ? number_format($balance_weight, 3) : 'N/A' }} ({{ $coil_dispatch_option === 'dispatch' ? 'Dispatched' : ($coil_dispatch_option === 'scrap' ? 'Scraped' : 'Balance') }})

Selected Process Details

Selected Processes: {{ json_encode($selected_processes ?? []) }}
Process Details Keys: {{ json_encode(array_keys($process_details ?? [])) }}
@if (empty($selected_processes))

No processes selected for dispatch.

@else @php $has_processes = false; @endphp @foreach ($selected_processes as $process_id) @if (isset($process_details["process_$process_id"])) @php $has_processes = true; $process = $process_details["process_$process_id"]; @endphp
{{ $process['name'] ?? 'Process ' . $process_id }}
@if (!empty($process['cuts'])) @foreach ($process['cuts'] as $cut) @if ($process['production_line'] === 'CRS') @else @endif @endforeach @else @endif
Production Line{{ $process['production_line'] ?? 'N/A' }}
Cut ID{{ $cut['cut_id'] ?? 'N/A' }}
Cut Width (mm){{ $cut['cut_width'] ?? 'N/A' }}
Quantity{{ $cut['quantity'] ?? 0 }}
Prod. Weight (TON){{ $cut['prod_weight'] ?? '0.000' }}
Gross Weight (TON){{ $cut['gross_weight'] ?? '0.000' }}
CRS Balance Weight {{ $cut['balance_weight'] ?? '0.000' }} TON ({{ $cut['status'] ?? 'Balance' }})
Cut ID{{ $cut['cut_id'] ?? 'N/A' }}
Width (mm){{ $cut['width'] ?? 'N/A' }}
Length (mm){{ $cut['length'] ?? 'N/A' }}
Quantity{{ $cut['quantity'] ?? 0 }}
No. of Packets{{ $cut['packets'] ?? 0 }}
Production Weight (TON){{ $cut['prod_weight'] ?? '0.000' }}
CTL Balance Weight {{ $cut['balance_weight'] ?? '0.000' }} TON ({{ $cut['status'] ?? 'Balance' }})
No CutsNo cut details available for this process.
Balance Option{{ ucfirst($process['balance_option'] ?? 'dispatch') }}
@else
Process {{ $process_id }} not found in process_details.
@endif @endforeach @if (!$has_processes)

No valid process details available for selected processes.

@endif @endif
@endsection