@foreach($subfleets as $subfleet)
@if($subfleet->id == $subflid)
Configuration And Load Information For
{{ $subfleet->name }} ; {{ $acdetails->registration }}
{{-- Generate Load Figures --}}
{{-- Create and send some data to the $loadarray for MANUALRMK generation --}}
@php $loadarray = [] ; @endphp
@foreach($subfleet->fares as $fare)
@if($fare->capacity > 0)
@php
$randomloadperfare = ceil(($fare->capacity * (rand($loadmin, $loadmax))) /100);
$loadarray[] = ['SeatType' => $fare->code];
$loadarray[] = ['SeatLoad' => $randomloadperfare];
@endphp
@endif
@endforeach
@php
$loadcollection = collect($loadarray) ;
$totalgenload = $loadcollection->sum('SeatLoad') ;
@endphp
@if($totalgenload > 0 && $totalgenload < 900)
@elseif($totalgenload > 900)
@endif
@endif
@endforeach