@extends('layouts.app') @section('title', 'المكافآت والخصومات - DOTS HR Pro') @section('content') @push('styles') @endpush
{{ $stats->pending_count ?? 0 }}
بانتظار الموافقة
{{ $stats->active_bonuses ?? 0 }}
مكافآت فعالة
{{ $stats->active_deductions ?? 0 }}
خصومات فعالة
{{ number_format(($stats->total_bonuses ?? 0) - ($stats->total_deductions ?? 0), 2) }}
صافي التأثير ({{ $currency }})

تصفية

@forelse($adjustments as $adj) @empty @endforelse
# الموظف النوع التصنيف طريقة الحساب القيمة المدة الحالة الإجراءات
{{ $adj->id }} {{ $adj->first_name }} {{ $adj->last_name }}
{{ $adj->employee_code ?? '-' }}
@if($adj->type === 'bonus') مكافأة @else خصم @endif {{ $adj->category ?? '—' }} @if($adj->calc_method === 'fixed') مبلغ ثابت @elseif($adj->calc_method === 'percentage') نسبة @else أيام @endif @if($adj->calc_method === 'fixed') {{ number_format($adj->amount, 2) }} {{ $currency }} @elseif($adj->calc_method === 'percentage') {{ $adj->percentage }}%
≈ {{ number_format($adj->basic_salary * $adj->percentage / 100, 2) }} {{ $currency }} @else {{ $adj->days }} يوم
≈ {{ number_format(($adj->basic_salary / 30) * $adj->days, 2) }} {{ $currency }} @endif
@if($adj->duration === 'permanent') دائم @else مؤقت @if($adj->start_month || $adj->end_month)
{{ $adj->start_month ?? '?' }} → {{ $adj->end_month ?? 'مفتوح' }} @endif @endif
@if($adj->status === 'pending') بانتظار @elseif($adj->status === 'approved') معتمد @else مرفوض @endif
@if($adj->status === 'pending')
@csrf
@csrf
@endif
@csrf @method('DELETE')

لا توجد مكافآت أو خصومات مسجلة

@if($adjustments->hasPages())
{{ $adjustments->appends(request()->query())->links() }}
@endif
{{-- Add Modal --}}

إضافة مكافأة / خصم

@csrf {{-- Type Selection --}}
مكافأة
خصم
{{-- Employee --}}
{{-- Category --}}
{{-- Calc Method --}}
مبلغ ثابت
نسبة من الراتب
عدد أيام
{{-- Amount Fields --}}
{{-- Duration --}}
دائم
مؤقت
{{-- Month Range --}}
{{-- Description --}}
@push('scripts') @endpush @endsection