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

{{ __('payroll.create.page_title', ['name' => $employee->name]) }}

{{ __('payroll.create.employee_info') }}

{{ __('payroll.create.employee_id') }}: {{ $employee->employee_id }}

{{ __('payroll.create.department') }}: {{ $employee->department?->name ?? __('payroll.create.not_specified') }}

{{ __('payroll.create.position') }}: {{ $employee->position?->name ?? __('payroll.create.not_specified') }}

{{ __('payroll.create.form_title') }}
{{-- show validation errors and flash messages so the user sees why save may have failed --}} @if(session('success'))
{{ session('success') }}
@endif @if(session('error'))
{{ session('error') }}
@endif @if ($errors->any())
    @foreach ($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif
@csrf {{-- AJAX alerts container --}}
{{-- Paid-off days (attendances on weekly-off/holidays) --}} @isset($paidOffDays)
أيام حضور مدفوعة: {{ $paidOffDays }} @isset($paidOffAmount) — المبلغ: {{ number_format($paidOffAmount, 2) }} {{ $currency_name ?? get_currency_code() }} @endisset
@endisset {{-- حقل قابل للتعديل لإدخال قيمة أيام الحضور المدفوعة يدويًا --}}
{{ $currency_name ?? get_currency_code() }}
أدخل المبلغ الإجمالي لعدد أيام الحضور المدفوعة (اختياري)
@endsection @push('scripts') @endpush