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

Notifications

@forelse ($notifications as $item) @php $type = class_basename($item->type); @endphp
{{-- --}} {{-- --}} @if ($type == 'LeadAccessNotification') {{-- Lead View --}} @elseif ($type == 'UserUpdateNotification') {{-- User Role Updated --}} @elseif ($type == 'NewUserCreatedNotification') {{-- User Added --}} @endif

@if ($type == 'LeadAccessNotification') Lead View @elseif ($type == 'UserUpdateNotification') User Role Change @elseif ($type == 'NewUserCreatedNotification') User Added @endif

{!! $item->data['message'] !!}
@if($item->read_at) @endif
@empty
@endforelse
@endsection @section('page-specific-script') @endsection