@forelse ($notifications as $notification) @switch($notification->type) @case('App\Models\User')
a
{{ $notification->title ?? __('app.new_joining_restaurant') }}
{{ $notification->created_at->diffForHumans() }}
{{ $notification->data['message'] ?? 'New notification' }}
{{ __('app.restaurant') }} : {{ $notification->data['restaurant_name'] ?? '-' }}
@break @case('App\Models\Driver')
{{ $notification->title ?? __('app.new_joining_restaurant') }}
{{ $notification->created_at->diffForHumans() }}
{{ $notification->data['message'] ?? 'New notification' }}
{{ __('app.driver') }} : {{ $notification->data['driver_name'] ?? '-' }}
@break @case('App\Models\Restaurant')
Order #{{ $notification->data['order_id'] ?? '-' }}
{{ $notification->created_at->diffForHumans() }}
{{ $notification->data['message'] ?? 'New notification' }}
Client: {{ $notification->data['client'] ?? '-' }} Total: {{ $notification->data['total'] ?? '0.00' }} DA
@break @endswitch @empty
{{ __('app.no_new_notifications') }}
@endforelse