@extends('layouts.squelette') @section('css_header') @endsection @section('titre') {{ __("Notifications") }} @endsection @section('titre_header') {{ __("Notifications") }} @endsection @section('titre_page') {{ __("Liste") }} @endsection @section('contenu')
Notifications non lues
@if (auth()->user()->unreadNotifications->where('type','!=','App\Notifications\\AddIntMessage')->count()) {{auth()->user()->unreadNotifications->where('type','!=','App\Notifications\\AddIntMessage')->count()}} @endif Marquer comme lues
@foreach ($nonLues as $item) @endforeach
{{ __("Quand") }} {{ __("Type") }} {{ __("Description") }} {{ __("Action") }}
{{$item->created_at->diffForHumans()}} @switch($item->data['type']) @case('create_user') Création nouvel utilisateur @break @case('add_proQuo_presta') Ajout d'un devis par un prestataire @break @case('int_planification_presta') Planification d'une intervention par un prestataire @break @case('int_realisation_presta') Validation réalisation d'une intervention par le prestataire @break @case('add_int_site') Nouvelle demande d'intervention site @break @endswitch {!! $item->data['desc'] !!} Voir
Notifications lues
@if (auth()->user()->readNotifications->where('type','!=','App\Notifications\\AddIntMessage')->count()) {{auth()->user()->readNotifications->where('type','!=','App\Notifications\\AddIntMessage')->count()}} @endif @if (!auth()->user()->unreadNotifications->where('type','!=','App\Notifications\\AddIntMessage')->count()) Vider @endif
@foreach ($lues as $item) @endforeach
{{ __("Quand") }} {{ __("Type") }} {{ __("Description") }} {{ __("Action") }}
{{$item->created_at->diffForHumans()}} @switch($item->data['type']) @case('create_user') Création nouvel utilisateur @break @case('add_proQuo_presta') Ajout d'un devis par un prestataire @break @case('int_planification_presta') Planification d'une intervention par un prestataire @break @case('int_realisation_presta') Validation réalisation d'une intervention par le prestataire @break @case('add_int_site') Nouvelle demande d'intervention site @break @endswitch {!! $item->data['desc'] !!} Voir
@endsection @section('js_footer') @endsection