@extends('admin.layouts.container')

@section('content')
<div class="side-title">
    <h3>{{$head ?? '' }}</h3>
</div>

<div class="border-item">
    <form class="form-row">
{{--        @if($flight ?? ''  && $flight->id)--}}
{{--            @method('PUT')--}}
{{--        @endif--}}
        @csrf

        <div class="form-group col-lg-4">
            <label>{{ meta('name', $local) ?? __('flights.name') }} </label>
            <input readonly class="form-control bg-white"  value='{{ $flight->name }}'/>
        </div>
        <div class="form-group col-lg-4">
            <label>{{ meta('email', $local) ?? __('flights.email') }} </label>
            <input readonly class="form-control bg-white"  value='{{ $flight->email }}'/>
        </div>
        <div class="form-group col-lg-4">
            <label>{{ meta('phone', $local) ?? __('flights.phone') }} </label>
            <input readonly class="form-control bg-white"  value='{{ $flight->phone }}'/>
        </div>
        <div class="form-group col-lg-3">
            <label>{{ meta('babies_count', $local) ?? __('flights.babies_count') }} </label>
            <input readonly class="form-control bg-white"  value='{{ $flight->babies_count }}'/>
        </div>
        <div class="form-group col-lg-3">
            <label>{{ meta('children_count', $local) ?? __('flights.children_count') }} </label>
            <input readonly class="form-control bg-white"  value='{{ $flight->children_count }}'/>
        </div>
        <div class="form-group col-lg-3">
            <label>{{ meta('adult_count', $local) ?? __('flights.adult_count') }} </label>
            <input readonly class="form-control bg-white"  value='{{ $flight->adult_count }}'/>
        </div>
        <div class="form-group col-lg-3">
            <label>{{ meta('person_total', $local) ?? __('flights.person_total') }} </label>
            <input readonly class="form-control bg-white"  value='{{ $flight->person_total }}'/>
        </div>
        <div class="form-group col-lg-4">
            <label>{{ meta('trip_type', $local) ?? __('flights.trip_type') }} </label>
            <input readonly class="form-control bg-white"  value='{{ __('flights.'.$flight->trip_type) }}'/>
        </div>
        <div class="form-group col-lg-4">
            <label>{{ meta('going_date', $local) ?? __('flights.going_date') }} </label>
            <input readonly class="form-control bg-white"  value='{{ $flight->going_date }}'/>
        </div>
        <div class="form-group col-lg-4">
            <label>{{ meta('return_date', $local) ?? __('flights.return_date') }} </label>
            <input readonly class="form-control bg-white"  value='{{ $flight->return_date }}'/>
        </div>
        <div class="form-group col-lg-4">
            <label>{{ meta('trip_direction', $local) ?? __('flights.trip_direction') }} </label>
            <input readonly class="form-control bg-white"  value='{{ __('flights.'.$flight->trip_direction) }}'/>
        </div>
        <div class="form-group col-lg-4">
            <label>{{ meta('class_type', $local) ?? __('flights.class_type') }} </label>
            <input readonly class="form-control bg-white"  value='{{ __('flights.'.$flight->class_type) }}'/>
        </div>
        <div class="form-group col-lg-4">
            <label>{{ meta('departure_city', $local) ?? __('flights.departure_city') }} </label>
            <input readonly class="form-control bg-white"  value='{{ __('flights.'.$flight->departure_city) }}'/>
        </div>
        <div class="form-group col-lg-4">
            <label>{{ meta('arrival_city', $local) ?? __('flights.arrival_city') }} </label>
            <input readonly class="form-control bg-white"  value='{{ $flight->arrival_city }}'/>
        </div>
        <div class="form-group col-lg-4">
            <label>{{ meta('departure_airport', $local) ?? __('flights.departure_airport') }} </label>
            <input readonly class="form-control bg-white"  value='{{ $flight->departure_airport }}'/>
        </div>
        <div class="form-group col-lg-4">
            <label>{{ meta('arrival_airport', $local) ?? __('flights.arrival_airport') }} </label>
            <input readonly class="form-control bg-white"  value='{{ $flight->arrival_airport }}'/>
        </div>




        <div class="text-center mt-5 col-12">
            <a href="{{route('flights.index')}}" class="butn"><span>{{ __('flights.head') }}</span></a>
        </div>
    </form>
</div>

@endsection

@section('inner_js')

@endsection



