@include('shared.ratings', ['rating' => $resto_total_ratings_votes])

@lang('home.title_comments_rating')

    {{-- @if(count($branch_votes) > 0) @foreach($branch_votes as $branch_vote) @include('shared.template9.item-home-comment', [ 'username' => $branch_vote->user->name ?? '', 'user_photo' => $branch_vote->user->avatar ?? asset('img').'/user.png', 'votes' => $branch_vote->votes, 'date' => $branch_vote->times->format('d/m/Y'), 'comment_text' => $branch_vote->comment ]) @endforeach @endif --}} @if(isset($google_reviews) && count($google_reviews) > 0) @foreach($google_reviews as $review) @include('shared.template9.item-home-comment', [ 'username' => $review->author_name, 'user_photo' => $review->profile_photo_url, 'votes' => $review->rating, 'date' => $review->time->format('d/m/Y'), 'comment_text' => $review->text, 'is_google' => true ]) @endforeach @elseif(count($branch_votes) > 0) @foreach($branch_votes as $branch_vote) @include('shared.template9.item-home-comment', [ 'username' => $branch_vote->name ?? '',// $branch_vote->user->name ?? '', // 'user_photo' => $branch_vote->user->avatar ?? asset('img').'/user.png', 'user_photo' => asset('img').'/user.png', 'votes' => $branch_vote->votes, 'date' => $branch_vote->times->format('d/m/Y'), 'comment_text' => $branch_vote->comment ]) @endforeach @endif
@lang('trans.all_reviews')