|
@if($depth > 0)@endif
{{ $part->part_name }}
@if($part->is_consumable)مصرفی@endif
@if($part->is_critical)بحرانی@endif
|
{{ $part->part_code ?? '—' }} |
{{ $part_types[$part->part_type] ?? $part->part_type ?? '—' }} |
{{ $part->quantity ?? '—' }} {{ $part->unit ?? '' }} |
@if($part->warranty_status && $part->warranty_status !== 'none')
{{ $warranty_statuses[$part->warranty_status] ?? $part->warranty_status }}
@if($part->warranty_expires_at)
{{ $util->formatDate($part->warranty_expires_at) }}
@endif
@else
—
@endif
|
{{ $part->health_percentage !== null ? number_format((float) $part->health_percentage, 1).'%' : '—' }} |
@can('maintenance.equipment.update')
@endcan
|
@if(!empty($node['children']))
@include('maintenance::equipment_parts._tree', [
'nodes' => $node['children'],
'depth' => $depth + 1,
'equipment' => $equipment,
'util' => $util,
'part_types' => $part_types,
'warranty_statuses' => $warranty_statuses,
])
@endif
@endforeach