@extends('layouts.structure') @section('title', 'Classic Roof Pvt Ltd') @section('content') Ready To Dispatch

Ready To Dispatch

@if (session('error')) @endif @if (session('success')) @endif
Plan Status: {{ ucfirst(str_replace('_', ' ', $plan->status)) }}
@if ($isFullyDispatched && $plan->coil->balance_coil == 0)
All cuts have been dispatched, and the coil balance is zero. No further dispatching is possible.
@else
@csrf
Please select a client
Please select a CRR No.
Grade is required
Width must be a positive number
Thickness must be a positive number
Density must be a positive number
Net Weight must be a positive number
Status: {{ ucfirst(str_replace('_', ' ', $plan->status)) }}
@if ($plan->coil->balance_coil > 0)
Coil Balance Weight: {{ number_format($plan->coil->balance_coil ?? 0, 3) }} TON
Please select a coil dispatch option
@endif

Cut Details

@if (empty($cuts))
All cuts have been dispatched or scrapped.
@else
Please select at least one cut
@foreach ($cuts as $cut) @if ($cut['process_type'] === 'ctl')
@if ($cut['show_checkbox']) @endif {{ strtoupper($cut['process_type']) }}
@if ($cut['show_checkbox']) @endif @if ($cut['show_checkbox']) @endif @if ($cut['balance_weight'] > 0) @endif
Production Line {{ strtoupper($cut['process_type']) }}
Width (mm) {{ number_format($cut['cut_width'], 2) }}
Length (mm) {{ number_format($cut['cut_length'], 2) }}
Total Quantity {{ $cut['quantity'] }}
Prod. Weight (TON) {{ number_format($cut['prod_weight'], 3) }}
Complete Per-Packet Qty {{ $cut['complete_per_packet_qty'] }}
Remaining Complete Packets {{ $cut['remaining_complete_packets'] }}
Complete Packets to Dispatch 0 ? '' : 'disabled' }} oninput="validateAndCalculateGrossWeight({{ $cut['process_id'] }}, {{ $cut['cut_id'] }})">
Cannot exceed {{ $cut['remaining_complete_packets'] }} complete packets
Complete Packet Weight (TON) {{ number_format($cut['complete_packet_wt'], 3) }}
Partial Per-Packet Qty {{ $cut['partial_per_packet_qty'] ?? 'N/A' }}
Remaining Partial Packets {{ $cut['remaining_partial_packets'] }}
Partial Packets to Dispatch 0 ? '' : 'disabled' }} oninput="validateAndCalculateGrossWeight({{ $cut['process_id'] }}, {{ $cut['cut_id'] }})">
Cannot exceed {{ $cut['remaining_partial_packets'] }} partial packets
Partial Packet Weight (TON) {{ number_format($cut['partial_packet_wt'], 3) }}
Balance Weight (TON) {{ number_format($cut['balance_weight'], 3) }} TON ( {{ $cut['scrap'] ? 'Declared as Scrap' : 'Balance' }} )
Gross Weight (TON)
Gross weight must be a positive number
Description Of Goods
Remark is required for CTL cuts
Please select a balance option or enter packet quantities for cut {{ $cut['cut_id'] }}
@elseif ($cut['process_type'] === 'crs')
@if ($cut['show_checkbox']) @endif {{ strtoupper($cut['process_type']) }} @if (!is_null($cut['new_plan_id'])) Recreated New Plan Id {{ $cut['new_plan_id'] }} @endif
@if ($cut['balance_weight'] > 0) @endif
Production Line {{ strtoupper($cut['process_type']) }}
Width (mm) {{ number_format($cut['cut_width'], 2) }}
Quantity {{ $cut['quantity'] }}
Prod. Weight (TON) {{ number_format($cut['prod_weight'], 3) }}
Balance Weight (TON) {{ number_format($cut['balance_weight'], 3) }} TON ( {{ $cut['scrap'] ? 'Declared as Scrap' : 'Balance' }} )
Gross Weight (TON)
Gross weight must be a positive number
Description Of Goods
Remark is required for CTL cuts
Please select a balance option for cut {{ $cut['cut_id'] }}
@endif @endforeach @endif

Transportation Details

Vehicle details are required
@error('vehicle_details')
{{ $message }}
@enderror
Driver name is required
@error('driver_name')
{{ $message }}
@enderror
Driver mobile must be 10 digits
@error('driver_mobile')
{{ $message }}
@enderror
Transport date is required
@error('transport_date')
{{ $message }}
@enderror
Destination is required
@error('destination')
{{ $message }}
@enderror
Location must be valid
@error('location')
{{ $message }}
@enderror
Remark must be valid
@error('remark')
{{ $message }}
@enderror
@endif @endsection