@extends('layouts.app') @section('title', 'Notification & Automation Management') @section('content')

Notification & Automation

Kelola notifikasi dan aturan automasi sistem

Automation Rules

@forelse($automationRules as $rule)

{{ $rule['name'] }}

@if($rule['is_active']) Aktif @else Nonaktif @endif

{{ $rule['description'] }}

Trigger: {{ $rule['trigger'] }} Actions: @foreach($rule['actions'] as $action) {{ $action }} @endforeach
@empty
Tidak ada automation rules
@endforelse

Recent Notifications

@forelse($notifications as $notification) @empty @endforelse
Waktu Tipe Penerima Pesan Status
{{ $notification->created_at->format('d/m/Y H:i') }} {{ ucfirst($notification->type ?? 'notification') }} {{ $notification->user->name ?? ($notification->sender->name ?? 'System') }} {{ \Illuminate\Support\Str::limit($notification->message ?? $notification->title ?? '-', 50) }} @if($notification->read_at) Read @else Unread @endif
Tidak ada notifikasi
@if(method_exists($notifications, 'links'))
{{ $notifications->links() }}
@endif
@endsection