العودة

تقرير الشعبة

{{ $section->name }}

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

@if($section->department && $section->department->organization)
{{ $section->department->organization->name }}

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

@endif

{{ $items->count() }}

عدد الأصناف

{{ $totalItemsQuantity }}

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

{{ $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->unit ? $item->unit->name : '-' }} {{ $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 ?? '-' }} {{ $device->unit ? $device->unit->name : '-' }} @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') }}