@extends('admin.layouts.container')

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

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

        <div class="form-group col-lg-4">
            <label>{{ __('umrahTripReservations.user_id') }} </label>
            <input readonly class="form-control bg-white"  value='{{ $umrah_trip_reservation->name ?? $umrah_trip_reservation->user_name }}'/>
        </div>
        <div class="form-group col-lg-4">
            <label>{{ __('umrahTripReservations.email') }} </label>
            <input readonly class="form-control bg-white"  value='{{ $umrah_trip_reservation->user_email ?? $umrah_trip_reservation->email }}'/>
        </div>
        <div class="form-group col-lg-4">
            <label>{{ __('umrahTripReservations.phone') }} </label>
            <input readonly class="form-control bg-white"  value='{{ $umrah_trip_reservation->user_phone ?? $umrah_trip_reservation->phone }}'/>
        </div>
        <div class="form-group col-lg-4">
            <label>{{ __('umrahTripReservations.trip_name') }} </label>
            <input readonly class="form-control bg-white"  value='{{ $umrah_trip_reservation->trip_name }}'/>
        </div>
        <div class="form-group col-lg-4">
            <label>{{ __('umrahTripReservations.trip_date') }} </label>
            <input readonly class="form-control bg-white"  value='{{ $umrah_trip_reservation->umrah_trip_date }}'/>
        </div>
        <div class="form-group col-lg-4">
            <label>{{ __('umrahTripReservations.departure_city') }} </label>
            <input readonly class="form-control bg-white"  value='{{ $umrah_trip_reservation->departure_city }}'/>
        </div>
        <div class="form-group col-lg-4">
            <label>{{ __('umrahTripReservations.arrival_city') }} </label>
            <input readonly class="form-control bg-white"  value='{{ $umrah_trip_reservation->arrival_city }}'/>
        </div>
        <div class="form-group col-lg-4">
            <label>{{ __('umrahTripReservations.person_count') }} </label>
            <input readonly class="form-control bg-white"  value='{{ $umrah_trip_reservation->person_count }}'/>
        </div>
        <div class="form-group col-lg-4">
            <label>{{ __('umrahTripReservations.house_type') }} </label>
            <input readonly class="form-control bg-white"  value='{{ __('umrahTripReservations.'.$umrah_trip_reservation->house_type) }}'/>
        </div>
        <div class="form-group col-lg-4">
            <label>{{ __('umrahTripReservations.total') }} </label>
            <input readonly class="form-control bg-white"  value='{{ $umrah_trip_reservation->total }}'/>
        </div>

        <div class="form-group col-lg-12">
            <table class="table table-bordered table-hover">
                <thead>
                <tr class="text-center">
                    <th>#</th>
                    <th>{{__('umrahTripReservations.point_address')}}</th>
                </tr>
                </thead>
                <tbody>
                @foreach($umrah_trip_reservation->rally_point_info as $point)
                    <tr class="text-center">
                        <td>{{$loop->iteration}}</td>
                        <td>{{$point['address']}}</td>
                    </tr>
                @endforeach
                </tbody>
            </table>
        </div>

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

@endsection

@section('inner_js')

@endsection



