@extends('layouts.app', ['class' => 'g-sidenav-show bg-gray-100']) @section('content') @include('layouts.navbars.auth.topnav', ['title' => ''])
{{-- Alert --}} @include('components.alert') {{-- Notification Detail --}}
Kembali
Detail Notifikasi
@if(!$notification->is_read) @endif
{{-- User Info --}}
@if($notification->actor && $notification->actor->image) {{ \App\Helpers\NotificationHelper::getDisplayName($notification->actor) }} @else
{{ strtoupper(substr(\App\Helpers\NotificationHelper::getDisplayName($notification->actor), 0, 1)) }}
@endif
{{ \App\Helpers\NotificationHelper::getDisplayName($notification->actor) }}

{{ $notification->created_at->format('M d, Y \a\t g:i A') }}

{{-- Action & Description --}}
{{ ucfirst(str_replace('_', ' ', $notification->action)) }}
@if($notification->description)

{{ $notification->description }}

@endif
{{-- Related Board --}} @if($notification->board)
Board: {{ $notification->board->title }}

{{ $notification->board->description ?? 'No description' }}

Lihat Board
@endif {{-- Related Card --}} @if($notification->card)
Card: {{ $notification->card->title }}

{{ $notification->card->description ?? 'No description' }}

@if($notification->board) Lihat Card @endif
@endif {{-- Additional Data --}} @if($notification->data)
Informasi Tambahan
{{ json_encode($notification->data, JSON_PRETTY_PRINT) }}
@endif
@endsection @push('js') @endpush