@if (Auth::user()->hasRole('Organizer'))
  • @php $notification = \App\Models\Notification::where([['status', 1],['organizer_id', Auth::user()->id]]) ->orderBy('id', 'DESC') ->get(); @endphp @if (count($notification) == 0) @else @endif
    {{ __('Notifications') }} {{ __('Mark All As Read') }}
    @if (count($notification) == 0)
    {{ __('No notification found') }}
    @else
    @foreach ($notification as $item) @if ($item->user != null) @if ($loop->iteration <= 3)
    {{ $item->message }}
    {{ $item->created_at->diffForHumans() }}
    @endif @endif @endforeach
    {{ __('View All') }}
    @endif
  • @endif {{-- Show Debug Mode ON badge if env app_debug is true --}} @if (env('APP_DEBUG')) @endif