{{-- resources/views/employees/show.blade.php --}} @extends('layouts.app') @section('content')
{{ $employee->position->name ?? __('employees.show.profile.position_placeholder') }}
{{ $employee->department->name ?? __('employees.show.profile.department_placeholder') }}
{{ $employee->birth_date ? $employee->birth_date->format('Y-m-d') : __('employees.table.not_specified') }}
{{ $employee->age ? $employee->age . ' ' . __('employees.show.personal.age_unit') : __('employees.table.not_specified') }}
{{ $employee->national_id ?? __('employees.table.not_specified') }}
{{ $employee->qualification ?? __('employees.table.not_specified') }}
{{ $employee->address ?? __('employees.table.not_specified') }}
@php $statusLabel = __('employees.show.personal.status_labels.' . ($employee->status ?? 'unknown')); $statusClass = match ($employee->status) { 'active' => 'bg-success', 'inactive' => 'bg-secondary', 'pending' => 'bg-warning', default => 'bg-dark', }; @endphp {{ $statusLabel }}
| {{ __('employees.show.salary.name') }} | {{ __('employees.show.salary.value') }} |
|---|---|
| {{ $comp['name'] }} | {{ number_format($comp['value'], 2) }} |
{{ __('employees.show.salary.no_components') }}
@endif{{ __('employees.show.leave_accrual.accrual_disabled_message') ?? 'هذا الموظف لا يراكم الإجازات الشهرية والسنوية. يجب تفعيل خاصية التراكم من بيانات الموظف.' }}
| {{ __('employees.show.leave_accrual.labels.monthly') }} | {{ __('employees.show.leave_accrual.labels.annual') }} | |||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| {{ __('employees.show.leave_accrual.columns.year') }} | {{ __('employees.show.leave_accrual.columns.month') }} | {{ __('employees.show.leave_accrual.columns.granted') }} (شهري) | {{ __('employees.show.leave_accrual.columns.used') }} (شهري) | {{ __('employees.show.leave_accrual.columns.balance_before') }} (شهري) | {{ __('employees.show.leave_accrual.columns.balance_after') }} (شهري) | {{ __('employees.show.leave_accrual.columns.excess') }} (شهري) | {{ __('employees.show.leave_accrual.columns.amount', ['currency' => get_currency_code()]) }} (شهري) | الإجمالي {{ get_currency_code() }} |
{{ __('employees.show.leave_accrual.columns.used') }} (سنوي) | {{ __('employees.show.leave_accrual.columns.balance_before') }} (سنوي) | {{ __('employees.show.leave_accrual.columns.balance_after') }} (سنوي) | {{ __('employees.show.leave_accrual.columns.excess') }} (سنوي) | {{ __('employees.show.leave_accrual.columns.amount', ['currency' => get_currency_code()]) }} (سنوي) | {{ __('employees.show.leave_accrual.columns.annual_entitlement') }} |
| {{ $detail['year'] }} | {{ $detail['month_name'] ?? \Carbon\Carbon::create()->month($detail['month'])->translatedFormat('F') }} | {{ number_format($detail['granted_monthly'] ?? 0, 2) }} | {{ number_format($detail['used_monthly'] ?? 0, 2) }} | {{ number_format($detail['balance_before_monthly'] ?? 0, 2) }} | {{ number_format($detail['balance_after_monthly'] ?? 0, 2) }} | {{ number_format($detail['excess_monthly'] ?? 0, 2) }} | {{ format_currency($detail['deduction_amount_monthly'] ?? 0) }} | {{ format_currency($detail['leave_deduction_amount'] ?? 0) }} | {{ number_format($detail['used_annual'] ?? 0, 2) }} | {{ number_format($detail['balance_before_annual'] ?? 0, 2) }} | {{ number_format($detail['balance_after_annual'] ?? 0, 2) }} | {{ number_format($detail['excess_annual'] ?? 0, 2) }} | {{ format_currency($detail['deduction_amount_annual'] ?? 0) }} | {{ number_format($employee->annual_entitlement ?? ($employee->monthly_leave_days_allowed * 12), 2) }} |
إجمالي خصومات الإجازات الشهرية:
{{ format_currency($currentYearMonthlyDeductions) }}
إجمالي خصومات الإجازات السنوية:
{{ format_currency($currentYearAnnualDeductions) }}
إجمالي الخصومات (شهري + سنوي):
{{ format_currency($totalCurrentYearDeductions) }}
لم يتم العثور على بيانات تراكمية للإجازات. تأكد من أن الموظف لديه فترة عمل كافية وأن التراكم مُفعّل.
| الشهر والسنة | تاريخ الدفع | عرض الراتب |
|---|---|---|
| {{ \Carbon\Carbon::create()->month($payroll->month)->translatedFormat('F') }} {{ $payroll->year }} | {{ $payroll->paid_at ? $payroll->paid_at->format('Y-m-d H:i') : __('employees.show.paid_salaries.not_paid') }} | عرض الراتب |
| {{ __('employees.show.paid_salaries.no_records') }} | ||