@extends('layouts.app') @section('title', 'التنبيهات - ' . config('app.name')) @section('breadcrumb') الرئيسية التنبيهات @endsection @section('content')

التنبيهات

@if(auth()->user()->unreadNotifications()->count() > 0)
@csrf
@endif
@if(session('success'))
{{ session('success') }}
@endif
@forelse($notifications as $notification) @php $data = $notification->data; @endphp
@php $category = $data['category'] ?? null; @endphp @if($category === 'commissions') @elseif($category === 'contracts') @elseif($category === 'installments') @elseif($category === 'einvoice') @else @endif

{{ $data['title'] ?? 'تنبيه' }}

{{ $notification->created_at->diffForHumans() }}

{{ $data['body'] ?? '' }}

@if(!empty($data['url'])) فتح الشاشة المرتبطة @endif
@empty
لا توجد تنبيهات حالياً.
@endforelse
@if($notifications->hasPages())
{{ $notifications->links() }}
@endif
@endsection