@section('title', 'معايرات المسدس - FuelPlus') @section('page-title', 'معايرات المسدس') @section('page-description', 'سجل جميع معايرات المسدس')

{{ $nozzle->name ?? 'مسدس ' . $nozzle->id }}

{{ $nozzle->pump->name ?? 'مضخة ' . $nozzle->pump->id }} - {{ $nozzle->tank->fuelType->name ?? 'وقود' }}

@if($nozzle->hasOpenCalibration) معايرة مفتوحة @else معايرة جديدة @endif

سجل المعايرات

@if($calibrations->count() > 0)
@foreach($calibrations as $calibration) @if($calibration->notes) @endif @endforeach
تاريخ البداية تاريخ الانتهاء الكمية (لتر) الوردية القائم بالمعايرة الحالة الإجراءات
{{ $calibration->started_at->format('Y-m-d H:i') }}
{{ $calibration->started_at->diffForHumans() }}
@if($calibration->completed_at) {{ $calibration->completed_at->format('Y-m-d H:i') }}
{{ $calibration->completed_at->diffForHumans() }}
@else - @endif
{{ number_format($calibration->calibrated_volume, 1) }} @if($calibration->shift_id) وردية #{{ $calibration->shift_id }} @else بدون وردية @endif {{ $calibration->performedBy->name }} @php $statusConfig = match($calibration->status) { 'open' => ['text' => 'مفتوحة', 'class' => 'bg-red-100 text-red-800'], 'completed' => ['text' => 'مكتملة', 'class' => 'bg-green-100 text-green-800'], 'completed_with_report' => ['text' => 'مكتملة مع بلاغ', 'class' => 'bg-blue-100 text-blue-800'], default => ['text' => 'غير معروف', 'class' => 'bg-gray-100 text-gray-800'] }; @endphp {{ $statusConfig['text'] }}
@if($calibration->status === 'open') @endif @if($calibration->maintenanceRequest) @endif
ملاحظات: {{ $calibration->notes }}
@if($calibrations->hasPages())
{{ $calibrations->links() }}
@endif @else

لا توجد معايرات

لم يتم إجراء أي معايرات لهذا المسدس حتى الآن.

@endif
@push('scripts') @endpush