@extends('layouts.app') @section('content')
للموظف {{ $deduction->employee->name }}
| نوع الاستقطاع: | @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') }} |
{{ $deduction->employee->position?->name ?? 'غير محدد' }}
{{ $deduction->employee->department?->name ?? 'غير محدد' }}
الراتب الشهري
الاستقطاعات النشطة
| المبلغ الشهري: | @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 |