@extends('frontend.layouts.restaurent_app') @push('meta') @endpush @push('body-data') data-bs-spy="scroll" data-bs-target="#scrollspy-menu" data-bs-smooth-scroll="true" @endpush @section('main-content')
restaurant

@if ($restaurant->opening_time < $currenttime && $restaurant->closing_time > $currenttime) @else @endif {{ $restaurant->name }}

@if (!blank($restaurant->cuisines)) @foreach ($restaurant->cuisines as $cuisine) {{ $cuisine->name }} @if (!$loop->last) , @endif @endforeach @endif

@if (!$average_rating == 0)
@for ($i = 0; $i < 5; $i++) @if ($i < $average_rating) @else @endif @endfor ({{ $rating_user_count }} {{ __('frontend.reviews') }})
@endif
{{ \Illuminate\Support\Str::limit($restaurant->address, 65) }}
@if ($restaurant->table_status == \App\Enums\TableStatus::ENABLE) @endif
@if(!empty($vouchers) && is_iterable($vouchers)) @foreach($vouchers as $voucher)
@php $amount = $voucher->discount_type == \App\Enums\DiscountType::FIXED ? currencyName(round($voucher->amount)) : round($voucher->amount) . '%'; @endphp
@endforeach @endif
@livewire('show-page', ['restaurant' => $restaurant])
@include('frontend.partials._footer')
@livewire('show-cart', ['restaurant' => $restaurant]) @endsection @push('js') @endpush @push('livewire') @endpush