@extends('layouts.app') @section('title', 'قسيمة راتب') @section('page_title', 'قسيمة راتب: ' . $slip->employee->name) @section('content')
{{-- Actions --}}
العودة للمسير طباعة القسيمة
{{-- Slip Card --}}
{{-- Header --}}

قسيمة راتب

{{ $slip->payrollPeriod->period_name }}

{{ $slip->payrollPeriod->period_start->format('d/m/Y') }} — {{ $slip->payrollPeriod->period_end->format('d/m/Y') }}

{{ mb_substr($slip->employee->name, 0, 2) }}
{{-- Employee Details --}}

الاسم

{{ $slip->employee->name }}

رقم الموظف

{{ $slip->employee->employee_number }}

القسم

{{ $slip->employee->department?->name ?? '—' }}

المسمى الوظيفي

{{ $slip->employee->jobTitle?->name ?? '—' }}

{{-- Earnings --}}

المستحقات

الراتب الأساسي {{ number_format($slip->basic_salary, 2) }}
@if($slip->housing_allowance > 0)
بدل السكن {{ number_format($slip->housing_allowance, 2) }}
@endif @if($slip->transport_allowance > 0)
بدل المواصلات {{ number_format($slip->transport_allowance, 2) }}
@endif @if($slip->meal_allowance > 0)
بدل الوجبات {{ number_format($slip->meal_allowance, 2) }}
@endif @if($slip->other_allowances > 0)
بدلات أخرى {{ number_format($slip->other_allowances, 2) }}
@endif @if($slip->overtime_pay > 0)
أجر إضافي ({{ $slip->overtime_hours }} س.) {{ number_format($slip->overtime_pay, 2) }}
@endif @if($slip->bonus > 0)
مكافأة {{ number_format($slip->bonus, 2) }}
@endif
إجمالي المستحقات {{ number_format($slip->gross_salary, 2) }}
{{-- Deductions --}}

الخصومات

@if($slip->absence_deduction > 0)
خصم الغياب ({{ $slip->absent_days }} أيام) {{ number_format($slip->absence_deduction, 2) }}
@endif @if($slip->late_deduction > 0)
خصم التأخير ({{ $slip->late_hours }} ساعة) {{ number_format($slip->late_deduction, 2) }}
@endif @if($slip->loan_deduction > 0)
قسط قرض/سلفة {{ number_format($slip->loan_deduction, 2) }}
@endif @if($slip->social_insurance > 0)
تأمين اجتماعي {{ number_format($slip->social_insurance, 2) }}
@endif @if($slip->health_insurance > 0)
تأمين صحي {{ number_format($slip->health_insurance, 2) }}
@endif @if($slip->tax_deduction > 0)
ضريبة الدخل {{ number_format($slip->tax_deduction, 2) }}
@endif @if($slip->penalty_deduction > 0)
جزاءات {{ number_format($slip->penalty_deduction, 2) }}
@endif
إجمالي الخصومات {{ number_format($slip->total_deductions, 2) }}
{{-- Net Salary Banner --}}

صافي الراتب المستحق

{{ number_format($slip->net_salary, 2) }}

@if($slip->payment_status === 'paid') تم الصرف @else في الانتظار @endif
{{-- Attendance Summary --}}

{{ $slip->working_days }}

أيام العمل

{{ $slip->present_days }}

أيام الحضور

{{ $slip->absent_days }}

أيام الغياب

{{ $slip->overtime_hours }}

ساعات إضافية

@endsection