@extends('layouts.main_frontend') @section('content')

@lang('site.details')

@lang('site.id number')({{ $booking->aqar->id }})
{{ round($booking->aqar->aqarReview2()) ?? 0 }}
{{ $booking->aqar->aqarComment->count() ?? 0 }} @lang('site.comments')

{!! strip_tags(html_entity_decode($booking->aqar->name ?? '')) !!}

{{ $booking->aqar->country->name ?? '' }}, {{ $booking->aqar->city->name ?? '' }}
{!! strip_tags(html_entity_decode($booking->aqar->details ?? '')) !!}

@lang('site.Information that may interest you')

@lang('site.basic information')

@lang('site.name1'):
{{$booking->aqar->user->firstname ?? ''}} {{$booking->aqar->user->lastname ?? ''}}
@if ($booking->booking_status_id != 4) @endif

@lang('site.Information that may interest yous')

@lang('site.It may take a few days for the request to be approved')

@lang('site.A reservation deposit is required to confirm the reservation')


@lang('site.conditionBooking')

@if (!empty($booking->aqar->user->InvestCoditions[0]['conditions']))
{{ $booking->aqar->user->InvestCoditions[0]['conditions'] }}
@else
@lang('site.conditionBookingss')
@endif
{{--
{{ $booking->aqar->user->InvestCoditions[0]['conditions'] }}
--}}
{{--
@lang('site.time_from')
{{ $booking->aqar->time_from ?? '' }}
@lang('site.time_to')
{{ $booking->aqar->time_to ?? '' }}

@lang('site.hallnumber')
{{ $booking->aqar->hallnumber ?? 0 }}

@lang('site.person_num')
{{ $booking->aqar->personnumber ?? 0 }}

@lang('site.day_count')
{{ $booking->day_count ?? 0 }}
--}}
@lang('site.reciept_date2')
{{ $booking->reciept_date ?? '' }}
@lang('site.delivery_date2')
{{ $booking->delivery_date ?? '' }}

@lang('site.Receipt hour2')
{{ $booking->aqar->time_from ?? '' }}

@lang('site.delivery hour2')
{{ $booking->aqar->time_to ?? '' }}

@lang('site.day_count')
{{ $booking->day_count ?? '' }}


@lang('site.person_num')
{{ $booking->aqar->personnumber ?? 0 }}
{{--
@lang('site.country')
{{ $booking->aqar->country->name ?? '' }}
--}} {{--
--}}
@lang('site.normalroom')
{{ $booking->aqar->normalroom ?? '' }}

@lang('site.masterroom')
{{ $booking->aqar->masterroom ?? 0 }}

@lang('site.bathroomnumber')
{{ $booking->aqar->bathroomnumber ?? 0 }}

@lang('site.unitnumber')
{{ $booking->aqar->unitnumber ?? 0 }}

@if ($booking->booking_status_id == 1)
@else
@endif

@lang('site.Price summary')

@if (($booking->fixed_price != null)||($booking->fixed_price === 0.00))
@lang('site.price_day')
{{-- {{ $booking->fixed_price ?? 0 }} --}} {{ $booking->fixed_price . ' ' . ($booking->aqar->country->currency_ar ?? '') }}
@lang('site.Reservation deposit')
{{ $booking->fixed_price . ' ' . ($booking->aqar->country->currency_ar ?? '') }}
@lang('site.totalprice')
{{ $booking->total_price . ' ' . ($booking->aqar->country->currency_ar ?? '') }}
@else {{-- {{dd(json_decode($booking->changed_price))}} --}} {{-- @foreach (json_decode($aqar->changed_price)->person_num as $key => $item) --}} {{--
@lang('site.price')
{{json_decode($booking->changed_price)->price}}
@lang('site.Reservation deposit')
{{json_decode($booking->changed_price)->price}}
--}}
@lang('site.personnumber')
{{-- {{ json_decode($booking->changed_price)->person_num }} --}} @php // Decode the JSON string into an associative array $changedPrice = json_decode($booking->changed_price, true); @endphp @if (is_array($changedPrice)) @if (isset($changedPrice['person_num']) && is_array($changedPrice['person_num'])) @foreach ($changedPrice['person_num'] as $person_num) {{ $person_num }} @endforeach @else {{ $changedPrice['person_num'] }} @endif @else

Error: $changedPrice is not an array.

@endif
@lang('site.totalprice')
{{-- {{ json_decode($booking->changed_price)->price }} --}} @php // Decode the JSON string into an associative array $changedPrice = json_decode($booking->changed_price, true); @endphp @if (is_array($changedPrice)) @if (isset($changedPrice['price']) && is_array($changedPrice['price'])) @foreach ($changedPrice['price'] as $price) {{ $price . ' ' . ($booking->aqar->country->currency_ar ?? '') }} @endforeach @else {{ $changedPrice['price']. ' ' . ($booking->aqar->country->currency_ar ?? '') }} @endif @else

Error: $changedPrice is not an array.

@endif
{{-- @endforeach --}} @endif
@endsection @section('scripts') @endsection