@extends('layouts.provider') @section('title', 'Notifications') @section('page-title', 'Notifications') @section('content')
@if(can_access_module('notifications', 'view'))

Toutes les notifications ({{ $notifications->count() }})

@forelse($notifications as $notification)
@if($notification['module'] === 'client') @elseif($notification['module'] === 'calendar') @elseif($notification['module'] === 'billing') @elseif($notification['module'] === 'purchases') @elseif($notification['module'] === 'client_today') @else @endif

{!! preg_replace('/^(\d+)/', '$1', $notification['title']) !!}

{{ app(\App\Services\NotificationService::class)->getModuleLabel($notification['module']) }}

@empty

Aucune notification

@endforelse
@else

Accès refusé

Vous n'avez pas la permission d'accéder à ce module.

@endif
@endsection