@if (isset($data[$index]) && count($data[$index]))
No | @lang("content.ac_type") | @lang("content.cycles") | @lang("content.ratio") | @lang("content.block_hours") | @lang("content.flight_hours") | ||||
---|---|---|---|---|---|---|---|---|---|
@lang("content.planned") | @lang("content.actual") | @lang("content.planned") | @lang("content.actual") | @lang("content.planned") | @lang("content.actual") | @lang("content.actual") | |||
{{ ++$j }} | @if ($each['aircraftType'])id}") }}">{{ getAircraftType($each['aircraftType']) }} | @elseN/A | @endif @php $cycles = $each['flights'] @endphp @php $pRatio = $cycles != 0 ? $each['planned'] / $cycles : 0 @endphp{{ $cycles }} | @php $aRatio = 0 @endphp @php $aCycles = $each['actualFlights'] @endphp @if ($aCycles) @php $aRatio = $cycles != 0 ? $each['actual'] / $aCycles : 0 @endphp @endif{{ $aCycles }} | {{ round($pRatio, 2) }} | {{ round($aRatio, 2) }} | {!! !$each['planned'] ? "".hoursToTime($each['planned'], true)."" : hoursToTime($each['planned'], true) !!} | {!! !$each['actual'] ? "".hoursToTime($each['actual'], true)."" : hoursToTime($each['actual'], true) !!} | {!! !$each['flying'] ? "".hoursToTime($each['flying'], true)."" : hoursToTime($each['flying'], true) !!} |
@lang("content.total"): | @php $cycles = $data['totalFlights'] @endphp @php $aCycles = $data['totalActualFlights'] @endphp{{ $cycles }} | {{ $aCycles }} | @php $pRatio = $cycles != 0 ? $data['totalPlanned'] / $cycles : 0 @endphp @php $aRatio = $aCycles != 0 ? $data['totalActual'] / $aCycles : 0 @endphp{{ round($pRatio, 2) }} | {{ round($aRatio, 2) }} | {{ hoursToTime($data['totalPlanned'], true) }} | {{ hoursToTime($data['totalActual'], true) }} | {{ hoursToTime($data['totalFlying'], true) }} |