@extends('layouts.main_frontend') @section('content')
@if (!empty($aquar->images)) @foreach (explode(',', $aquar->images) as $key => $img)
department
@endforeach @else {{--
department
department
--}}
department
department
@endif
@lang('site.id number')({{ $aquar->id ?? 0 }})

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

{{ round($aquar->aqarReview2()) }}
@lang('site.comments') {{ $aquar->aqarComment->count() }}
@lang('site.locations'):
{{ $aquar->country->name ?? '' }} , {{ $aquar->city->name ?? '' }}
{{--
@lang('site.floor_numbers'):
@foreach ($aquar->aqarSection as $key => $section) @if ($section->name_ar == 'عدد الأدوار') @if ($section->subsection->isNotEmpty()) @foreach ($section->subsection->unique('name') as $subsection) @if (!empty($subsection->name))
{{ $subsection->name }}
@endif @endforeach @endif @endif @endforeach
--}} @php $floorSections = $aquar->aqarSection->filter(function ($section) { return $section->name_ar == 'عدد الأدوار' && $section->subsection->isNotEmpty() && $section->subsection->unique('name')->whereNotNull('name')->isNotEmpty(); }); @endphp @if ($floorSections->isNotEmpty())
@lang('site.floor_numbers'):
@foreach ($floorSections as $section) @foreach ($section->subsection->unique('name')->whereNotNull('name') as $subsection)
{{ $subsection->name }}
@endforeach @endforeach
@endif @if ($aquar->fixed_price != null || $aquar->changed_price != null) @if ($aquar->fixed_price != null)
@lang('site.price'):
{{ $aquar->fixed_price . ' ' . ($aquar->country->currency_ar ?? '') }}
@lang('site.Reservation deposit'):
{{ $aquar->fixed_price . ' ' . ($aquar->country->currency_ar ?? '') }}
@elseif ($aquar->changed_price != null) @php $changed_price = json_decode($aquar->changed_price); @endphp @if (!empty($changed_price->person_num) && !empty($changed_price->price)) @foreach ($changed_price->person_num as $key => $person_num) @if (!is_null($person_num) && !is_null($changed_price->price[$key]))
@lang('site.personnumber'):
{{ $person_num }}
@lang('site.price'):
{{ $changed_price->price[$key] . ' ' . ($aquar->country->currency_ar ?? '') }}
@endif @endforeach @endif @endif @endif
money icon
@lang('site.The deposit is paid at the time of booking')
  • {{-- {{ $aquar->details ?? '' }} --}} {!! strip_tags(html_entity_decode($aquar->details ?? '')) !!}

    {!! strip_tags(html_entity_decode($aquar->description ?? '')) !!} {{-- {!! html_entity_decode($aquar->description) !!} --}}

    @foreach ($aquar->aqarSection as $key => $section)

    @foreach ($section->subsection->unique('name') as $subsection)
    {{ $subsection->name ?? '' }}
    @endforeach
    @endforeach
  • {{ round($aquar->aqarReview2()) }}
    {{ $aquar->aqarComment->count() }} @lang('site.reviews')
    @if (round($aquar->aqarReview2()) == 5)

    @lang('site.excellent')

    @lang('site.Based on reviews from all kinds of travelers')

    @elseif(round($aquar->aqarReview2()) == 4)

    @lang('site.excellent2')

    @lang('site.Based on reviews from all kinds of travelers')

    @elseif(round($aquar->aqarReview2()) == 3)

    @lang('site.excellent3')

    @lang('site.Based on reviews from all kinds of travelers')

    @elseif(round($aquar->aqarReview2()) == 2)

    @lang('site.excellent4')

    @lang('site.Based on reviews from all kinds of travelers')

    @elseif(round($aquar->aqarReview2()) == 1)

    @lang('site.excellent5')

    @lang('site.Based on reviews from all kinds of travelers')

    @else

    @lang('site.excellent6')

    {{--

    @lang('site.Based on reviews from all kinds of travelers')

    --}}
    @endif
    @foreach ($aquar->aqarReview as $review) @if (!empty($review->reviewElement))
    {{ $review->reviewElement->name ?? '' }}
    {{--
    {{round($aquar->aqarReviews->avg('rate')) ?? 0}}
    --}}

    Warning: Undefined variable $aquar in /home/saeeh/public_html/resources/views/frontend/detailaquar.blade.php on line 429

    Fatal error: Uncaught Error: Call to a member function aqarReviewElement() on null in /home/saeeh/public_html/resources/views/frontend/detailaquar.blade.php:429 Stack trace: #0 {main} thrown in /home/saeeh/public_html/resources/views/frontend/detailaquar.blade.php on line 429