@extends('admin.layouts.app') @section('content')

{{!empty($recovery) ? __('Recovery') : __("All Flight")}}

@if(empty($recovery)) {{__("Add new flight")}} @endif
@include('admin.message')
@if(!empty($rows))
{{csrf_field()}}
@endif

{{__('Found :total items',['total'=>$rows->total()])}}

@if($rows->total() > 0) @foreach($rows as $row) @endforeach @else @endif
{{ __('Name')}} {{ __('Code')}} {{ __('Airport From')}} {{ __('Airport To')}} {{ __('Departure time')}} {{ __('Arrival time')}} {{ __('Duration')}} {{ __('Author')}} {{ __('Status')}} {{ __('Date')}}
{{$row->title}} {{$row->code}} {{$row->airportFrom->name}} {{$row->airportTo->name}} {{ display_datetime($row->departure_time)}} {{ display_datetime($row->arrival_time)}} {{$row->duration ?? ''}} @if(!empty($row->author)) {{$row->author->getDisplayName()}} @else {{__("[Author Deleted]")}} @endif {{ $row->status }} {{ display_date($row->updated_at)}}
{{__("No flight found")}}
{{$rows->appends(request()->query())->links()}}
@endsection @section('script.body') @endsection