@extends("admin.layouts.app") @section("title", __("admin.servers")) @section("content") @if($errors->any())
@endif @if($report = session('server_report')) @php($levelColor = ['ok' => '#15803d', 'warn' => '#b45309', 'fail' => '#b91c1c', 'info' => '#475569']) @php($levelIcon = ['ok' => '✓', 'warn' => '!', 'fail' => '✗', 'info' => 'i'])
{{ __('proxmox.admin.report_title', ['name' => $report['name']]) }} @if(!empty($report['version']))Proxmox VE {{ $report['version'] }} · {{ $report['identity'] }}@endif
@if(!empty($report['commands']))
{{ __('proxmox.admin.commands_title') }}
{{ __('proxmox.admin.commands_hint') }}
{{ $report['commands'] }}
@endif @if(!empty($report['recipes']))
{{ __('proxmox.admin.recipes_title') }}
{{ __('proxmox.admin.recipes_hint') }}
{{ $report['recipes'] }}
@endif
@endif
@if(($servers ?? collect())->isEmpty())
{{ __('admin.servers.no_servers') }}
@else @foreach($servers as $server) @endforeach
{{ __('common.table.name') }}{{ __('admin.servers.hostname') }}{{ __('common.table.ip_address') }}{{ __('common.table.type') }}{{ __('admin.servers.port') }}{{ __('admin.servers.max_accounts') }}{{ __('common.table.status') }}{{ __('common.table.actions') }}
{{ $server->name }} {{ $server->hostname }} {{ $server->ip_address ?? "-" }} {{ $server->type }} {{ $server->port ?? "-" }} {{ $server->max_accounts ?: __("admin.servers.unlimited") }} {{ $server->active ? __("common.status.active") : __("common.status.disabled") }}
@csrf
@if(strtolower((string) $server->type) === 'proxmox') {{ __('proxmox.images.button') }} @endif
@csrf @method("DELETE")
@endif
{{-- Add Server Modal --}} {{-- Edit Server Modal --}} @push("scripts") @endpush @endsection