@extends('admin.layouts.container')

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

<div class="border-item">
    <form class="form-row">
{{--        @if($umrahTripReservation ?? ''  && $umrahTripReservation->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='{{ $umrahTripReservation->name ?? $umrahTripReservation->user_name }}'/>
        </div>
        <div class="form-group col-lg-4">
            <label>{{ __('umrahTripReservations.email') }} </label>
            <input readonly class="form-control bg-white"  value='{{ $umrahTripReservation->user_email ?? $umrahTripReservation->email }}'/>
        </div>
        <div class="form-group col-lg-4">
            <label>{{ __('umrahTripReservations.phone') }} </label>
            <input readonly class="form-control bg-white"  value='{{ $umrahTripReservation->user_phone ?? $umrahTripReservation->phone }}'/>
        </div>
        <div class="form-group col-lg-4">
            <label>{{ __('umrahTripReservations.trip_type') }} </label>
            <input readonly class="form-control bg-white"  value='{{ __('umrahTripReservations.'.$umrahTripReservation->trip_type) }}'/>
        </div>
        <div class="form-group col-lg-4">
            <label>{{ __('umrahTripReservations.trip_name') }} </label>
            <input readonly class="form-control bg-white"  value='{{ $umrahTripReservation->trip_name }}'/>
        </div>
        <div class="form-group col-lg-4">
            <label>{{ __('umrahTripReservations.trip_date') }} </label>
            <input readonly class="form-control bg-white"  value='{{ $umrahTripReservation->trip_date }}'/>
        </div>
        <div class="form-group col-lg-4">
            <label>{{ __('umrahTripReservations.trip_date') }} </label>
            <input readonly class="form-control bg-white"  value='{{ date('Y-m-d', strtotime($umrahTripReservation->created_at)) }}'/>
        </div>
        <div class="form-group col-lg-4">
            <label>{{ __('umrahTripReservations.departure_city') }} </label>
            <input readonly class="form-control bg-white"  value='{{ $umrahTripReservation->departure_city }}'/>
        </div>
        <div class="form-group col-lg-4">
            <label>{{ __('umrahTripReservations.arrival_city') }} </label>
            <input readonly class="form-control bg-white"  value='{{ $umrahTripReservation->arrival_city }}'/>
        </div>
        <div class="form-group col-lg-4">
            <label>{{ __('umrahTripReservations.person_count') }} </label>
            <input readonly class="form-control bg-white"  value='{{ $umrahTripReservation->person_count }}'/>
        </div>
        <div class="form-group col-lg-4">
            <label>{{ __('umrahTripReservations.house_type') }} </label>
            <input readonly class="form-control bg-white"  value='{{ __('umrahTripReservations.'.$umrahTripReservation->house_type) }}'/>
        </div>
        <div class="form-group col-lg-4">
            <label>{{ __('umrahTripReservations.total') }} </label>
            <input readonly class="form-control bg-white"  value='{{ $umrahTripReservation->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($umrahTripReservation->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



