@extends('layouts.app') @section('title', 'Dashboard') @section('content')

Welcome {{ auth('admins')->user()->name }}

All systems are running smoothly!

@php $wireguard_status = \App\Models\AppSetting::where('key', 'wireguard_status')->value('value'); @endphp @if($wireguard_status == 1)
Total Wireguard Servers

{{ $counts['wireguardServers'] }}

@endif @php $v2ray_status = \App\Models\AppSetting::where('key', 'v2ray_status')->value('value'); @endphp @if($v2ray_status == 1)
Total V2ray Servers

{{ $counts['v2rayServers'] }}

@endif @php $openvpn_status = \App\Models\AppSetting::where('key', 'openvpn_status')->value('value'); @endphp @if($openvpn_status == 1)
Total OpenVpn Servers

{{ $counts['openvpnServers'] }}

@endif @php $openconnect_status = \App\Models\AppSetting::where('key', 'openconnect_status')->value('value'); @endphp @if($openconnect_status == 1)
Total OpenConnect Servers

{{ $counts['openconnectServers'] }}

@endif
Total Users

{{ $counts['users'] }}

Total Subscriptions

{{ $counts['subscriptions'] }}

Total Revenue

$ {{ $counts['totalRevenue'] }}

Top 5 Servers

@forelse($counts['topServerUsers'] as $server) @empty @endforelse
Name Protocol Active Count
{{ ucwords($server->name) }} @if($server->protocol == 'wireguard') Wireguard @elseif($server->protocol == 'openvpn') OpenVPN @elseif($server->protocol == 'v2ray') V2ray @elseif($server->protocol == 'openconnect') OpenConnect @endif {{ $server->active_count }}
No Active Connections Found
@endsection @push('style') @endpush @push('scripts') @endpush