العودة

تقرير الوحدة

{{ $unit->name }}

الرمز: {{ $unit->code }} | التاريخ: {{ now()->format('Y-m-d') }}

@if($unit->organization)
{{ $unit->organization->name }}
@endif @if($unit->department)

القسم: {{ $unit->department->name }}

@endif @if($unit->section)

الشعبة: {{ $unit->section->name }}

@endif

{{ $items->count() }}

عدد الأصناف

{{ $totalItemsQuantity }}

إجمالي الكمية

{{ $totalDevicesCount }}

عدد الأجهزة

{{ $items->count() + $devices->count() }}

إجمالي الأصناف

الأثاث والمواد ({{ $items->count() }})

@if($items->count() > 0)
@foreach($items as $index => $item) @endforeach
# اسم المادة النوع الكمية ملاحظات
{{ $index + 1 }} {{ $item->name }} @if($item->type) {{ $item->type->name }} @else - @endif {{ $item->quantity }} {{ $item->details ? Str::limit($item->details, 50) : '-' }}
@else
لا توجد مواد في هذه الوحدة
@endif

@if($devices->count() > 0)
@foreach($devices as $index => $device) @endforeach
# الرمز اسم الجهاز النوع الرقم التسلسلي الحالة تاريخ الاستلام ملاحظات
{{ $index + 1 }} {{ $device->code }} {{ $device->name }} {{ $device->device_type ?? '-' }} {{ $device->serial_number ?? '-' }} @php $statusLabels = [ 'active' => ['نشط', 'success'], 'inactive' => ['غير نشط', 'secondary'], 'under_maintenance' => ['تحت الصيانة', 'warning'], 'out_of_service' => ['خارج الخدمة', 'danger'], ]; $status = $statusLabels[$device->status] ?? ['غير محدد', 'secondary']; @endphp {{ $status[0] }} {{ $device->received_date ? $device->received_date->format('Y-m-d') : '-' }} {{ $device->notes ? Str::limit($device->notes, 50) : '-' }}
@else
لا توجد أجهزة في هذه الوحدة
@endif @include('reports._signatures')

تم إنشاء التقرير في {{ now()->format('Y-m-d H:i:s') }}