@extends('layouts.app') @section('title', 'تفاصيل المستند - DOTS HR Pro') @push('styles') @endpush @section('content')
الموظف
{{ $document->employee->full_name ?? '—' }}
نوع المستند
{{ $typeLabels[$document->type] ?? $document->type }}
اسم الملف
{{ $document->file_name }}
تاريخ الانتهاء
@if(!$document->expiry_date) بدون انتهاء @elseif($document->is_expired) منتهية — {{ $document->expiry_date->format('Y/m/d') }} @elseif($document->is_expiring_soon) تنتهي قريباً — {{ $document->expiry_date->format('Y/m/d') }} @else سارية حتى {{ $document->expiry_date->format('Y/m/d') }} @endif
تاريخ الرفع
{{ $document->created_at->format('Y/m/d H:i') }}
رفع بواسطة
{{ $document->uploader->name ?? '—' }}
@if($document->notes)
ملاحظات
{{ $document->notes }}
@endif
{{-- Preview --}}

معاينة

@php $ext = strtolower(pathinfo($document->file_name ?? '', PATHINFO_EXTENSION)); @endphp @if(in_array($ext, ['jpg', 'jpeg', 'png'])) {{ $document->title }} @elseif($ext === 'pdf') @else

لا يمكن معاينة هذا النوع من الملفات

تحميل الملف @endif
@endsection