@can('edit restaurants') {{ __('Edit') }} @endcan @can('view restaurant wallet') {{ __('Wallet') }} @endcan
@foreach ($this->orderCounts as $status => $count)
{{ $count }}
{{ str_replace('_', ' ', $status) }}
@endforeach
@can('view restaurant wallet') {{ __('Manage') }} @endcan @forelse ($subscriptions as $subscription) {{ $subscription->from_date?->toDateString() }} → {{ $subscription->to_date?->toDateString() }} {{ $subscription->created_at?->format('d M Y') }} @empty {{ __('Never subscribed. The restaurant cannot trade until it does.') }} @endforelse
@foreach ([ __('Owner') => $restaurant->user?->name, __('Email') => $restaurant->user?->email, __('Phone') => $restaurant->user?->phone, __('Commercial register') => $restaurant->licence, __('Created by') => $restaurant->creator?->name, __('Created') => $restaurant->created_at?->format('d M Y'), ] as $label => $value)
{{ $label }}
{{ $value ?: '—' }}
@endforeach
{{ __('App bundle') }}
{{ $restaurant->bundle_id ?? '—' }}
{{ __('Taking orders') }}
@if ($restaurant->is_open) {{ __('open') }} @else {{ __('closed by the restaurant') }} @endif
{{-- counted, not listed: the restaurant manages these in its own app --}}
@foreach ([ __('Products') => $counts['products'], __('Categories') => $counts['categories'], __('Drivers') => $counts['drivers'], __('Clients') => $counts['clients'], __('Staff') => $counts['staff'], ] as $label => $value)
{{ $label }}
{{ $value }}
@endforeach
@if ($restaurant->cover_image) @endif
{{ $restaurant->name }}
{{ collect([$restaurant->address, $restaurant->commune, $restaurant->willaya])->filter()->join(', ') }}
@if ($restaurant->description)

{{ $restaurant->description }}

@endif