@extends('layouts.app', ['class' => 'g-sidenav-show bg-gray-100']) @section('content') @include('layouts.navbars.auth.topnav', ['title' => '']) @include('components.search')
{{-- Alert --}} @include('components.kanban-alert') {{-- Notifications Section --}}
Notifikasi
{{-- Tombol Mark All as Read --}}
@if ($notifications->count() > 0) @foreach ($notifications as $notification)
{{-- User Avatar --}}
@if ($notification->actor && $notification->actor->image) {{ $notification->actor->firstname ?? 'User' }} @else
{{ $notification->actor && $notification->actor->username === 'msjit' ? 'A' : strtoupper(substr(\App\Helpers\NotificationHelper::getDisplayName($notification->actor), 0, 1)) }}
@endif
{{-- Notification Content --}}
{{ \App\Helpers\NotificationHelper::getDisplayName($notification->actor) }}
{!! \App\Helpers\NotificationHelper::formatDescription($notification->description ?? \App\Helpers\NotificationHelper::getActionText($notification->action) . ' ' . ($notification->card ? $notification->card->title : ($notification->board ? $notification->board->title : '')), $notification->actor) !!}
{{ $notification->created_at->diffForHumans() }}
{{-- Close Button --}} {{-- Unread Indicator --}} @if (!$notification->is_read)
@endif
@endforeach @else
Tidak ada notifikasi

Anda sudah melihat semua notifikasi! Notifikasi baru akan muncul di sini.

@endif
{{-- Pagination --}}
Data {{ $notifications->firstItem() }} - {{ $notifications->lastItem() }} dari {{ $notifications->total() }} data.
{{ $notifications->appends(request()->query())->links('pagination::bootstrap-4') }}
{{-- Notification Detail Modal --}} @endsection @push('css') @endpush @push('js') @endpush