@extends('layouts.app') @section('title', 'ODP Details') @push('styles') @endpush @section('content')
@include('admin.partials.sidebar')
@include('admin.partials.topbar')

{{ $odp->name }}

{{ $odp->code }}

Edit ODP

Basic Information

ODP Name

{{ $odp->name }}

ODP Code

{{ $odp->code }}

Status

{{ ucfirst($odp->status) }}

Installation Date

{{ $odp->installation_date ? $odp->installation_date->format('d M Y') : '-' }}

Address

{{ $odp->address ?? '-' }}

Latitude

{{ $odp->latitude ?? '-' }}

Longitude

{{ $odp->longitude ?? '-' }}

@if($odp->notes)

Notes

{{ $odp->notes }}

@endif

Port Capacity

Port Usage {{ $odp->used_ports }} / {{ $odp->capacity }}
@php $percentage = $odp->capacity > 0 ? ($odp->used_ports / $odp->capacity) * 100 : 0; $color = $percentage >= 90 ? 'bg-red-600' : ($percentage >= 70 ? 'bg-yellow-500' : 'bg-green-500'); @endphp

{{ number_format($percentage, 1) }}% utilized

{{ $odp->capacity }}

Total Ports

{{ $odp->used_ports }}

Used

{{ $odp->capacity - $odp->used_ports }}

Available

@if($odp->latitude && $odp->longitude)

Location

@endif

Quick Stats

Connected Customers
{{ $odp->cableRoutes()->count() }}
ONU Devices
{{ $odp->onuDevices()->count() }}
Network Segments
{{ $odp->networkSegmentsStart()->count() + $odp->networkSegmentsEnd()->count() }}

Actions

Edit ODP View on Map
@csrf @method('DELETE')
@endsection @push('scripts') @if($odp->latitude && $odp->longitude) @endif @endpush