@foreach($tour->legs->sortby('route_leg') as $leg) @if($leg_checks[$leg->route_leg] === true) @else @endif @endforeach
  # @lang('DSpecial::common.orig') @lang('DSpecial::common.dest') @lang('DSpecial::common.notes') Valid Between @lang('DSpecial::common.dist') @lang('DSpecial::common.block_time') Actions @lang('common.status')
{{ $leg->route_leg }} {{ optional($leg->dpt_airport)->full_name ?? $leg->dpt_airport_id }} {{ optional($leg->arr_airport)->full_name ?? $leg->arr_airport_id }} @if($leg->start_date && $leg->end_date) @endif @if($leg->subfleets_count > 0) @endif @if($leg->start_date && $leg->end_date) {{ $leg->start_date->startOfDay()->format('d.M H:i').' UTC | '.$leg->end_date->endofDay()->format('d.M H:i').' UTC'}} @else {{ $tour->start_date->startOfDay()->format('d.M H:i').' UTC | '.$tour->end_date->endofDay()->format('d.M H:i').' UTC'}} @endif @if($leg->distance[$units['distance']] > 0) {{ number_format($leg->distance[$units['distance']]).' '.$units['distance'] }} @endif @if($leg->flight_time > 0) @minutestotime($leg->flight_time) @endif  @if((!setting('pilots.only_flights_from_current') || $leg->dpt_airport_id == optional($user)->curr_airport_id) && (($leg->route_leg > 1 && $leg_checks[($leg->route_leg - 1)] === true) || $leg->route_leg == 1)) {{-- Bid --}} @if((setting('bids.allow_multiple_bids') === true || setting('bids.allow_multiple_bids') === false && count($saved) === 0)) @endif {{-- SimBrief --}} @if($simbrief && ($simbrief_bids === false || $simbrief_bids === true && isset($saved[$leg->id]))) @php $aircraft_id = isset($saved[$leg->id]) ? $user->bids->firstWhere('flight_id', $leg->id)->aircraft_id : null; @endphp @endif @endif
@if(setting('bids.block_aircraft', false)) @include('flights.bids_aircraft') @endif @include('flights.scripts')