@extends('layouts.app') @section('title', 'طلب تصحيح ' . $correction->request_number . ' - DOTS HR Pro') @section('content') @if(session('success'))
{{ session('success') }}
@endif @if(session('error'))
{{ session('error') }}
@endif {{-- Request Details --}}

بيانات الطلب

{{ $correction->request_number }}
@if($correction->employee) {{ $correction->employee->full_name }}
{{ $correction->employee->employee_code }} @else — @endif
{{ $correction->date->format('Y/m/d') }} ({{ $correction->date->translatedFormat('l') }})
{{ $correction->type_label }}
@php $statusClass = match($correction->status) { 'pending' => 'status-pending', 'approved' => 'status-active', 'rejected' => 'status-expired', default => '', }; @endphp {{ $correction->status_label }}
{{ $correction->created_at->format('Y/m/d H:i') }}
@if($correction->approver)
{{ $correction->approver->name }}
{{ $correction->approved_at?->format('Y/m/d H:i') }}
@endif
{{-- Time Comparison Card --}}

مقارنة الأوقات

{{-- Original Times --}}
الأصلي
@if($correction->correction_type === 'missing_record')
لا يوجد سجل
@else
وقت الحضور
{{ $correction->original_check_in ?? '—' }}
وقت الانصراف
{{ $correction->original_check_out ?? '—' }}
@endif
{{-- Arrow --}}
{{-- Corrected Times --}}
المصحح
وقت الحضور
{{ $correction->corrected_check_in ?? ($correction->original_check_in ?? '—') }}
وقت الانصراف
{{ $correction->corrected_check_out ?? ($correction->original_check_out ?? '—') }}
{{-- Reason Card --}}

سبب التصحيح

{{ $correction->reason }}

{{-- Rejection Reason (if rejected) --}} @if($correction->status === 'rejected' && $correction->rejection_reason)

سبب الرفض

{{ $correction->rejection_reason }}

@endif {{-- Action Buttons (if pending) --}} @if($correction->status === 'pending')
{{-- Approve --}}

اعتماد الطلب

سيتم تحديث سجل الحضور تلقائياً

@csrf
{{-- Reject --}}

رفض الطلب

@csrf
@endif @endsection