@php $badges = [ 'in_stock' => 'badge-subtle-info', 'deployed' => 'badge-subtle-success', 'faulty' => 'badge-subtle-danger', 'retired' => 'badge-subtle-secondary', ]; $icons = [ 'router' => 'bi-router', 'antenna' => 'bi-broadcast-pin', 'ont' => 'bi-hdd', 'switch' => 'bi-diagram-3', 'cable' => 'bi-usb-c', 'other' => 'bi-box', ]; @endphp
{{ __('Equipment') }} @if (session('equipment-flash'))
{{ session('equipment-flash') }}
@endif
@if ($showForm)
{{ $editingId ? __('Edit item') : __('New item') }}
@endif
{{ __('Register') }}
@forelse ($items as $item) @empty @endforelse
{{ __('Item') }} {{ __('Serial / MAC') }} {{ __('Held by') }} {{ __('Location') }} {{ __('Cost') }} {{ __('Status') }} {{ __('Actions') }}
{{ $item->name }} {{ trim(($item->brand ?? '').' '.($item->model ?? '')) ?: strtoupper($item->type) }} @if ($item->serial) {{ $item->serial }} @endif @if ($item->mac_address) {{ $item->mac_address }} @endif @if (! $item->serial && ! $item->mac_address) @endif {{ $item->assigned_to ?: '—' }} {{ $item->location ?: '—' }} {{ $item->cost !== null ? money($item->cost, 0) : '—' }} {{ $item->statusLabel() }} @if ($item->status === 'in_stock') @elseif ($item->status === 'deployed') @endif @if ($item->status !== 'faulty') @endif
{{ __('Nothing on the register yet. Add your routers, antennas and ONTs.') }}
@if ($items->hasPages())
{{ $items->links() }}
@endif