[
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-[22px] leading-[34px] mb-3 capitalize">{{ $t("menu.overview") }}</h4> <div class="row"> <div class="col-12 sm:col-6 xl:col-3"> <div class="p-4 rounded-lg flex items-center gap-4 bg-[#FF4F99]"> <div class="w-12 h-12 rounded-full flex items-center justify-center bg-white"> <i class="lab lab-total-sale lab-font-size-24 lab-color-pink"></i> </div> <div> <h3 class="font-medium text-white">{{ $t('label.total_sales') }}</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="p-4 rounded-lg flex items-center gap-4 bg-[#8262FE]"> <div class="w-12 h-12 rounded-full flex items-center justify-center bg-white"> <i class="lab lab-total-orders lab-font-size-24 lab-color-portage"></i> </div> <div> <h3 class="font-medium 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="p-4 rounded-lg flex items-center gap-4 bg-[#567DFF]"> <div class="w-12 h-12 rounded-full flex items-center justify-center bg-white"> <i class="lab lab-total-customers lab-font-size-24 lab-color-cornflower-blue"></i> </div> <div> <h3 class="font-medium 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="p-4 rounded-lg flex items-center gap-4 bg-[#A953FF]"> <div class="w-12 h-12 rounded-full flex items-center justify-center bg-white"> <i class="lab lab-total-menu-items lab-font-size-24 lab-color-heliotrope"></i> </div> <div> <h3 class="font-medium text-white">{{ $t('label.total_menu_items') }}</h3> <h4 class="font-semibold text-[22px] leading-[34px] text-white">{{ total_menu_items }}</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_menu_items: null, }; }, mounted() { this.totalSales(); this.totalOrders(); this.totalCustomers(); this.totalMenuItems(); }, 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; }); }, totalMenuItems: function () { this.loading.isActive = true; this.$store.dispatch("dashboard/totalMenuItems").then((res) => { this.total_menu_items = res.data.data.total_menu_items; this.loading.isActive = false; }).catch((err) => { this.loading.isActive = false; }); }, }, } </script>
Save Changes
Cancel / Back
Close ×
Server Info
Hostname: server1.winmanyltd.com
Server IP: 203.161.60.52
PHP Version: 8.3.27
Server Software: Apache
System: Linux server1.winmanyltd.com 4.18.0-553.22.1.el8_10.x86_64 #1 SMP Tue Sep 24 05:16:59 EDT 2024 x86_64
HDD Total: 117.98 GB
HDD Free: 59.7 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:
Yes
git:
Yes
User Info
Username: eliosofonline
User ID (UID): 1002
Group ID (GID): 1003
Script Owner UID: 1002
Current Dir Owner: 1002