@forelse($saleHireEquipments ?? ($saleHire['equipments'] ?? []) as $index => $eq) @php $isImported = is_array($eq) ? ($eq['is_imported'] ?? 'No') : ($eq->is_imported ?? 'No'); $category = is_array($eq) ? ($eq['equipment_category'] ?? '-') : ($eq->equipment_category ?? '-'); if ($category === 'Other') { $category = is_array($eq) ? ($eq['custom_equipment_category'] ?? 'Other') : ($eq->custom_equipment_category ?? 'Other'); } @endphp @empty @endforelse
# Category Model Equipment Name Manufacturer Address Country Imported? Origin Country Port of Import Qty
{{ $loop->iteration }} {{ $category }} {{ is_array($eq) ? ($eq['model'] ?? '-') : ($eq->model ?? '-') }} {{ is_array($eq) ? ($eq['equipment_name'] ?? '-') : ($eq->equipment_name ?? '-') }} {{ is_array($eq) ? ($eq['manufacturer_name'] ?? '-') : ($eq->manufacturer_name ?? '-') }} {{ is_array($eq) ? ($eq['manufacturer_address'] ?? '-') : ($eq->manufacturer_address ?? '-') }} {{ is_array($eq) ? ($eq['country_name'] ?? ($eq['country'] ?? '-')) : ($eq->country_name ?? $eq->country ?? '-') }} {{ $isImported }} {{ $isImported === 'Yes' ? (is_array($eq) ? ($eq['country_of_origin'] ?? '-') : ($eq->country_of_origin ?? '-')) : '-' }} {{ $isImported === 'Yes' ? (is_array($eq) ? ($eq['port_of_import'] ?? '-') : ($eq->port_of_import ?? '-')) : '-' }} {{ is_array($eq) ? ($eq['quantity'] ?? '-') : ($eq->quantity ?? '-') }}
No equipment records available for Sale or Let for Hire.