@extends('layouts.app') @section('content')
{{ __('leaves.show.submitted_by') }} {{ $leave->employee?->name ?? __('leaves.unknown_employee') }}
| {{ __('leaves.fields.type') }} | @php $code = $leave->leave_type; $label = $leave->leaveTypeModel->name ?? __('leaves.types.' . $code, [], null) ?? $code; $classes = [ 'annual' => 'bg-primary', 'sick' => 'bg-warning text-dark', 'emergency' => 'bg-danger', 'maternity' => 'bg-pink', 'paternity' => 'bg-info', 'unpaid' => 'bg-secondary', ]; $class = $classes[$code] ?? 'bg-dark'; @endphp {{ $label }} |
|---|---|
| {{ __('leaves.fields.from') }} | {{ $leave->start_date?->format('Y-m-d') ?? __('leaves.not_specified') }} |
| {{ __('leaves.fields.to') }} | {{ $leave->end_date?->format('Y-m-d') ?? __('leaves.not_specified') }} |
| {{ __('leaves.fields.days') }} | {{ $leave->days_count ?? 0 }} {{ __('leaves.days_unit') }} |
| {{ __('leaves.fields.excluded_days') ?? 'أيام مستثناة' }} | {{ $leave->excluded_days_count ?? 0 }} {{ __('leaves.days_unit') }} (عطل أسبوعية/رسمية) |
| {{ __('leaves.fields.deductible_days') ?? 'أيام قابلة للخصم' }} | {{ $leave->deductible_days ?? 0 }} {{ __('leaves.days_unit') }} |
| {{ __('leaves.fields.unpaid_deducted_days') ?? 'أيام مخصومة من الراتب (بدون راتب)' }} | {{ $leave->unpaid_deducted_days ?? 0 }} {{ __('leaves.days_unit') }} |
| {{ __('leaves.fields.requested_at') }} | {{ $leave->created_at?->format('Y-m-d H:i') ?? __('leaves.not_specified') }} |
|---|---|
| {{ __('leaves.fields.updated_at') }} | {{ $leave->updated_at->format('Y-m-d H:i') }} |
| {{ __('leaves.fields.contact') }} | {{ $leave->contact_details ?? __('leaves.not_specified') }} |
هذا الموظف لا يراكم الإجازات الشهرية والسنوية.
| الإجازات الشهرية | الإجازات السنوية | |||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| الشهر | الممنوح (شهري) | المستخدم (شهري) | الرصيد قبل | الرصيد بعد | الزيادة (شهري) | الخصم (شهري) | الإجمالي | ملاحظات | المستخدم (سنوي) | الرصيد قبل | الرصيد بعد | الزيادة (سنوي) | الخصم (سنوي) | الاستحقاق السنوي |
| {{ $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($leave->employee->annual_entitlement ?? ($leave->employee->monthly_leave_days_allowed * 12), 2) }} |
إجمالي خصومات الإجازات الشهرية:
{{ format_currency($currentYearMonthlyDeductions) }}
إجمالي خصومات الإجازات السنوية:
{{ format_currency($currentYearAnnualDeductions) }}
إجمالي الخصومات (شهري + سنوي):
{{ format_currency($totalCurrentYearDeductions) }}
لم يتم العثور على بيانات تراكمية للإجازات في هذه الفترة.