@extends('layouts.app') @section('content')

تفاصيل الاستقطاع

استقطاع #{{ $deduction->id }}

للموظف {{ $deduction->employee->name }}

@if($deduction->is_active) نشط @else غير نشط @endif
معلومات الاستقطاع
نوع الاستقطاع: @switch($deduction->deduction_type) @case('tax') ضريبة @break @case('insurance') تأمين @break @case('loan') قرض @break @case('fine') غرامة @break @case('other') أخرى @break @default {{ $deduction->deduction_type }} @endswitch
المبلغ: {{ number_format($deduction->amount, 2) }} د.ك
التكرار: @switch($deduction->frequency) @case('monthly') شهري @break @case('annual') سنوي @break @case('one_time') مرة واحدة @break @endswitch
تفاصيل الوقت
تاريخ البدء: {{ $deduction->start_date->format('Y-m-d') }}
تاريخ الانتهاء: {{ $deduction->end_date ? $deduction->end_date->format('Y-m-d') : 'غير محدد' }}
تاريخ الإنشاء: {{ $deduction->created_at->format('Y-m-d H:i') }}
آخر تحديث: {{ $deduction->updated_at->format('Y-m-d H:i') }}
@if($deduction->description)
الوصف
{{ $deduction->description }}
@endif
@can('edit deduction') تعديل @endcan @can('delete deduction')
@csrf @method('DELETE')
@endcan رجوع
@if($deduction->employee->photo) صورة الموظف @else
{{ substr($deduction->employee->name, 0, 1) }}
@endif

{{ $deduction->employee->name }}

{{ $deduction->employee->position?->name ?? 'غير محدد' }}

{{ $deduction->employee->department?->name ?? 'غير محدد' }}


{{ $deduction->employee->salary ?? 0 }}

الراتب الشهري

{{ $deduction->employee->deductions->where('is_active', true)->count() }}

الاستقطاعات النشطة

ملخص الاستقطاع
المبلغ الشهري: @if($deduction->frequency == 'monthly') {{ number_format($deduction->amount, 2) }} د.ك @elseif($deduction->frequency == 'annual') {{ number_format($deduction->amount / 12, 2) }} د.ك @else {{ number_format($deduction->amount, 2) }} د.ك @endif
المبلغ السنوي: @if($deduction->frequency == 'monthly') {{ number_format($deduction->amount * 12, 2) }} د.ك @elseif($deduction->frequency == 'annual') {{ number_format($deduction->amount, 2) }} د.ك @else {{ number_format($deduction->amount, 2) }} د.ك @endif
الحالة: @if($deduction->is_active) نشط @else غير نشط @endif
@endsection