@extends('layouts.app') @section('title', $pool->name) @section('content') @php $cap = $pool->capacity; $used = $pool->addresses_count; @endphp

{{ $pool->name }}

{{ strtoupper($pool->pool_type) }} · {{ $pool->network }}/{{ $pool->cidr ?: $pool->netmask }}

Edit @if ($pool->addresses()->where('status', 'allocated')->doesntExist())
@csrf @method('DELETE')
@endif
@include('components.kpi', ['label' => 'Capacity', 'value' => number_format($cap), 'variant' => 'info']) @include('components.kpi', ['label' => 'Addresses tracked', 'value' => number_format($used)]) @include('components.kpi', ['label' => 'Allocated', 'value' => number_format($breakdown['allocated'] ?? 0), 'variant' => ($breakdown['allocated'] ?? 0) ? 'warn' : 'good']) @include('components.kpi', ['label' => 'Available', 'value' => number_format($breakdown['available'] ?? 0), 'variant' => 'good'])

Add addresses

@csrf
@error('start_ip'){{ $message }}@enderror
Leave blank to add a single address. Max 1024 at a time. @error('end_ip'){{ $message }}@enderror

Configuration

Gateway
{{ $pool->gateway ?: '—' }}
DNS
{{ $pool->dns_primary ?: '—' }}{{ $pool->dns_secondary ? ', '.$pool->dns_secondary : '' }}
Next server (TFTP)
{{ $pool->next_server ?: '—' }}
Lease time
{{ $pool->lease_time }} seconds
Range
{{ $pool->start_ip ?: '—' }} — {{ $pool->end_ip ?: '—' }}
Status
{{ $pool->is_active ? 'Active' : 'Inactive' }}

Addresses

{{ $addresses->total() }}
@if ($addresses->isEmpty()) @include('components.empty-state', [ 'icon' => '🌐', 'title' => 'No addresses in this pool yet', 'message' => 'Add a range above. Addresses start as available and are bound to a service when allocated.', ]) @else @foreach ($addresses as $address) @endforeach
AddressClassAllocationService MACHostnameStatusActions
{{ $address->ip_address }} {{ title_case_words($address->ip_type) }} {{ title_case_words($address->allocation) }} @if ($address->service) {{ $address->service->service_number }}
{{ $address->service->customer?->display_name }}
@else @endif
{{ $address->mac_address ?: '—' }} {{ $address->hostname ?: '—' }} {{ title_case_words($address->status) }} @if ($address->status === 'allocated')
@csrf
@else
@csrf
@endif
@csrf @method('DELETE')
@endif
@if ($addresses->hasPages())
{{ $addresses->links('partials.pagination') }}
@endif
@endsection