@extends('layouts.app') @section('content')

Notification Details

Complete information about this notification

@if(!$notification->is_read) Unread @else Read @endif
@php $iconMap = [ 'loan_application' => ['icon' => 'bx-credit-card', 'color' => 'success', 'bg' => '#dcfce7'], 'payment' => ['icon' => 'bx-money', 'color' => 'info', 'bg' => '#dbeafe'], 'membership' => ['icon' => 'bx-user-plus', 'color' => 'primary', 'bg' => '#e0e7ff'], 'withdrawal' => ['icon' => 'bx-log-out', 'color' => 'danger', 'bg' => '#fee2e2'], ]; $enquiryType = $notification->enquiry->type ?? 'default'; $icon = $iconMap[$enquiryType] ?? ['icon' => 'bx-bell', 'color' => 'primary', 'bg' => '#e0e7ff']; @endphp

{{ $notification->title }}

@php $typeColors = [ 'enquiry_registered' => 'info', 'enquiry_assigned' => 'primary', 'status_changed' => 'warning', 'payment_initiated' => 'info', 'payment_approved' => 'success', 'payment_rejected' => 'danger', 'payment_paid' => 'success', 'loan_processed' => 'info', 'loan_approved' => 'success', 'loan_rejected' => 'danger', ]; $color = $typeColors[$notification->type] ?? 'secondary'; @endphp {{ ucwords(str_replace('_', ' ', $notification->type)) }} {{ $notification->created_at->format('d M Y, H:i') }} ({{ $notification->created_at->diffForHumans() }})
Message

{{ $notification->message }}

@if($notification->meta_data) @endif
@if($notification->enquiry) @if($notification->enquiry->payment) @endif @if($notification->enquiry->loanApplication) @endif @endif
@push('styles') @endpush @push('scripts') @endpush @endsection