@extends('layouts.app') @section('title', __('system.restaurants.view.menu')) @push('page_css') @if ($restaurant->cover_image_url != null) @endif @endpush @section('content')
@if ($restaurant->logo_url != null)
@else

{{ $restaurant->logo_name }}

@endif
{{ $restaurant->name }}

{{ $restaurant->type }}

{{ Form::open(['route' => ['restaurant.default.restaurant', ['restaurant' => $restaurant->id]], 'method' => 'put', 'autocomplete' => 'off']) }} {{ __('system.crud.back') }} {{ Form::close() }}
@if (auth()->user()->user_type == App\Models\User::USER_TYPE_ADMIN) {{ Form::open(['route' => ['restaurant.restaurants.destroy', ['restaurant' => $restaurant->id]], 'class' => 'data-confirm', 'data-confirm-message' => __('system.restaurants.are_you_sure', ['name' => $restaurant->name]), 'data-confirm-title' => __('system.crud.delete'), 'id' => 'delete-form_' . $restaurant->id, 'method' => 'delete', 'autocomplete' => 'off']) }} {{ Form::close() }} @endif
{{ __('system.fields.about') }}
{{ __('system.fields.contact_details') }}:
{{ __('system.fields.restaurant_name') }}
{{ $restaurant->name }}
{{ __('system.fields.restaurant_type') }}
{{ $restaurant->type }}
{{ __('system.fields.phone_number') }}
{{ $restaurant->phone_number ?? '-' }}
{{ __('system.fields.email') }}
{{ $restaurant->contact_email ?? '-' }}
{{ __('system.fields.address_details') }}:
{{ __('system.fields.city') }}
{{ $restaurant->city ?? '-' }}
{{ __('system.fields.state') }}
{{ $restaurant->state ?? '-' }}
{{ __('system.fields.country') }}
{{ $restaurant->country ?? '-' }}
{{ __('system.fields.address') }}
{{ $restaurant->address ?? '-' }}
{{ __('system.fields.created_by') }}:
{{ __('system.fields.name') }}
{{ $restaurant->created_user->name }}
{{ __('system.fields.email') }}
{{ $restaurant->created_user->email ?? '-' }}
{{ __('system.fields.phone_number') }}
{{ $restaurant->created_user->phone_number ?? '-' }}
{{ __('system.fields.date_time') }}
{{ $restaurant->created_at }}
{{ __('system.fields.staffs') }}
@if ($restaurant->users) @foreach ($restaurant->users as $user) @if ($restaurant->id == auth()->user()->restaurant_id || auth()->user()->user_type == App\Models\User::USER_TYPE_ADMIN) @endif @endforeach @endif
@if ($user->profile_url != null) @else
{{ $user->logo_name }}
@endif
{{ $user->name }}
{{ $user->email }}
{{ $user->phone_number }} user()->id == $user->id) href="{{ route('restaurant.profile') }}" @else href="{{ route('restaurant.users.edit', $user->id) }}" @endif class="btn btn-success">{{ __('system.crud.edit') }}
@endsection