@extends('app') @section('title', 'Flight Assignments') @section('content')
{{-- Left Column --}}
@if(count($assignments) === 0)
@lang('DSpecial::common.no_assignments')
@endif @foreach($assignments as $group => $tas)
@lang('DSpecial::common.fl_assignments') | {{ Carbon::create()->day(1)->month($group)->format('F') }}
@foreach($tas->sortBy('assignment_order', SORT_NATURAL) as $as) @endforeach
# @lang('DSpecial::common.flight_no') @lang('airports.departure') @lang('airports.arrival') @lang('DSpecial::common.block_time')  
{{ $as->assignment_order }} @if($as->flight) {{ optional($as->flight->airline)->code.' '.optional($as->flight)->flight_number }} @endif @if($as->flight) @if(Theme::getSetting('flights_flags')) @endif {{ optional($as->flight->dpt_airport)->full_name ?? $as->flight->dpt_airport_id}} @if(filled(optional($as->flight->dpt_airport)->iata)){{ ' ('.$as->flight->dpt_airport->iata.')'}}@endif @endif @if($as->flight) @if(Theme::getSetting('flights_flags')) @endif {{ optional($as->flight->arr_airport)->full_name ?? $as->flight->arr_airport_id}} @if(filled(optional($as->flight->arr_airport)->iata)){{ ' ('.$as->flight->arr_airport->iata.')'}}@endif @endif @if($as->flight) @minutestotime($as->flight->flight_time) @endif @if($as->completed) @if(filled($as->pirep_id)) @else @endif @else @endif
@endforeach
{{-- Right Column --}}
@if(count($assignments) > 0 && $dbasic === true)
@widget('DBasic::Map', ['source' => 'assignment'])
@endif @if($stats)
@lang('DSpecial::common.personal_stats')
@foreach ($stats as $month => $stat) @if($month === 'Overall')
@lang('DSpecial::common.assignments') @lang('DSpecial::common.completed') @lang('DSpecial::common.earnings')¹
{{ $stat['total'] }} {{ $stat['completed'] }} {{ $stat['earnings'] }}
{{ $stat['ratio'].'%' }}
@elseif($month != 'Overall')
{{ $month }}
@lang('DSpecial::common.assignments') @lang('DSpecial::common.completed') @lang('DSpecial::common.earnings')¹
{{ $stat['total'] }} {{ $stat['completed'] }} {{ $stat['earnings'] }}
{{ $stat['ratio'].'%' }}
@endif @endforeach
@endif @ability('admin', 'admin-user')
@if(!$sys_check)
@csrf
@else
@csrf
@csrf
@endif
@endability
@endsection