@extends('admin.layout.app') @section('content')

Overview Dashboard

Welcome back! Here is what's happening across your platform today.

{{ date('F d, Y') }}
@php $cards = [ ['label' => 'Banners', 'value' => $banner, 'icon' => 'mdi-image-multiple', 'text_color' => 'text-indigo-600', 'bg_color' => 'bg-indigo-50', 'bar_color' => 'bg-indigo-500'], ['label' => 'Users', 'value' => $user, 'icon' => 'mdi-account-group', 'text_color' => 'text-blue-600', 'bg_color' => 'bg-blue-50', 'bar_color' => 'bg-blue-500'], ['label' => 'FAQs', 'value' => $faq, 'icon' => 'mdi-comment-question-outline', 'text_color' => 'text-cyan-600', 'bg_color' => 'bg-cyan-50', 'bar_color' => 'bg-cyan-500'], ['label' => 'Feedback', 'value' => $feedBack, 'icon' => 'mdi-message-reply-text', 'text_color' => 'text-amber-600', 'bg_color' => 'bg-amber-50', 'bar_color' => 'bg-amber-500'], ['label' => 'Servers', 'value' => $server, 'icon' => 'mdi-server', 'text_color' => 'text-emerald-600', 'bg_color' => 'bg-emerald-50', 'bar_color' => 'bg-emerald-500'], ['label' => 'Free Subs', 'value' => $freeSubscription, 'icon' => 'mdi-cube-outline', 'text_color' => 'text-purple-600', 'bg_color' => 'bg-purple-50', 'bar_color' => 'bg-purple-500'], ['label' => 'Paid Subs', 'value' => $subscription, 'icon' => 'mdi-check-decagram', 'text_color' => 'text-rose-600', 'bg_color' => 'bg-rose-50', 'bar_color' => 'bg-rose-500'], ]; $total = array_sum(array_column($cards, 'value')); @endphp
@foreach ($cards as $card) @php $percent = $total > 0 ? round(($card['value'] / $total) * 100) : 0; @endphp

{{ $card['label'] }}

{{ $card['value'] }}

{{ $percent }}% volume ratio

@endforeach

Top Bandwidth Consumers

Users ranked by highest assigned bandwidth

Top Data Consumers

Users ranked by active data consumption

@endsection @section('customJs') @endsection