@if (isset($restaurants)) @foreach ($restaurants as $restaurant)
{{ $restaurant->slug }}

{{ Str::limit($restaurant->name, 100) }}

@for ($i = 0; $i < 5; $i++) @if ($i < $restaurant->avgRating($restaurant->id)['avgRating']) @else @endif @endfor ({{ $restaurant->avgRating($restaurant->id)['countUser'] }})
{{ $restaurant->address }}
@if ($restaurant->opening_time < $current_data && $restaurant->closing_time >$current_data)

{{ __('frontend.open_now') }}

@else

{{ __('frontend.close_now') }}

@endif
@endforeach @endif