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

@lang('site.Customer reviews')

@foreach($place->placeCommentsAll as $comment)
{{-- @if(!empty($comment->user->image)) @else @endif --}}

{{$comment->user->firstname ?? ''}} {{$comment->user->lastname ?? ''}}
{{-- @if(!empty($comment->user->country->flag_image)) flag-icon @else flag-icon @endif --}}

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

{{ $comment->rating ?? 0 }}
{{--
@if(!empty(auth()->user()))
{{ round(\App\Models\PlaceReview::where('user_id', '=', $user->id)->where('place_id', '=',$place->id)->avg('rate')) ?? 0 }}
@else {{ round(\App\Models\PlaceReview::where('user_id', '=',$comment->user->id)->where('place_id', '=',$place->id)->avg('rate')) ?? 0 }} @endif
--}}
@endforeach
@endsection