@extends('layouts.app') @section('title', 'الخدمة الذاتية للموظف') @push('styles') @endpush @section('content') {{-- Welcome Card --}}
@if($employee->photo) @else @endif

مرحباً، {{ $employee->name }}

{{ $employee->position ?? $employee->job_title ?? 'موظف' }} - {{ $employee->department->name ?? $employee->department_name ?? '' }}

{{-- Dashboard Stats --}}

رصيد الإجازات

{{ $leaveStats['balance'] ?? 0 }} يوم

الحضور هذا الشهر

{{ $attendanceStats['present_days'] ?? 0 }} / {{ $attendanceStats['working_days'] ?? 0 }}

آخر راتب

{{ number_format($recentPayslips->first()->net_salary ?? 0) }}
{{-- Quick Actions --}}
طلب إجازة تعديل بيانات طلب شهادة
{{-- Recent Payslips --}}

آخر الرواتب

@forelse($recentPayslips as $payslip)
{{ $payslip->month ?? $payslip->period ?? '-' }}
{{ number_format($payslip->net_salary ?? 0) }} ر.س
@empty

لا توجد كشوف رواتب

@endforelse
{{-- Profile Section --}}

بياناتي

تعديل
{{ $employee->employee_number ?? $employee->id }}
{{ $employee->email ?? '-' }}
{{ $employee->phone ?? '-' }}
{{ $employee->hire_date ?? $employee->joining_date ?? '-' }}
{{-- Leave Request Modal --}}
{{-- Data Change Request Modal --}}
{{-- Certificate Request Modal --}}
@endsection @push('scripts') @endpush