@extends('portal.layouts.app') @section('content')
{{ trans('portal.dashboard.employee_code') }}
{{ auth('employee')->user()->code }}
{{ trans('portal.dashboard.branch') }}
{{ auth('employee')->user()->branch?->name ?? trans('portal.common.not_available') }}
{{ trans('portal.dashboard.employment_status') }}
{{ auth('employee')->user()->employment_status ?? trans('portal.common.not_available') }}
@if ($unreadCount > 0)
{{ trans('portal.dashboard.unread_notifications') }}
{{ $unreadCount }}
@endif
{{-- Pending Requests Alert --}} @if ($pendingRequests->isNotEmpty())

{{ trans('portal.dashboard.pending_requests_title') }}

@foreach ($pendingRequests->take(3) as $approval)
{{ ucfirst(str_replace('_', ' ', $approval->request_type)) }}
{{ $approval->submitted_at?->format('Y-m-d') }}
{{ trans('portal.requests.statuses.pending') }}
@endforeach
{{ trans('portal.dashboard.view_requests') }} {{ trans('portal.dashboard.view_notifications') }}
@endif {{-- Recent Notifications --}} @if ($recentNotifications->isNotEmpty())

{{ trans('portal.dashboard.recent_notifications') }}

@foreach ($recentNotifications as $notification) @php $n = $notificationService->formatNotification($notification) @endphp
@if (!$n['is_read']) @endif {{ $n['title'] }}
{{ $n['created_at_human'] }}
@endforeach
{{ trans('portal.dashboard.view_all_notifications') }}
@endif

{{ trans('portal.dashboard.quick_access') }}

{{ trans('portal.dashboard.quick_access_description') }}

{{ trans('portal.dashboard.read_only_title') }}

{{ trans('portal.dashboard.read_only_description') }}

@endsection