{{-- resources/views/firewall/services.blade.php --}} @extends('layouts.app') @section('content') @php $tcpRules = $services->filter(fn($s) => str_contains(strtolower($s->protocol), 'tcp') && (int)$s->enabled); $udpRules = $services->filter(fn($s) => str_contains(strtolower($s->protocol), 'udp') && (int)$s->enabled); $totalTcp = $services->filter(fn($s) => str_contains(strtolower($s->protocol), 'tcp'))->count(); $totalUdp = $services->filter(fn($s) => str_contains(strtolower($s->protocol), 'udp'))->count(); @endphp {{-- Header --}}
| Name | Protocol | Port / Range | Exposure | IP Range / Scope | Status | Updated | Actions | |
|---|---|---|---|---|---|---|---|---|
|
{{ $service->name }}
ID: {{ $service->id }}
|
{{ strtoupper($service->protocol) }} | {{ $service->port }} | @if($isPublic) Public @else Restricted @endif | {{ $service->ip_range ?: '0.0.0.0/0' }} | {{ $enabled ? 'Enabled' : 'Disabled' }} |
@if(!empty($service->updated_at))
{{ \Carbon\Carbon::parse($service->updated_at)->diffForHumans() }}
{{ \Carbon\Carbon::parse($service->updated_at)->format('M d, Y H:i') }}
@else —
@endif
|
|
|
| No service rules found. Click Load Default Rules to get started. | ||||||||