@extends('layouts.structure') @section('content') Plan - Summary Table

Plan - Summary Table

Summary Table (CRR No. Wise)

@if ($plans->isEmpty()) @else Download Summary Excel
{{-- --}} @php $srNo = 1; @endphp @foreach ($plans as $plan) @php $balanceWeight = $plan->weight_balance; $isBalanceClickable = floatval(str_replace(',', '', $balanceWeight)) > 0; // Convert weights to float for calculation $fgWeight = floatval(str_replace(',', '', $plan->fg_weight)); $dispatchedFgWeight = floatval( str_replace(',', '', $plan->dispatched_weight), ); // Calculate remaining FG weight $remainingFgWeight = max(0, $fgWeight - $dispatchedFgWeight); $remainingFgWeightFormatted = number_format($remainingFgWeight, 3); @endphp {{-- --}} @endforeach @if ($plans->isEmpty()) @endif
Sr. No. Client Name CRR No. Net Weight (TON) FG Weight (TON) Balance Weight (TON) Declared Scrap Weight (TON) Dispatched Scrap Weight (TON) Dispatched FG Weight (TON)Remaining FG Weight (TON)View Details
{{ $srNo++ }} {{ $plan->client->client_name ?? 'N/A' }} {{ $plan->coil->crr_no ?? 'N/A' }} {{ $plan->coil->net_weight ? number_format($plan->coil->net_weight, 3) : '0.000' }}
{{ $remainingFgWeightFormatted }}
{{ $balanceWeight }} @if ($isBalanceClickable)
Create New Plan
Scrap
Dispatch
@endif
{{ $plan->declared_scrap_weight }}
{{ $plan->dispatched_scrap_weight }}
{{ $plan->dispatched_weight }}
{{ $remainingFgWeightFormatted }}
View Details
No plans available.
@endif
@endsection