@extends('layouts.app', ['title' => __('Restaurants')]) @section('admin_title') {{__('Restaurants')}} @endsection @section('content') @include('restorants.partials.modals')

{{ __('Restaurants') }}

@if(auth()->user()->hasRole('admin')) {{ __('Add Restaurant') }} @endif {{ __('Export CSV') }} @if(auth()->user()->hasRole('admin') && config('settings.enable_import_csv')) @endif

@include('partials.flash')
@foreach ($restorants as $restorant) @if(auth()->user()->hasRole('manager')) @else @endif @endforeach
{{ __('Name') }} {{ __('Logo') }} {{ __('Owner') }} {{ __('Owner email') }} {{ __('Creation Date') }} {{ __('Active') }}
{{ $restorant->name }}{{ $restorant->name }}icon }} width="50px" height="50px"> {{ $restorant->user?$restorant->user->name:__('Deleted') }} {{ $restorant->user?$restorant->user->email:__('Deleted') }} {{ $restorant->created_at->locale(Config::get('app.locale'))->isoFormat('LLLL') }} @if($restorant->active == 1) {{ __('Active') }} @else {{ __('Not active') }} @endif
@include('layouts.footers.auth')
@endsection