@extends('layouts.app') @section('title', 'Notification') @section('page-specific-style') @endsection @section('content')

Notifications

{{-- Add a select option for type --}}
@forelse ($notifications as $item) @php $type = class_basename($item->type); @endphp @empty @endforelse
Type Message Read at
@if ($type == 'LeadAccessNotification') {{-- Lead View --}} Lead View @elseif ($type == 'UserUpdateNotification') {{-- User Role Updated --}} User Role Updated @elseif ($type == 'NewUserCreatedNotification') {{-- User Added --}} User Added @endif {!! $item->data['message'] !!} {{ $item->read_at }}
@endsection @section('page-specific-script') @endsection