@extends('layouts.app') @section('title', 'ISP Details') @section('page-title', 'ISP Details') @section('content')

ISP Details: {{ $branch->name }}

Complete information about this ISP
Basic Information

{{ $branch->name }}

{{ $branch->code }}

@if($branch->is_active) Active @else Inactive @endif

{{ $branch->created_at->format('M d, Y \a\t h:i A') }}

@if($branch->description)

{{ $branch->description }}

@endif
Contact Information

{{ $branch->phone ?? 'Not provided' }}

{{ $branch->email ?? 'Not provided' }}

{{ $branch->address ?? 'Not provided' }}

Mikrotik Servers ({{ $branch->mikrotikServers->count() }})
@if($branch->mikrotikServers->count() > 0)
@foreach($branch->mikrotikServers as $server)
{{ $server->name }} @if($server->pivot->is_primary) @endif
{{ $server->is_active ? 'Active' : 'Inactive' }}
Host: {{ $server->host }}:{{ $server->port }}
Username: {{ $server->username }}
Status: {{ ucfirst($server->status) }}
@endforeach
@else

No Mikrotik servers assigned to this ISP.

@endif
Associated Clients ({{ $branch->clients->count() }})
@if($branch->clients->count() > 0)
@foreach($branch->clients as $client) @endforeach
ID Name Username Status Created
{{ $client->id }} {{ $client->name }} {{ $client->username ?? 'N/A' }} @if($client->status === 'active') Active @elseif($client->status === 'suspended') Suspended @else Inactive @endif {{ $client->created_at->format('M d, Y') }}
@else

No clients associated with this ISP.

@endif
Statistics

{{ $branch->clients->count() }}

Total Clients

{{ $branch->mikrotikServers->count() }}

Mikrotik Servers

{{ $branch->users->count() }}

Assigned Users

{{ $branch->zones->count() }}

Zones
System Information

{{ $branch->id }}

{{ $branch->created_at->diffForHumans() }}

{{ $branch->updated_at->format('M d, Y \a\t h:i A') }}

{{ $branch->updated_at->diffForHumans() }}

Assigned Users ({{ $branch->users->count() }})
@if($branch->users->count() > 0) @foreach($branch->users as $user)
@if($user->profile_photo && Storage::disk('public')->exists($user->profile_photo)) {{ $user->name }} @else
@endif
{{ $user->name }}
{{ $user->email }}
{{ ucfirst($user->role) }}
@endforeach @else

No users assigned to this ISP.

@endif
@endsection