@if (isset($data[$index]) && count($data[$index]))

@lang("content.list")

@php $actualCycles = $j = 0 @endphp @foreach($data[$index] as $each) @if ($each['aircraft']) @else @endif @php $cycles = $each['flights'] @endphp @php $pRatio = $cycles != 0 ? $each['planned'] / $cycles : 0 @endphp @php $aRatio = 0 @endphp @php $aCycles = $each['actualFlights'] @endphp @if ($aCycles) @php $aRatio = $cycles != 0 ? $each['actual'] / $aCycles : 0 @endphp @endif @endforeach @php $cycles = $data['totalFlights'] @endphp @php $aCycles = $data['totalActualFlights'] @endphp @php $pRatio = $cycles != 0 ? $data['totalPlanned'] / $cycles : 0 @endphp @php $aRatio = $aCycles != 0 ? $data['totalActual'] / $aCycles : 0 @endphp
No @lang("content.ac_registration") @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 }}id}/edit") }}">{{ getAircraft($each['aircraft']) }}{{ getAircraft($each['aircraft']) }}{{ $cycles }}{{ $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"):{{ $cycles }} {{ $aCycles }}{{ round($pRatio, 2) }} {{ round($aRatio, 2) }} {{ hoursToTime($data['totalPlanned'], true) }} {{ hoursToTime($data['totalActual'], true) }} {{ hoursToTime($data['totalFlying'], true) }}
@endif