@extends('admin.app') @section('title', 'Disposable Tours') @section('content')

Only Tour Details are defined and edited here, legs must be inserted from Admin/Flights or better should be csv imported to ease the process.

Tour Code defined here MUST MATCH the flight/route code and flight/route legs must be defined for tours to work properly.

Active tours will be displayed at Tours page according to Start and End dates provided here.

 

© B.Fatih KOZ

Tour Management

@csrf


@if(isset($tour) && blank($tour->legs)) @endif
@if(filled(optional($tour)->legs))

Tour Legs

@csrf
@foreach($tour->legs->sortBy('route_leg', SORT_NATURAL) as $leg) @endforeach
Flight Number Code Leg Origin Destination Distance Duration Leg Dates (UTC) Subfleets Notes Details Actions
{{ optional($leg->airline)->code.' '.$leg->flight_number}} {{ $leg->route_code }} {{ $leg->route_leg }} {{ $leg->dpt_airport_id }} {{ $leg->arr_airport_id }} {{ $leg->distance->local(0).' '.$units['distance'] }} {{ DS_ConvertMinutes($leg->flight_time) }} @if(filled($leg->start_date) && filled($leg->end_date)) {{ $leg->start_date->startOfDay()->format('l d.M.Y H:i') }} > {{ $leg->end_date->endOfDay()->format('l d.M.Y H:i') }} @else -- @endif @if($leg->subfleets->count() > 0) {{ $leg->subfleets->count() }} @else -- @endif {{ $leg->notes }} {{ $leg->active ? 'Active' : 'Inactive' }}, {{ $leg->visible ? 'Visible' : 'Not Visible' }}, {!! $leg->owner_id ? 'Owned' : 'Not Owned' !!}
@csrf Edit
@endif

Tour Subfleet Management

@endsection @section('scripts') @parent @endsection