@extends('layouts.app') @php $locale = app()->getLocale(); $isRtl = $locale === 'ar'; $currency = \App\Models\Setting::currencyLabel($locale); @endphp @section('title', ($isRtl ? 'تفاصيل المعدة' : 'Equipment Details') . ' - ' . $equipment->name) @section('content')
{{ $equipment->brand ?? '—' }} {{ $equipment->model ? '• ' . $equipment->model : '' }}
@if($equipment->serial_number){{ $equipment->serial_number }}
@endif{{ $isRtl ? 'الوصف' : 'Description' }}
{{ $equipment->description }}
{{ $isRtl ? 'الموقع' : 'Location' }}
{{ $equipment->location ?? '—' }}
{{ $isRtl ? 'تاريخ الشراء' : 'Purchase Date' }}
{{ $equipment->purchase_date?->format('Y-m-d') ?? '—' }}
{{ $isRtl ? 'سعر الشراء' : 'Purchase Price' }}
{{ $equipment->purchase_price !== null ? number_format((float)$equipment->purchase_price, 2) . ' ' . $currency : '—' }}
{{ $isRtl ? 'انتهاء الضمان' : 'Warranty Expiry' }}
{{ $equipment->warranty_expiry?->format('Y-m-d') ?? '—' }}
{{ $isRtl ? 'آخر صيانة' : 'Last Maintenance' }}
{{ $equipment->last_maintenance?->format('Y-m-d') ?? '—' }}
{{ $isRtl ? 'الصيانة القادمة' : 'Next Maintenance' }}
{{ $equipment->next_maintenance?->format('Y-m-d') ?? '—' }}
{{ $isRtl ? 'ملاحظات' : 'Notes' }}
{{ $equipment->notes }}