@extends('layouts.main_frontend') @section('content')
@php $flag = App\Models\Category::where('id', $place->category_id) ->select('flag', 'go_or_not') ->first(); @endphp
@if (!empty($place->images)) @foreach (explode(',', $place->images) as $key => $img)
place image
@endforeach @else
image 1
@endif

{{ $place->name ?? '' }}

({{ round($place->placeReview2()) }})
@lang('site.comments') {{ $place->placeCommentsAll->count() ?? 0 }}
@if ($place->discount == 1)
@if ($place->type_discount == 1) يوجد خصم {{ $place->value_discount }} % لمستخدمي تطبيق سائح @else يوجد خصم {{ $place->value_discount . ' ' . ($place->country->currency_ar ?? '') }} لمستخدمي تطبيق سائح @endif
@endif @if ($flag->go_or_not == 'go_to') @endif
@if (!empty($place->twitter) || !empty($place->instagram) || !empty($place->facebook))
@if (!empty($place->instagram)) @endif @if (!empty($place->facebook)) @endif @if (!empty($place->twitter)) @endif
@endif
  • @lang('site.descrption')

    {{-- {!! html_entity_decode(substr($place->descrption_ar, 0, 125)) !!} --}} {!! strip_tags(html_entity_decode($place->descrption_ar ?? '')) !!}

    @lang('site.address')

    {!! strip_tags(html_entity_decode($place->address ?? '')) !!} {{ $place->city->name ?? '' }} {{ $place->country->name ?? '' }}

    @if (!empty($place->phone_one))

    @lang('site.phone')

    {{ $place->phone_one ?? '' }}

    @endif @if (!empty($place->const_from) && !empty($place->const_to))

    @lang('site.dealine')

    {{ \Carbon\Carbon::parse($place->const_from)->format('h:i A') }} @lang('site.const_to') {{ \Carbon\Carbon::parse($place->const_to)->format('h:i A') }}

    @endif @if (!empty($place->twitter) || !empty($place->instagram) || !empty($place->facebook))

    @lang('site.social_media')

    @if (!empty($place->twitter)) @endif @if (!empty($place->instagram)) @endif @if (!empty($place->facebook)) @endif

    @endif
    @if ($flag->go_or_not == 'go_to') @endif
  • ({{ round($place->placeReview2()) }})
    @lang('site.reviews') {{ $place->placeCommentsAll->count() ?? 0 }}
    @if (round($place->placeReview2()) == 5)

    @lang('site.excellent')

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

    @elseif(round($place->placeReview2()) == 4)

    @lang('site.excellent2')

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

    @elseif(round($place->placeReview2()) == 3)

    @lang('site.excellent3')

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

    @elseif(round($place->placeReview2()) == 2)

    @lang('site.excellent4')

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

    @elseif(round($place->placeReview2()) == 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 ($place->PlaceReviews as $rev) @if (!empty($rev->reviewElement))
    {{ $rev->reviewElement->name ?? '' }}
    {{--
    {{round($aquar->aqarReviews->avg('rate')) ?? 0}}
    --}}

    Warning: Undefined variable $place in /home/saeeh/public_html/resources/views/frontend/detailplace.blade.php on line 421

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