@extends('layouts.app') @section('content') {{-- Filter --}}
{{-- Summary --}}
{{ number_format($totalDeductions, 2) }}
إجمالي خصومات الإجازات
{{ count($summary) }}
موظفين عليهم خصومات
{{ collect($summary)->sum(fn($s) => collect($s['details'])->sum('days')) }}
إجمالي أيام الخصم
{{-- Modal: إجمالي خصومات الإجازات --}} {{-- Modal: موظفين عليهم خصومات --}} {{-- Modal: إجمالي أيام الخصم --}} {{-- Details Table --}}

تفاصيل الخصومات

@if (count($summary) === 0)

لا توجد خصومات إجازات

لا يوجد موظفين لديهم إجازات بدون أجر أو جزئية في هذا الشهر

@else
@foreach ($summary as $emp) @foreach ($emp['details'] as $idx => $detail) @if ($idx === 0) @endif @endforeach @endforeach
الموظف القسم نوع الإجازة الفترة عدد الأيام نوع الأجر الأجر اليومي مبلغ الخصم
{{ $emp['employee_name'] }} {{ $emp['department'] }} {{ $detail['leave_type'] }} {{ $detail['start_date'] }} → {{ $detail['end_date'] }} {{ $detail['days'] }} يوم @if ($detail['pay_type'] === 'unpaid') بدون أجر @else {{ $detail['pay_percentage'] }}% @endif {{ number_format($detail['daily_rate'], 2) }} -{{ number_format($detail['deduction'], 2) }}
إجمالي خصومات {{ $emp['employee_name'] }} -{{ number_format($emp['total_deduction'], 2) }}
الإجمالي الكلي -{{ number_format($totalDeductions, 2) }}
@endif
@endsection