diff --git a/.bladeformatterrc.json b/.bladeformatterrc.json new file mode 100644 index 0000000..0fb7179 --- /dev/null +++ b/.bladeformatterrc.json @@ -0,0 +1,7 @@ +{ + "indentSize": 4, + "wrapAttributes": "auto", + "wrapLineLength": 120, + "sortTailwindcssClasses": true, + "noMultipleEmptyLines": true +} diff --git a/.prettierrc b/.prettierrc new file mode 100644 index 0000000..1c84dc5 --- /dev/null +++ b/.prettierrc @@ -0,0 +1,11 @@ +{ + "tabWidth": 4, + "useTabs": false, + "singleQuote": true, + "printWidth": 120, + "htmlWhitespaceSensitivity": "ignore", + "bracketSameLine": false, + "blade": { + "format": "indent" + } +} diff --git a/app/Http/Controllers/admin/LoginController.php b/app/Http/Controllers/admin/LoginController.php index 6db59a1..9705a34 100644 --- a/app/Http/Controllers/admin/LoginController.php +++ b/app/Http/Controllers/admin/LoginController.php @@ -13,7 +13,7 @@ class LoginController extends Controller // public function index() { - return view("admin.user.login"); + return view("administrator.pages.auth.login"); } public function store(Request $request) { diff --git a/app/Http/Controllers/admin/MainController.php b/app/Http/Controllers/admin/MainController.php index 7bfc18d..9b9a389 100644 --- a/app/Http/Controllers/admin/MainController.php +++ b/app/Http/Controllers/admin/MainController.php @@ -114,7 +114,7 @@ class MainController extends Controller $staffs = $this->staffRepository->filter([], ['user']); return view( - 'admin.home', + 'administrator.home', compact( 'title', 'pending_order', @@ -147,7 +147,7 @@ class MainController extends Controller ); $title = 'System Activity Log'; - return view('admin.log', compact('title', 'logs')); + return view('administrator.pages.log', compact('title', 'logs')); } public function ClearCache() diff --git a/config/admin-sidebar.php b/config/admin-sidebar.php index f27a1ad..16ba909 100644 --- a/config/admin-sidebar.php +++ b/config/admin-sidebar.php @@ -1,6 +1,10 @@ 'category', + 'title' => 'Modules', + ], [ 'type' => 'group', 'title' => 'Package vCenter', @@ -30,6 +34,10 @@ return [ ['title' => 'Module IP Pool', 'url' => '/administrator/list-all-server-ip-pool', 'active' => ['administrator/list-all-server-ip-pool*']], ], ], + [ + 'type' => 'category', + 'title' => 'Manager', + ], [ 'type' => 'group', 'title' => 'Manager Admin', @@ -87,6 +95,10 @@ return [ ['title' => 'Cancel Invoice', 'url' => '/administrator/list-all-invoice?status=cancel', 'active' => []], ], ], + [ + 'type' => 'category', + 'title' => 'Settings', + ], [ 'type' => 'group', 'title' => 'Menus', diff --git a/resources/css/custom.css b/resources/css/custom.css new file mode 100644 index 0000000..0fcf29e --- /dev/null +++ b/resources/css/custom.css @@ -0,0 +1 @@ +/* Write your custom css here */ \ No newline at end of file diff --git a/resources/js/pages/dashboard.js b/resources/js/pages/dashboard.js index 578b965..f92e257 100644 --- a/resources/js/pages/dashboard.js +++ b/resources/js/pages/dashboard.js @@ -1,560 +1,671 @@ 'use strict'; (function() { + // JS global variables from app.js file + const colors = window.config.colors; + const fontFamily = window.config.fontFamily; - // JS global variables from app.js file - const colors = window.config.colors; - const fontFamily = window.config.fontFamily; + const revenueChartData = [ + 49.33, 48.79, 50.61, 53.31, 54.78, 53.84, 54.68, 56.74, 56.99, 56.14, 56.56, 60.35, 58.74, 61.44, 61.11, 58.57, + 54.72, 52.07, 51.09, 47.48, 48.57, 48.99, 53.58, 50.28, 46.24, 48.61, 51.75, 51.34, 50.21, 54.65, 52.44, 53.06, + 57.07, 52.97, 48.72, 52.69, 53.59, 58.52, 55.1, 58.05, 61.35, 57.74, 60.27, 61.0, 57.78, 56.8, 58.9, 62.45, + 58.75, 58.4, 56.74, 52.76, 52.3, 50.56, 55.4, 50.49, 52.49, 48.79, 47.46, 43.31, 38.96, 34.73, 31.03, 32.63, + 36.89, 35.89, 32.74, 33.2, 30.82, 28.64, 28.44, 27.73, 27.75, 25.96, 24.38, 21.95, 22.08, 23.54, 27.3, 30.27, + 27.25, 29.92, 25.14, 23.09, 23.79, 23.46, 27.99, 23.21, 23.91, 19.21, 15.13, 15.08, 11.0, 9.2, 7.47, 11.64, + 15.76, 13.99, 12.59, 13.53, 15.01, 13.95, 13.23, 18.1, 20.63, 21.06, 25.37, 25.32, 20.94, 18.75, 15.38, 14.56, + 17.94, 15.96, 16.35, 14.16, 12.1, 14.84, 17.24, 17.79, 14.03, 18.65, 18.46, 22.68, 25.08, 28.18, 28.03, 24.11, + 24.28, 28.23, 26.24, 29.33, 26.07, 23.92, 28.82, 25.14, 21.79, 23.05, 20.71, 29.72, 30.21, 32.56, 31.46, 33.69, + 30.05, 34.2, 36.93, 35.5, 34.78, 36.97, + ]; - const revenueChartData = [ - 49.33, - 48.79, - 50.61, - 53.31, - 54.78, - 53.84, - 54.68, - 56.74, - 56.99, - 56.14, - 56.56, - 60.35, - 58.74, - 61.44, - 61.11, - 58.57, - 54.72, - 52.07, - 51.09, - 47.48, - 48.57, - 48.99, - 53.58, - 50.28, - 46.24, - 48.61, - 51.75, - 51.34, - 50.21, - 54.65, - 52.44, - 53.06, - 57.07, - 52.97, - 48.72, - 52.69, - 53.59, - 58.52, - 55.10, - 58.05, - 61.35, - 57.74, - 60.27, - 61.00, - 57.78, - 56.80, - 58.90, - 62.45, - 58.75, - 58.40, - 56.74, - 52.76, - 52.30, - 50.56, - 55.40, - 50.49, - 52.49, - 48.79, - 47.46, - 43.31, - 38.96, - 34.73, - 31.03, - 32.63, - 36.89, - 35.89, - 32.74, - 33.20, - 30.82, - 28.64, - 28.44, - 27.73, - 27.75, - 25.96, - 24.38, - 21.95, - 22.08, - 23.54, - 27.30, - 30.27, - 27.25, - 29.92, - 25.14, - 23.09, - 23.79, - 23.46, - 27.99, - 23.21, - 23.91, - 19.21, - 15.13, - 15.08, - 11.00, - 9.20, - 7.47, - 11.64, - 15.76, - 13.99, - 12.59, - 13.53, - 15.01, - 13.95, - 13.23, - 18.10, - 20.63, - 21.06, - 25.37, - 25.32, - 20.94, - 18.75, - 15.38, - 14.56, - 17.94, - 15.96, - 16.35, - 14.16, - 12.10, - 14.84, - 17.24, - 17.79, - 14.03, - 18.65, - 18.46, - 22.68, - 25.08, - 28.18, - 28.03, - 24.11, - 24.28, - 28.23, - 26.24, - 29.33, - 26.07, - 23.92, - 28.82, - 25.14, - 21.79, - 23.05, - 20.71, - 29.72, - 30.21, - 32.56, - 31.46, - 33.69, - 30.05, - 34.20, - 36.93, - 35.50, - 34.78, - 36.97 - ]; + const revenueChartCategories = [ + 'Jan 01 2025', + 'Jan 02 2025', + 'jan 03 2025', + 'Jan 04 2025', + 'Jan 05 2025', + 'Jan 06 2025', + 'Jan 07 2025', + 'Jan 08 2025', + 'Jan 09 2025', + 'Jan 10 2025', + 'Jan 11 2025', + 'Jan 12 2025', + 'Jan 13 2025', + 'Jan 14 2025', + 'Jan 15 2025', + 'Jan 16 2025', + 'Jan 17 2025', + 'Jan 18 2025', + 'Jan 19 2025', + 'Jan 20 2025', + 'Jan 21 2025', + 'Jan 22 2025', + 'Jan 23 2025', + 'Jan 24 2025', + 'Jan 25 2025', + 'Jan 26 2025', + 'Jan 27 2025', + 'Jan 28 2025', + 'Jan 29 2025', + 'Jan 30 2025', + 'Jan 31 2025', + 'Feb 01 2025', + 'Feb 02 2025', + 'Feb 03 2025', + 'Feb 04 2025', + 'Feb 05 2025', + 'Feb 06 2025', + 'Feb 07 2025', + 'Feb 08 2025', + 'Feb 09 2025', + 'Feb 10 2025', + 'Feb 11 2025', + 'Feb 12 2025', + 'Feb 13 2025', + 'Feb 14 2025', + 'Feb 15 2025', + 'Feb 16 2025', + 'Feb 17 2025', + 'Feb 18 2025', + 'Feb 19 2025', + 'Feb 20 2025', + 'Feb 21 2025', + 'Feb 22 2025', + 'Feb 23 2025', + 'Feb 24 2025', + 'Feb 25 2025', + 'Feb 26 2025', + 'Feb 27 2025', + 'Feb 28 2025', + 'Mar 01 2025', + 'Mar 02 2025', + 'Mar 03 2025', + 'Mar 04 2025', + 'Mar 05 2025', + 'Mar 06 2025', + 'Mar 07 2025', + 'Mar 08 2025', + 'Mar 09 2025', + 'Mar 10 2025', + 'Mar 11 2025', + 'Mar 12 2025', + 'Mar 13 2025', + 'Mar 14 2025', + 'Mar 15 2025', + 'Mar 16 2025', + 'Mar 17 2025', + 'Mar 18 2025', + 'Mar 19 2025', + 'Mar 20 2025', + 'Mar 21 2025', + 'Mar 22 2025', + 'Mar 23 2025', + 'Mar 24 2025', + 'Mar 25 2025', + 'Mar 26 2025', + 'Mar 27 2025', + 'Mar 28 2025', + 'Mar 29 2025', + 'Mar 30 2025', + 'Mar 31 2025', + 'Apr 01 2025', + 'Apr 02 2025', + 'Apr 03 2025', + 'Apr 04 2025', + 'Apr 05 2025', + 'Apr 06 2025', + 'Apr 07 2025', + 'Apr 08 2025', + 'Apr 09 2025', + 'Apr 10 2025', + 'Apr 11 2025', + 'Apr 12 2025', + 'Apr 13 2025', + 'Apr 14 2025', + 'Apr 15 2025', + 'Apr 16 2025', + 'Apr 17 2025', + 'Apr 18 2025', + 'Apr 19 2025', + 'Apr 20 2025', + 'Apr 21 2025', + 'Apr 22 2025', + 'Apr 23 2025', + 'Apr 24 2025', + 'Apr 25 2025', + 'Apr 26 2025', + 'Apr 27 2025', + 'Apr 28 2025', + 'Apr 29 2025', + 'Apr 30 2025', + 'May 01 2025', + 'May 02 2025', + 'May 03 2025', + 'May 04 2025', + 'May 05 2025', + 'May 06 2025', + 'May 07 2025', + 'May 08 2025', + 'May 09 2025', + 'May 10 2025', + 'May 11 2025', + 'May 12 2025', + 'May 13 2025', + 'May 14 2025', + 'May 15 2025', + 'May 16 2025', + 'May 17 2025', + 'May 18 2025', + 'May 19 2025', + 'May 20 2025', + 'May 21 2025', + 'May 22 2025', + 'May 23 2025', + 'May 24 2025', + 'May 25 2025', + 'May 26 2025', + 'May 27 2025', + 'May 28 2025', + 'May 29 2025', + 'May 30 2025', + ]; - const revenueChartCategories = [ - "Jan 01 2025", "Jan 02 2025", "jan 03 2025", "Jan 04 2025", "Jan 05 2025", "Jan 06 2025", "Jan 07 2025", "Jan 08 2025", "Jan 09 2025", "Jan 10 2025", "Jan 11 2025", "Jan 12 2025", "Jan 13 2025", "Jan 14 2025", "Jan 15 2025", "Jan 16 2025", "Jan 17 2025", "Jan 18 2025", "Jan 19 2025", "Jan 20 2025","Jan 21 2025", "Jan 22 2025", "Jan 23 2025", "Jan 24 2025", "Jan 25 2025", "Jan 26 2025", "Jan 27 2025", "Jan 28 2025", "Jan 29 2025", "Jan 30 2025", "Jan 31 2025", - "Feb 01 2025", "Feb 02 2025", "Feb 03 2025", "Feb 04 2025", "Feb 05 2025", "Feb 06 2025", "Feb 07 2025", "Feb 08 2025", "Feb 09 2025", "Feb 10 2025", "Feb 11 2025", "Feb 12 2025", "Feb 13 2025", "Feb 14 2025", "Feb 15 2025", "Feb 16 2025", "Feb 17 2025", "Feb 18 2025", "Feb 19 2025", "Feb 20 2025","Feb 21 2025", "Feb 22 2025", "Feb 23 2025", "Feb 24 2025", "Feb 25 2025", "Feb 26 2025", "Feb 27 2025", "Feb 28 2025", - "Mar 01 2025", "Mar 02 2025", "Mar 03 2025", "Mar 04 2025", "Mar 05 2025", "Mar 06 2025", "Mar 07 2025", "Mar 08 2025", "Mar 09 2025", "Mar 10 2025", "Mar 11 2025", "Mar 12 2025", "Mar 13 2025", "Mar 14 2025", "Mar 15 2025", "Mar 16 2025", "Mar 17 2025", "Mar 18 2025", "Mar 19 2025", "Mar 20 2025","Mar 21 2025", "Mar 22 2025", "Mar 23 2025", "Mar 24 2025", "Mar 25 2025", "Mar 26 2025", "Mar 27 2025", "Mar 28 2025", "Mar 29 2025", "Mar 30 2025", "Mar 31 2025", - "Apr 01 2025", "Apr 02 2025", "Apr 03 2025", "Apr 04 2025", "Apr 05 2025", "Apr 06 2025", "Apr 07 2025", "Apr 08 2025", "Apr 09 2025", "Apr 10 2025", "Apr 11 2025", "Apr 12 2025", "Apr 13 2025", "Apr 14 2025", "Apr 15 2025", "Apr 16 2025", "Apr 17 2025", "Apr 18 2025", "Apr 19 2025", "Apr 20 2025","Apr 21 2025", "Apr 22 2025", "Apr 23 2025", "Apr 24 2025", "Apr 25 2025", "Apr 26 2025", "Apr 27 2025", "Apr 28 2025", "Apr 29 2025", "Apr 30 2025", - "May 01 2025", "May 02 2025", "May 03 2025", "May 04 2025", "May 05 2025", "May 06 2025", "May 07 2025", "May 08 2025", "May 09 2025", "May 10 2025", "May 11 2025", "May 12 2025", "May 13 2025", "May 14 2025", "May 15 2025", "May 16 2025", "May 17 2025", "May 18 2025", "May 19 2025", "May 20 2025","May 21 2025", "May 22 2025", "May 23 2025", "May 24 2025", "May 25 2025", "May 26 2025", "May 27 2025", "May 28 2025", "May 29 2025", "May 30 2025", - ] - - - - - - // Date Picker - if (document.querySelector('#dashboardDate')) { - flatpickr("#dashboardDate", { - wrap: true, - dateFormat: "d-M-Y", - defaultDate: "today", - }); - } - // Date Picker - END - - - - - - // New Customers Chart - const customersChartElement = document.querySelector('#customersChart'); - if (customersChartElement) { - const customersChartOptions = { - chart: { - type: "line", - height: 60, - sparkline: { - enabled: !0 - } - }, - series: [{ - name: '', - data: [3844, 3855, 3841, 3867, 3822, 3843, 3821, 3841, 3856, 3827, 3843] - }], - xaxis: { - type: 'datetime', - categories: ["Jan 01 2025", "Jan 02 2025", "Jan 03 2025", "Jan 04 2025", "Jan 05 2025", "Jan 06 2025", "Jan 07 2025", "Jan 08 2025", "Jan 09 2025", "Jan 10 2025", "Jan 11 2025",], - }, - yaxis: { - min: 3820, - max: 3870, - tickAmount: 4, - labels: { - show: false - } - }, - stroke: { - width: 2, - curve: "smooth" - }, - markers: { - size: 0 - }, - colors: [colors.primary], - }; - const customersChart = new ApexCharts(customersChartElement, customersChartOptions); - customersChart.render(); - } - // New Customers Chart - END - - - - - // Orders Chart - const ordersChartElement = document.querySelector('#ordersChart'); - if (ordersChartElement) { - const ordersChartOptions = { - chart: { - type: "bar", - height: 60, - sparkline: { - enabled: !0 - } - }, - plotOptions: { - bar: { - borderRadius: 2, - columnWidth: "60%" - } - }, - colors: [colors.primary], - series: [{ - name: '', - data: [36, 77, 52, 90, 74, 35, 55, 23, 47, 10, 63] - }], - xaxis: { - type: 'datetime', - categories: ["Jan 01 2025", "Jan 02 2025", "Jan 03 2025", "Jan 04 2025", "Jan 05 2025", "Jan 06 2025", "Jan 07 2025", "Jan 08 2025", "Jan 09 2025", "Jan 10 2025", "Jan 11 2025",], - }, - yaxis: { - min: 0, - max: 90, - tickAmount: 4, - labels: { - show: false - } - }, - }; - const ordersChart = new ApexCharts(ordersChartElement, ordersChartOptions); - ordersChart.render(); - } - // Orders Chart - END - - - - - // Growth Chart - const growthChartElement = document.querySelector('#growthChart'); - if (growthChartElement) { - const growthChartOptions = { - chart: { - type: "line", - height: 60, - sparkline: { - enabled: !0 - } - }, - series: [{ - name: '', - data: [41, 45, 44, 46, 52, 54, 43, 74, 82, 82, 89] - }], - xaxis: { - type: 'datetime', - categories: ["Jan 01 2025", "Jan 02 2025", "Jan 03 2025", "Jan 04 2025", "Jan 05 2025", "Jan 06 2025", "Jan 07 2025", "Jan 08 2025", "Jan 09 2025", "Jan 10 2025", "Jan 11 2025",], - }, - yaxis: { - min: 40, - max: 90, - tickAmount: 4, - labels: { - formatter: function (val) { - return val + "%"; - } - } - }, - stroke: { - width: 2, - curve: "smooth" - }, - markers: { - size: 0 - }, - colors: [colors.primary], - }; - const growthChart = new ApexCharts(growthChartElement, growthChartOptions); - growthChart.render(); - } - // Growth Chart - END + // Date Picker + if (document.querySelector('#dashboardDate')) { + flatpickr('#dashboardDate', { + wrap: true, + dateFormat: 'd-M-Y', + defaultDate: 'today', + }); + } + // Date Picker - END + // New Customers Chart + const customersChartElement = document.querySelector('#customersChart'); + if (customersChartElement) { + const customersChartOptions = { + chart: { + type: 'line', + height: 60, + sparkline: { + enabled: !0, + }, + }, + series: [ + { + name: '', + data: [3844, 3855, 3841, 3867, 3822, 3843, 3821, 3841, 3856, 3827, 3843], + }, + ], + xaxis: { + type: 'datetime', + categories: [ + 'Jan 01 2025', + 'Jan 02 2025', + 'Jan 03 2025', + 'Jan 04 2025', + 'Jan 05 2025', + 'Jan 06 2025', + 'Jan 07 2025', + 'Jan 08 2025', + 'Jan 09 2025', + 'Jan 10 2025', + 'Jan 11 2025', + ], + }, + yaxis: { + min: 3820, + max: 3870, + tickAmount: 4, + labels: { + show: false, + }, + }, + stroke: { + width: 2, + curve: 'smooth', + }, + markers: { + size: 0, + }, + colors: [colors.primary], + }; + const customersChart = new ApexCharts(customersChartElement, customersChartOptions); + customersChart.render(); + } + // New Customers Chart - END + // Orders Chart + const ordersChartElement = document.querySelector('#ordersChart'); + if (ordersChartElement) { + const ordersChartOptions = { + chart: { + type: 'bar', + height: 60, + sparkline: { + enabled: !0, + }, + }, + plotOptions: { + bar: { + borderRadius: 2, + columnWidth: '60%', + }, + }, + colors: [colors.primary], + series: [ + { + name: '', + data: [36, 77, 52, 90, 74, 35, 55, 23, 47, 10, 63], + }, + ], + xaxis: { + type: 'datetime', + categories: [ + 'Jan 01 2025', + 'Jan 02 2025', + 'Jan 03 2025', + 'Jan 04 2025', + 'Jan 05 2025', + 'Jan 06 2025', + 'Jan 07 2025', + 'Jan 08 2025', + 'Jan 09 2025', + 'Jan 10 2025', + 'Jan 11 2025', + ], + }, + yaxis: { + min: 0, + max: 90, + tickAmount: 4, + labels: { + show: false, + }, + }, + }; + const ordersChart = new ApexCharts(ordersChartElement, ordersChartOptions); + ordersChart.render(); + } + // Orders Chart - END + // Growth Chart + const growthChartElement = document.querySelector('#growthChart'); + if (growthChartElement) { + const growthChartOptions = { + chart: { + type: 'line', + height: 60, + sparkline: { + enabled: !0, + }, + }, + series: [ + { + name: '', + data: [41, 45, 44, 46, 52, 54, 43, 74, 82, 82, 89], + }, + ], + xaxis: { + type: 'datetime', + categories: [ + 'Jan 01 2025', + 'Jan 02 2025', + 'Jan 03 2025', + 'Jan 04 2025', + 'Jan 05 2025', + 'Jan 06 2025', + 'Jan 07 2025', + 'Jan 08 2025', + 'Jan 09 2025', + 'Jan 10 2025', + 'Jan 11 2025', + ], + }, + yaxis: { + min: 40, + max: 90, + tickAmount: 4, + labels: { + formatter: function (val) { + return val + '%'; + }, + }, + }, + stroke: { + width: 2, + curve: 'smooth', + }, + markers: { + size: 0, + }, + colors: [colors.primary], + }; + const growthChart = new ApexCharts(growthChartElement, growthChartOptions); + growthChart.render(); + } + // Growth Chart - END // Revenue Chart const revenueChartElement = document.querySelector('#revenueChart'); if (revenueChartElement) { - const revenueChartOptions = { - chart: { - type: "line", - height: '400', - parentHeightOffset: 0, - foreColor: colors.secondary, - toolbar: { - show: false - }, - zoom: { - enabled: false - }, - }, - colors: [colors.primary, colors.danger, colors.warning], - grid: { - padding: { - bottom: -4, - }, - borderColor: colors.gridBorder, - xaxis: { - lines: { - show: true - } - } - }, - series: [ - { - name: "Revenue", - data: revenueChartData - }, - ], - xaxis: { - type: "datetime", - categories: revenueChartCategories, - lines: { - show: true - }, - axisBorder: { - color: colors.gridBorder, - }, - axisTicks: { - color: colors.gridBorder, - }, - crosshairs: { - stroke: { - color: colors.secondary, + const revenueChartOptions = { + chart: { + type: 'line', + height: '400', + parentHeightOffset: 0, + foreColor: colors.secondary, + toolbar: { + show: false, + }, + zoom: { + enabled: false, + }, }, - }, - }, - yaxis: { - min: -10, - max: 70, - title: { - text: 'Revenue ( $1000 x )', - style:{ - size: 9, - color: colors.secondary - } - }, - tickAmount: 4, - tooltip: { - enabled: true - }, - crosshairs: { - stroke: { - color: colors.secondary, + colors: [colors.primary, colors.danger, colors.warning], + grid: { + padding: { + bottom: -4, + }, + borderColor: colors.gridBorder, + xaxis: { + lines: { + show: true, + }, + }, }, - }, - }, - markers: { - size: 0, - }, - stroke: { - width: 2, - curve: "straight", - }, - }; - const revenueChart = new ApexCharts(revenueChartElement, revenueChartOptions); - revenueChart.render(); + series: [ + { + name: 'Revenue', + data: revenueChartData, + }, + ], + xaxis: { + type: 'datetime', + categories: revenueChartCategories, + lines: { + show: true, + }, + axisBorder: { + color: colors.gridBorder, + }, + axisTicks: { + color: colors.gridBorder, + }, + crosshairs: { + stroke: { + color: colors.secondary, + }, + }, + }, + yaxis: { + min: -10, + max: 70, + title: { + text: 'Revenue ( $1000 x )', + style: { + size: 9, + color: colors.secondary, + }, + }, + tickAmount: 4, + tooltip: { + enabled: true, + }, + crosshairs: { + stroke: { + color: colors.secondary, + }, + }, + }, + markers: { + size: 0, + }, + stroke: { + width: 2, + curve: 'straight', + }, + }; + const revenueChart = new ApexCharts(revenueChartElement, revenueChartOptions); + revenueChart.render(); } // Revenue Chart - END - - - - - // Monthly Sales Chart - const monthlySalesChartElement = document.querySelector('#monthlySalesChart'); - if (monthlySalesChartElement) { - const monthlySalesChartOptions = { - chart: { - type: 'bar', - height: '318', - parentHeightOffset: 0, - foreColor: colors.secondary, - toolbar: { - show: false - }, - zoom: { - enabled: false - }, - }, - colors: [colors.primary], - fill: { - opacity: .9 - } , - grid: { - padding: { - bottom: -4 - }, - borderColor: colors.gridBorder, - xaxis: { - lines: { - show: true - } - } - }, - series: [{ - name: 'Sales', - data: [152,109,93,113,126,161,188,143,102,113,116,124] - }], - xaxis: { - type: 'datetime', - categories: ['01/01/2025','02/01/2025','03/01/2025','04/01/2025','05/01/2025','06/01/2025','07/01/2025', '08/01/2025','09/01/2025','10/01/2025', '11/01/2025', '12/01/2025'], - axisBorder: { - color: colors.gridBorder, - }, - axisTicks: { - color: colors.gridBorder, - }, - }, - yaxis: { - title: { - text: 'Number of Sales', - style:{ - size: 9, - color: colors.secondary - } - }, - }, - legend: { - show: true, - position: "top", - horizontalAlign: 'center', - fontFamily: fontFamily, - itemMargin: { - horizontal: 8, - vertical: 0 - }, - }, - stroke: { - width: 0 - }, - dataLabels: { - enabled: true, - style: { - fontSize: '10px', - fontFamily: fontFamily, - }, - offsetY: -27 - }, - plotOptions: { - bar: { - columnWidth: "50%", - borderRadius: 4, - dataLabels: { - position: 'top', - orientation: 'vertical', - } - }, - }, - } - - const monthlySalesChart = new ApexCharts(monthlySalesChartElement, monthlySalesChartOptions); - monthlySalesChart.render(); - } - // Monthly Sales Chart - END - - - - - - // Cloud Storage Chart - const storageChartElement = document.querySelector('#storageChart'); - if (storageChartElement) { - const storageChartOptions = { - chart: { - height: 260, - type: "radialBar" - }, - series: [67], - colors: [colors.primary], - plotOptions: { - radialBar: { - hollow: { - margin: 15, - size: "70%" - }, - track: { - show: true, - background: colors.gridBorder, - strokeWidth: '100%', - opacity: 1, - margin: 5, - }, - dataLabels: { - showOn: "always", - name: { - offsetY: -11, - show: true, - color: colors.secondary, - fontSize: "13px" + // Monthly Sales Chart + const monthlySalesChartElement = document.querySelector('#monthlySalesChart'); + if (monthlySalesChartElement) { + const monthlySalesChartOptions = { + chart: { + type: 'bar', + height: '318', + parentHeightOffset: 0, + foreColor: colors.secondary, + toolbar: { + show: false, + }, + zoom: { + enabled: false, + }, }, - value: { - color: colors.secondary, - fontSize: "30px", - show: true - } - } - } - }, - fill: { - opacity: 1 - }, - stroke: { - lineCap: "round", - }, - labels: ["Storage Used"] - }; - - const storageChart = new ApexCharts(storageChartElement, storageChartOptions); - storageChart.render(); - } - // Cloud Storage Chart - END + colors: [colors.primary], + fill: { + opacity: 0.9, + }, + grid: { + padding: { + bottom: -4, + }, + borderColor: colors.gridBorder, + xaxis: { + lines: { + show: true, + }, + }, + }, + series: [ + { + name: 'Sales', + data: [152, 109, 93, 113, 126, 161, 188, 143, 102, 113, 116, 124], + }, + ], + xaxis: { + type: 'datetime', + categories: [ + '01/01/2025', + '02/01/2025', + '03/01/2025', + '04/01/2025', + '05/01/2025', + '06/01/2025', + '07/01/2025', + '08/01/2025', + '09/01/2025', + '10/01/2025', + '11/01/2025', + '12/01/2025', + ], + axisBorder: { + color: colors.gridBorder, + }, + axisTicks: { + color: colors.gridBorder, + }, + }, + yaxis: { + title: { + text: 'Number of Sales', + style: { + size: 9, + color: colors.secondary, + }, + }, + }, + legend: { + show: true, + position: 'top', + horizontalAlign: 'center', + fontFamily: fontFamily, + itemMargin: { + horizontal: 8, + vertical: 0, + }, + }, + stroke: { + width: 0, + }, + dataLabels: { + enabled: true, + style: { + fontSize: '10px', + fontFamily: fontFamily, + }, + offsetY: -27, + }, + plotOptions: { + bar: { + columnWidth: '50%', + borderRadius: 4, + dataLabels: { + position: 'top', + orientation: 'vertical', + }, + }, + }, + }; + const monthlySalesChart = new ApexCharts(monthlySalesChartElement, monthlySalesChartOptions); + monthlySalesChart.render(); + } + // Monthly Sales Chart - END + // Cloud Storage Chart + const storageChartElement = document.querySelector('#storageChart'); + if (storageChartElement) { + const storageChartOptions = { + chart: { + height: 260, + type: 'radialBar', + }, + series: [67], + colors: [colors.primary], + plotOptions: { + radialBar: { + hollow: { + margin: 15, + size: '70%', + }, + track: { + show: true, + background: colors.gridBorder, + strokeWidth: '100%', + opacity: 1, + margin: 5, + }, + dataLabels: { + showOn: 'always', + name: { + offsetY: -11, + show: true, + color: colors.secondary, + fontSize: '13px', + }, + value: { + color: colors.secondary, + fontSize: '30px', + show: true, + }, + }, + }, + }, + fill: { + opacity: 1, + }, + stroke: { + lineCap: 'round', + }, + labels: ['Storage Used'], + }; + + const storageChart = new ApexCharts(storageChartElement, storageChartOptions); + storageChart.render(); + } + // Cloud Storage Chart - END + + // Billing Chart + const billingChartElement = document.querySelector('#billingChart'); + if (billingChartElement) { + const today = parseFloat(billingChartElement.getAttribute('data-today')) || 0; + const month = parseFloat(billingChartElement.getAttribute('data-month')) || 0; + const year = parseFloat(billingChartElement.getAttribute('data-year')) || 0; + + const billingChartOptions = { + chart: { + height: 250, + type: 'donut', + }, + dataLabels: { + enabled: false, + }, + series: [today, month, year], + labels: ['Today', 'This Month', 'This Year'], + colors: [colors.primary, colors.warning, colors.danger], + legend: { + show: true, + position: 'bottom', + fontFamily: fontFamily, + itemMargin: { + horizontal: 8, + vertical: 0, + }, + }, + stroke: { + colors: ['#fff'], + }, + plotOptions: { + pie: { + donut: { + size: '70%', + labels: { + show: true, + name: { + fontSize: '14px', + fontFamily: fontFamily, + color: colors.secondary, + offsetY: -10, + }, + value: { + fontSize: '16px', + fontFamily: fontFamily, + color: colors.bodyColor, + offsetY: 16, + formatter: function (val) { + return new Intl.NumberFormat('vi-VN', { + style: 'currency', + currency: 'VND', + }).format(val); + }, + }, + total: { + show: true, + fontFamily: fontFamily, + label: 'This Month', + color: colors.secondary, + formatter: function (w) { + return new Intl.NumberFormat('vi-VN', { + style: 'currency', + currency: 'VND', + }).format(month); + }, + }, + }, + }, + }, + }, + }; + + const billingChart = new ApexCharts(billingChartElement, billingChartOptions); + billingChart.render(); + } + // Billing Chart - END })(); \ No newline at end of file diff --git a/resources/views/admin/log.blade.php b/resources/views/admin/log.blade.php index 4ceef88..8f8a5d5 100644 --- a/resources/views/admin/log.blade.php +++ b/resources/views/admin/log.blade.php @@ -1,4 +1,4 @@ -@extends('admin.main') +@extends('administrator.layout.master') @section('content') @if (auth()->guard('admins')->user()->can('manager system log'))
diff --git a/resources/views/admin/user/login.blade.php b/resources/views/admin/user/login.blade.php index 9de6653..91f2fe6 100644 --- a/resources/views/admin/user/login.blade.php +++ b/resources/views/admin/user/login.blade.php @@ -24,7 +24,7 @@
- {{ setting('setting.company') }} + {{ setting('setting.company') }}
diff --git a/resources/views/administrator/dashboard-2.blade.php b/resources/views/administrator/dashboard-2.blade.php new file mode 100644 index 0000000..867e2a0 --- /dev/null +++ b/resources/views/administrator/dashboard-2.blade.php @@ -0,0 +1,484 @@ +@extends('administrator.layout.master') + +@push('plugin-styles') + +@endpush + +@section('content') +
+
+

Welcome to Dashboard

+
+
+
+ + +
+ + +
+
+ +
+
+
+
+
+
+
+
New Customers
+ +
+
+
+

3,897

+
+

+ +3.3% + +

+
+
+
+
+
+
+
+
+
+
+
+
+
+
New Orders
+ +
+
+
+

35,084

+
+

+ -2.8% + +

+
+
+
+
+
+
+
+
+
+
+
+
+
+
Growth
+ +
+
+
+

89.87%

+
+

+ +2.8% + +

+
+
+
+
+
+
+
+
+
+
+
+
+ +
+
+
+
+
+
Revenue
+ +
+
+
+

Revenue is the income that a business has from its normal + business activities, usually from the sale of goods and services to customers.

+
+
+
+ + + + +
+
+
+
+
+
+
+
+ +
+
+
+
+
+
Monthly sales
+ +
+

Sales are activities related to selling or the number of goods or services sold in a + given time period.

+
+
+
+
+
+
+
+
+
Cloud storage
+ +
+
+
+
+
+ +
8TB
+
+
+
+
+ +
~5TB
+
+
+
+
+ +
+
+
+
+
+ +
+ +
+
+
+
+
Projects
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
#Project NameStart DateDue DateStatusAssign
1NobleUI jQuery01/01/202526/04/2025ReleasedLeonardo Payne
2NobleUI Angular01/01/202526/04/2025ReviewCarl Henson
3NobleUI ReactJs01/05/202510/09/2025PendingJensen Combs
4NobleUI VueJs01/01/202531/11/2025Work in Progress + Amiah Burton
5NobleUI Laravel01/01/202531/12/2025Coming soonYaretzi Mayo
6NobleUI NodeJs01/01/202531/12/2025Coming soonCarl Henson
3NobleUI EmberJs01/05/202510/11/2025PendingJensen Combs
+
+
+
+
+
+@endsection + +@push('plugin-scripts') + + +@endpush + +@push('custom-scripts') + @vite(['resources/js/pages/dashboard.js']) +@endpush \ No newline at end of file diff --git a/resources/views/administrator/dashboard.blade.php b/resources/views/administrator/dashboard.blade.php deleted file mode 100644 index a6b80df..0000000 --- a/resources/views/administrator/dashboard.blade.php +++ /dev/null @@ -1,29 +0,0 @@ -@extends('administrator.layout.master') - -@push('plugin-styles') - - -@endpush - -@section('content') - - -@endsection - @push('plugin-scripts') - - - - - @endpush - -@push('custom-scripts') - - @vite(['resources/js/pages/data-table.js']) -@endpush \ No newline at end of file diff --git a/resources/views/administrator/home.blade.php b/resources/views/administrator/home.blade.php new file mode 100644 index 0000000..8b3d678 --- /dev/null +++ b/resources/views/administrator/home.blade.php @@ -0,0 +1,407 @@ +@extends('administrator.layout.master') + +@push('plugin-styles') + +@endpush + +@section('content') +
+
+

Dashboard

+
+
+
+ + +
+
+
+ + {{-- Info Boxes --}} +
+
+
+ {{-- Pending Orders --}} +
+
+
+
+
Pending Orders
+ +
+
+
+

{{ count($pending_order) }}

+
+
+ +
+
+
+
+
+ + {{-- Invoices Pending --}} +
+
+
+
+
Invoices Pending
+ +
+
+
+

{{ count($invocie_unpaid) }}

+
+
+ +
+
+
+
+
+ + {{-- Tickets Waiting --}} +
+
+
+
+
Tickets Waiting
+ +
+
+
+

{{ count($tickets) }}

+
+
+ +
+
+
+
+
+ + {{-- Users --}} +
+
+
+
+
Users
+ +
+
+
+

{{ $customers }}

+
+
+ +
+
+
+
+
+
+
+
+ +
+ {{-- Column 1 --}} +
+
+ {{-- Billing --}} +
+
+
+
+ + Billing +
+
+
+
+
+
+

@money($total_amount_day)

+ Today +
+
+

@money($total_amount_month)

+ This Month +
+
+

@money($total_amount_year)

+ This Year +
+
+

@money($total_amount)

+ All Time +
+
+
+
+
+ + {{-- New Order --}} +
+
+
+
+ + New Order +
+
+ +
+
+ + {{-- Last Post --}} +
+
+
+
+ + Last Post +
+
+
+
    + @if ($posts->count()) + @foreach ($posts as $item) +
  • +
    + {{ $item->name }} + + + {{ \Carbon\Carbon::parse($item->created_at)->diffForHumans() }} + +
    +
    + + + +
    +
  • + @endforeach + @else +
  • No posts
  • + @endif +
+
+
+
+
+
+ + {{-- Column 2 --}} +
+
+ {{-- Staff Online --}} +
+
+
+
+ + Staff Online +
+
+
+
+ @if (count($staffs) > 0) + @foreach ($staffs as $item) +
+
+ user +
+
+
+
{{ $item->user->firstname . ' ' . $item->user->lastname }}
+ Online +
+ {{ \Carbon\Carbon::parse($item->updated_at)->diffForHumans() }} +
+
+ @endforeach + @else +
No staff online
+ @endif +
+
+
+
+ + {{-- Activity --}} +
+
+
+
+ + Activity +
+
+
+
+ @if (count($logs) > 0) + @foreach ($logs as $item) +
+
+
+ +
+
+
+
+
{{ $item->username }}
+ {{ \Carbon\Carbon::parse($item->created_at)->diffForHumans() }} +
+

{{ $item->description }}

+ {{ $item->client_ip }} +
+
+ @endforeach + @else +
No activity
+ @endif +
+
+
+
+
+
+ + {{-- Column 3 --}} +
+
+ {{-- New VM --}} +
+
+
+
+ + New Virtual Machine +
+
+
+
+ @if (count($vmwares) > 0) + @foreach ($vmwares as $item) +
+
+
+ +
+
+
+
+
{{ $item->customer->firstname . ' ' . $item->customer->lastname }}
+ {{ \Carbon\Carbon::parse($item->created_at)->diffForHumans() }} +
+

{{ $item->ipaddress->ip ?? 'No IP' }}

+ View Details +
+
+ @endforeach + @else +
No data
+ @endif +
+
+
+
+ + {{-- New Hosting --}} +
+
+
+
+ + New Hosting +
+
+
+
+ @if (count($hostings) > 0) + @foreach ($hostings as $item) +
+
+
+ +
+
+
+
+
{{ $item->customer->firstname . ' ' . $item->customer->lastname }}
+ {{ \Carbon\Carbon::parse($item->created_at)->diffForHumans() }} +
+

+ @isset($item->ipaddress->ip) + {{ $item->ipaddress->ip }} + @else + No IP + @endisset +

+ View Details +
+
+ @endforeach + @else +
No data
+ @endif +
+
+
+
+
+
+
+@endsection + +@push('plugin-scripts') + + +@endpush + +@push('custom-scripts') + @vite(['resources/js/pages/dashboard.js']) +@endpush diff --git a/resources/views/administrator/layout/master.blade.php b/resources/views/administrator/layout/master.blade.php index 7cf4119..d7cfa9a 100644 --- a/resources/views/administrator/layout/master.blade.php +++ b/resources/views/administrator/layout/master.blade.php @@ -6,19 +6,18 @@ + content="Thế Giới Số cung cấp dịch vụ thiết kế website, phát triển ứng dụng, phân tích dữ liệu, triển khai & quản lý server, VPS, dedicated, email hosting và hệ thống portal quản lý dịch vụ cho doanh nghiệp."> - + + content="thế giới số, thiết kế website, phát triển ứng dụng, phân tích dữ liệu, vps, hosting, dedicated server, email hosting, quản trị server, portal dịch vụ, laravel, nextjs, cloud, hạ tầng CNTT"> - DevroTech Admin | Service Management Portal + Thế Giới Số Admin | Service Management Portal @vite(['resources/js/pages/color-modes.js']) - + + + + + + + + + + + + + + + + + + + @stack('plugin-styles') + + + @vite(['resources/sass/app.scss', 'resources/css/custom.css']) + + + + + @stack('style') + + + + + + +
+
+
+
+ @yield('content') +
+
+
+ + + @vite(['resources/js/app-vite.js']) + + + + + @stack('plugin-scripts') + + + + @vite(['resources/js/pages/template.js']) + + + @include('administrator.layout.partials.toast') + + @stack('custom-scripts') + + + \ No newline at end of file diff --git a/resources/views/administrator/layout/partials/footer.blade.php b/resources/views/administrator/layout/partials/footer.blade.php index 2a8c6d0..67c1c19 100644 --- a/resources/views/administrator/layout/partials/footer.blade.php +++ b/resources/views/administrator/layout/partials/footer.blade.php @@ -1,3 +1,4 @@ \ No newline at end of file diff --git a/resources/views/administrator/layout/partials/sidebar.blade.php b/resources/views/administrator/layout/partials/sidebar.blade.php index 78f7185..2aa0911 100644 --- a/resources/views/administrator/layout/partials/sidebar.blade.php +++ b/resources/views/administrator/layout/partials/sidebar.blade.php @@ -1,77 +1,70 @@
+ + + \ No newline at end of file diff --git a/resources/views/administrator/layout/partials/toast.blade.php b/resources/views/administrator/layout/partials/toast.blade.php new file mode 100644 index 0000000..d85f8ae --- /dev/null +++ b/resources/views/administrator/layout/partials/toast.blade.php @@ -0,0 +1,60 @@ + + + + + + diff --git a/resources/views/administrator/log.blade.php b/resources/views/administrator/log.blade.php new file mode 100644 index 0000000..867e2a0 --- /dev/null +++ b/resources/views/administrator/log.blade.php @@ -0,0 +1,484 @@ +@extends('administrator.layout.master') + +@push('plugin-styles') + +@endpush + +@section('content') +
+
+

Welcome to Dashboard

+
+
+
+ + +
+ + +
+
+ +
+
+
+
+
+
+
+
New Customers
+ +
+
+
+

3,897

+
+

+ +3.3% + +

+
+
+
+
+
+
+
+
+
+
+
+
+
+
New Orders
+ +
+
+
+

35,084

+
+

+ -2.8% + +

+
+
+
+
+
+
+
+
+
+
+
+
+
+
Growth
+ +
+
+
+

89.87%

+
+

+ +2.8% + +

+
+
+
+
+
+
+
+
+
+
+
+
+ +
+
+
+
+
+
Revenue
+ +
+
+
+

Revenue is the income that a business has from its normal + business activities, usually from the sale of goods and services to customers.

+
+
+
+ + + + +
+
+
+
+
+
+
+
+ +
+
+
+
+
+
Monthly sales
+ +
+

Sales are activities related to selling or the number of goods or services sold in a + given time period.

+
+
+
+
+
+
+
+
+
Cloud storage
+ +
+
+
+
+
+ +
8TB
+
+
+
+
+ +
~5TB
+
+
+
+
+ +
+
+
+
+
+ +
+ +
+
+
+
+
Projects
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
#Project NameStart DateDue DateStatusAssign
1NobleUI jQuery01/01/202526/04/2025ReleasedLeonardo Payne
2NobleUI Angular01/01/202526/04/2025ReviewCarl Henson
3NobleUI ReactJs01/05/202510/09/2025PendingJensen Combs
4NobleUI VueJs01/01/202531/11/2025Work in Progress + Amiah Burton
5NobleUI Laravel01/01/202531/12/2025Coming soonYaretzi Mayo
6NobleUI NodeJs01/01/202531/12/2025Coming soonCarl Henson
3NobleUI EmberJs01/05/202510/11/2025PendingJensen Combs
+
+
+
+
+
+@endsection + +@push('plugin-scripts') + + +@endpush + +@push('custom-scripts') + @vite(['resources/js/pages/dashboard.js']) +@endpush \ No newline at end of file diff --git a/resources/views/administrator/pages/addon/add.blade.php b/resources/views/administrator/pages/addon/add.blade.php new file mode 100644 index 0000000..d1d3d80 --- /dev/null +++ b/resources/views/administrator/pages/addon/add.blade.php @@ -0,0 +1,81 @@ +@extends("admin.main") +@section("content") +
+
+ @csrf +
+
+
+ {{--Product name--}} +
+ +
+ +
+
+ + {{--Price--}} +
+ +
+ +
+
+ + {{--Price Sales--}} +
+ +
+ +
+
+ + {{--Renewal--}} +
+ +
+ +
+
+ + {{--Transfer--}} +
+ +
+ +
+
+ + + {{--Transfer--}} +
+ +
+ +
+
+ {{--Product Type--}} +
+ +
+ +
+
+
+
+
+ +
+
+@endsection diff --git a/resources/views/administrator/pages/addon/edit.blade.php b/resources/views/administrator/pages/addon/edit.blade.php new file mode 100644 index 0000000..c1e2a20 --- /dev/null +++ b/resources/views/administrator/pages/addon/edit.blade.php @@ -0,0 +1,82 @@ +@extends("admin.main") +@section("content") +
+
+ @csrf + @method('put') +
+
+
+ {{--Product name--}} +
+ +
+ +
+
+ + {{--Price--}} +
+ +
+ +
+
+ + {{--Price Sales--}} +
+ +
+ +
+
+ + {{--Renewal--}} +
+ +
+ +
+
+ + {{--Transfer--}} +
+ +
+ +
+
+ + + {{--Transfer--}} +
+ +
+ +
+
+ {{--Product Type--}} +
+ +
+ +
+
+
+
+
+ +
+
+@endsection diff --git a/resources/views/administrator/pages/addon/index.blade.php b/resources/views/administrator/pages/addon/index.blade.php new file mode 100644 index 0000000..6fb78f1 --- /dev/null +++ b/resources/views/administrator/pages/addon/index.blade.php @@ -0,0 +1,59 @@ +@extends("admin.main") +@section("content") +
+ +
+ + + + + + + + + + + + @if(count($addOns) > 0) + @foreach($addOns->all() as $item) + + + + + + + + @endforeach + @endif + +
NamePriceType
+ {{ $item->name }} + + {{ number_format($item->price,0,',','.') }} vnđ + + {{ $item->Type->name }} + + + + + +
+ @csrf + @method('delete') + +
+
+
+ +
+@endsection diff --git a/resources/views/administrator/pages/auth/login.blade.php b/resources/views/administrator/pages/auth/login.blade.php index 5de9b2e..a9f870e 100644 --- a/resources/views/administrator/pages/auth/login.blade.php +++ b/resources/views/administrator/pages/auth/login.blade.php @@ -1,47 +1,48 @@ -@extends('layout.master2') +@extends('administrator.layout.master2') + + +@push('plugin-styles') + +@endpush @section('content') -
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+ {{ setting('setting.company') }} +
-
-
-
-
- -
Welcome back! Log in to your account.
- -
- - + @csrf +
+ + +
+
+ + +
+
+ +
+
-
- -
-
- -
-
- Login -
-

Don't have an account? Sign up

- -
-
-
-
-
-
-@endsection \ No newline at end of file +
+
+@endsection +@push('plugin-scripts') + +@endpush + +@push('custom-scripts') + @vite(['resources/js/pages/sweet-alert.js']) +@endpush \ No newline at end of file diff --git a/resources/views/administrator/pages/block/Group.blade.php b/resources/views/administrator/pages/block/Group.blade.php new file mode 100644 index 0000000..eaad5b7 --- /dev/null +++ b/resources/views/administrator/pages/block/Group.blade.php @@ -0,0 +1,10 @@ + + Add New Group +
+ @csrf + + +
+ File Import Demo diff --git a/resources/views/administrator/pages/block/ModuleDNS.blade.php b/resources/views/administrator/pages/block/ModuleDNS.blade.php new file mode 100644 index 0000000..0fec4d0 --- /dev/null +++ b/resources/views/administrator/pages/block/ModuleDNS.blade.php @@ -0,0 +1,9 @@ + Add New Server +
+ @csrf + + +
+ File Import Demo diff --git a/resources/views/administrator/pages/block/ModuleHosting.blade.php b/resources/views/administrator/pages/block/ModuleHosting.blade.php new file mode 100644 index 0000000..7d63c1e --- /dev/null +++ b/resources/views/administrator/pages/block/ModuleHosting.blade.php @@ -0,0 +1,9 @@ + Add New Server +
+ @csrf + + +
+ File Import Demo diff --git a/resources/views/administrator/pages/block/ModuleIPPool.blade.php b/resources/views/administrator/pages/block/ModuleIPPool.blade.php new file mode 100644 index 0000000..f3e80ad --- /dev/null +++ b/resources/views/administrator/pages/block/ModuleIPPool.blade.php @@ -0,0 +1,9 @@ + Add New IP Pool +
+ @csrf + + +
+ File Import Demo diff --git a/resources/views/administrator/pages/block/ModuleVCenter.blade.php b/resources/views/administrator/pages/block/ModuleVCenter.blade.php new file mode 100644 index 0000000..e3979d6 --- /dev/null +++ b/resources/views/administrator/pages/block/ModuleVCenter.blade.php @@ -0,0 +1,9 @@ + Add New Server +
+ @csrf + + +
+ File Import Demo diff --git a/resources/views/administrator/pages/block/Sync/All.blade.php b/resources/views/administrator/pages/block/Sync/All.blade.php new file mode 100644 index 0000000..d0e61e5 --- /dev/null +++ b/resources/views/administrator/pages/block/Sync/All.blade.php @@ -0,0 +1 @@ + Sync All Package diff --git a/resources/views/administrator/pages/block/Sync/Datacenter.blade.php b/resources/views/administrator/pages/block/Sync/Datacenter.blade.php new file mode 100644 index 0000000..9ddca44 --- /dev/null +++ b/resources/views/administrator/pages/block/Sync/Datacenter.blade.php @@ -0,0 +1,3 @@ + Add Datacenter +@include("admin.block.Sync.All") + Sync Datacenter diff --git a/resources/views/administrator/pages/block/Sync/Datastore.blade.php b/resources/views/administrator/pages/block/Sync/Datastore.blade.php new file mode 100644 index 0000000..9f253d4 --- /dev/null +++ b/resources/views/administrator/pages/block/Sync/Datastore.blade.php @@ -0,0 +1,3 @@ + Add Datastore +@include("admin.block.Sync.All") + Sync Datastore diff --git a/resources/views/administrator/pages/block/Sync/Folder.blade.php b/resources/views/administrator/pages/block/Sync/Folder.blade.php new file mode 100644 index 0000000..0a163de --- /dev/null +++ b/resources/views/administrator/pages/block/Sync/Folder.blade.php @@ -0,0 +1,3 @@ + Add Folder +@include("admin.block.Sync.All") + Sync Folder diff --git a/resources/views/administrator/pages/block/Sync/Host.blade.php b/resources/views/administrator/pages/block/Sync/Host.blade.php new file mode 100644 index 0000000..54ce5a7 --- /dev/null +++ b/resources/views/administrator/pages/block/Sync/Host.blade.php @@ -0,0 +1,3 @@ + Add Host +@include("admin.block.Sync.All") + Sync Host diff --git a/resources/views/administrator/pages/block/Sync/Network.blade.php b/resources/views/administrator/pages/block/Sync/Network.blade.php new file mode 100644 index 0000000..44fef41 --- /dev/null +++ b/resources/views/administrator/pages/block/Sync/Network.blade.php @@ -0,0 +1,3 @@ + Add Network +@include("admin.block.Sync.All") + Sync Network diff --git a/resources/views/administrator/pages/block/btn.blade.php b/resources/views/administrator/pages/block/btn.blade.php new file mode 100644 index 0000000..58960b1 --- /dev/null +++ b/resources/views/administrator/pages/block/btn.blade.php @@ -0,0 +1,2 @@ + Add New Product Group + Add New Product diff --git a/resources/views/administrator/pages/block/import.blade.php b/resources/views/administrator/pages/block/import.blade.php new file mode 100644 index 0000000..929da64 --- /dev/null +++ b/resources/views/administrator/pages/block/import.blade.php @@ -0,0 +1,8 @@ + Add New Product +
+ @csrf + + +
diff --git a/resources/views/administrator/pages/block/nav.blade.php b/resources/views/administrator/pages/block/nav.blade.php new file mode 100644 index 0000000..aaf7c0d --- /dev/null +++ b/resources/views/administrator/pages/block/nav.blade.php @@ -0,0 +1,30 @@ + diff --git a/resources/views/administrator/pages/component/addon.blade.php b/resources/views/administrator/pages/component/addon.blade.php new file mode 100644 index 0000000..0762904 --- /dev/null +++ b/resources/views/administrator/pages/component/addon.blade.php @@ -0,0 +1,17 @@ +@if($addon) + @foreach($addon as $item) +
+ +
+ +
+
+ @endforeach +@endif diff --git a/resources/views/administrator/pages/component/media.blade.php b/resources/views/administrator/pages/component/media.blade.php new file mode 100644 index 0000000..6ebdf2b --- /dev/null +++ b/resources/views/administrator/pages/component/media.blade.php @@ -0,0 +1,11 @@ +@if(count($media)) + @foreach($media as $item) +
+
+ + + +
+
+ @endforeach +@endif diff --git a/resources/views/administrator/pages/coupon/add.blade.php b/resources/views/administrator/pages/coupon/add.blade.php new file mode 100644 index 0000000..b251cef --- /dev/null +++ b/resources/views/administrator/pages/coupon/add.blade.php @@ -0,0 +1,109 @@ +@extends("admin.main") +@section("content") + @if(auth()->guard('admins')->user()->can("add coupon")) +
+
+ @csrf +
+
+
+ + {{--CODE name--}} +
+ +
+
+ +
+
+ +
+
+
+ + {{--Start Day--}} +
+ +
+ +
+
+ + {{--End Day--}} +
+ +
+ +
+
+ + {{--Limit Coupon--}} +
+ +
+ +
+
+ + {{--Type Counpon--}} +
+ +
+ +
+
+ {{--Value Counpon--}} +
+ +
+ +
+
+ + {{--Status--}} +
+ +
+ +
+
+
+
+
+ +
+
+ + @else +
+
Access Denied - You are not assigned to any Coupon management department
+
+ @endif + @push('style') + + @endpush + @push('scripts') + + + @endpush +@endsection diff --git a/resources/views/administrator/pages/coupon/edit.blade.php b/resources/views/administrator/pages/coupon/edit.blade.php new file mode 100644 index 0000000..a740464 --- /dev/null +++ b/resources/views/administrator/pages/coupon/edit.blade.php @@ -0,0 +1,110 @@ +@extends("admin.main") +@section("content") + @if(auth()->guard('admins')->user()->can("add coupon")) +
+
+ @csrf + @method('put') +
+
+
+ + {{--CODE name--}} +
+ +
+
+ +
+
+ +
+
+
+ + {{--Start Day--}} +
+ +
+ +
+
+ + {{--End Day--}} +
+ +
+ +
+
+ + {{--Limit Coupon--}} +
+ +
+ +
+
+ + {{--Type Counpon--}} +
+ +
+ +
+
+ {{--Value Counpon--}} +
+ +
+ +
+
+ + {{--Status--}} +
+ +
+ +
+
+
+
+
+ +
+
+ + @else +
+
Access Denied - You are not assigned to any Coupon management department
+
+ @endif + @push('style') + + @endpush + @push('scripts') + + + @endpush +@endsection diff --git a/resources/views/administrator/pages/coupon/index.blade.php b/resources/views/administrator/pages/coupon/index.blade.php new file mode 100644 index 0000000..e9ec5f9 --- /dev/null +++ b/resources/views/administrator/pages/coupon/index.blade.php @@ -0,0 +1,90 @@ +@php use App\Http\Helpers\Helper; @endphp +@extends("admin.main") +@section("content") + @if(auth()->guard('admins')->user()->can('manager coupon')) +
+ +
+ + + + + + + + + + + + + + + + + @if(count($coupons) > 0) + @foreach($coupons->all() as $item) + + + + + + + + + + + + @endforeach + @endif + +
+ + CODETypeValueUsesStart DateExpiry Date
+ + + {{ $item->code }} + + {{ (int) $item->type === 1 ? "Percentage" : "Fix Amount" }} + + {{ $item->discount }} + + {{ $item->use }}/{{ $item->count }} + + {{ \Illuminate\Support\Carbon::parse($item->start)->format('d/m/Y') }} + + {{ \Illuminate\Support\Carbon::parse($item->end)->format('d/m/Y') }} + + + + + + @if(auth()->guard('admins')->user()->can("delete coupon")) +
+ @csrf + @method('delete') + +
+ @endif +
+
+ +
+ @else +
+
Access Denied - You are not assigned to any Coupon + management department
+
+ @endif +@endsection diff --git a/resources/views/administrator/pages/customer/action/addon.blade.php b/resources/views/administrator/pages/customer/action/addon.blade.php new file mode 100644 index 0000000..6c0dc9c --- /dev/null +++ b/resources/views/administrator/pages/customer/action/addon.blade.php @@ -0,0 +1,110 @@ + +@push('scripts') + +@endpush diff --git a/resources/views/administrator/pages/customer/action/selector.blade.php b/resources/views/administrator/pages/customer/action/selector.blade.php new file mode 100644 index 0000000..1e67234 --- /dev/null +++ b/resources/views/administrator/pages/customer/action/selector.blade.php @@ -0,0 +1,33 @@ +
+
+ +
+ + @if($product) + @switch($type) + @case(3) + Server->name.":8880" : "" }}" + target="_blank" + class="btn bg-gradient-success">Login with Panel + @break + @case(4) + + @break + @endswitch + @endif +
diff --git a/resources/views/administrator/pages/customer/add.blade.php b/resources/views/administrator/pages/customer/add.blade.php new file mode 100644 index 0000000..0e002a4 --- /dev/null +++ b/resources/views/administrator/pages/customer/add.blade.php @@ -0,0 +1,123 @@ +@extends("admin.main") +@section("content") + @if(auth()->guard('admins')->user()->can("add customer")) +
+
+ @csrf +
+
+
+ {{--First name--}} +
+ +
+ +
+
+ {{--Last name--}} +
+ +
+ +
+
+ {{--Company--}} +
+ +
+ +
+
+ {{--Email--}} +
+ +
+ +
+
+ {{--Phone--}} +
+ +
+ +
+
+ {{--Password--}} +
+ +
+ +
+
+
+
+ {{--Address--}} +
+ +
+ +
+
+ {{--City--}} +
+ +
+ +
+
+ {{--State--}} +
+ +
+ +
+
+ {{--Postcode--}} +
+ +
+ +
+
+ {{--Country--}} +
+ +
+ +
+
+ {{--Password--}} +
+ +
+ + Send Client Marketing Emails +
+
+
+
+
+ +
+ +
+ @else +
+
Access Denied - You are not assigned to any Customer + management department
+
+ @endif +@endsection diff --git a/resources/views/administrator/pages/customer/addPay.blade.php b/resources/views/administrator/pages/customer/addPay.blade.php new file mode 100644 index 0000000..9c33f68 --- /dev/null +++ b/resources/views/administrator/pages/customer/addPay.blade.php @@ -0,0 +1,69 @@ +@extends("admin.main") +@section("content") + @if(auth()->guard('admins')->user()->can("edit customer")) +
+
+ @include("admin.block.nav") +
+
+
+
+
+ @csrf + @method('put') +
+
+
+

Add Amount

+
+ +
+ +
+ +
+
+
+
+
+ +
+
+
+
+ @csrf + @method('put') +
+
+
+

Remove Amount

+
+ +
+ +
+ +
+
+
+
+
+ +
+
+
+
+
+ @else +
+
Access Denied - You are not assigned to any Customer + management department
+
+ @endif +@endsection diff --git a/resources/views/administrator/pages/customer/console.blade.php b/resources/views/administrator/pages/customer/console.blade.php new file mode 100644 index 0000000..b4730bd --- /dev/null +++ b/resources/views/administrator/pages/customer/console.blade.php @@ -0,0 +1,273 @@ +@extends('admin.main') + +@push('style') + + + +@endpush + +@section('content') +
+
+
+ +
+
+

VMware Console

+ +
+
+

VM: {{ $product->name ?? 'VM Console' }}

+
+
+ + +
+
+
Điều khiển Console
+
+
+
+
+ + +
+
+ +
+ + + +
+
+
+
+
+ + +
+
+ +
+
+ +
+
+
+ + +

{{ __('Đang kết nối đến vCenter') }}

+

{{ __('Khởi tạo kết nối Console') }} +

+ + +
+ + + +
+ + +
+ {{ __('Đang thiết lập phiên làm việc...') }} +
+
+
+ + +
+
+
+
+
+
+
+ + + + + + + +@endsection diff --git a/resources/views/administrator/pages/customer/domain.blade.php b/resources/views/administrator/pages/customer/domain.blade.php new file mode 100644 index 0000000..2af4728 --- /dev/null +++ b/resources/views/administrator/pages/customer/domain.blade.php @@ -0,0 +1,20 @@ +@extends("admin.main") +@section("content") + @if(auth()->guard('admins')->user()->can("edit customer")) +
+
+ @include("admin.block.nav") +
+
+ +
+
+ @else +
+
Access Denied - You are not assigned to any Customer + management department
+
+ @endif +@endsection diff --git a/resources/views/administrator/pages/customer/form/hosting.blade.php b/resources/views/administrator/pages/customer/form/hosting.blade.php new file mode 100644 index 0000000..ac78115 --- /dev/null +++ b/resources/views/administrator/pages/customer/form/hosting.blade.php @@ -0,0 +1,120 @@ +@php use Illuminate\Support\Carbon; @endphp +@php use App\Http\Helpers\Helper; @endphp +
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Order # + {{ $product->Order->id }} - + View Order + Registration Date + {!! Carbon::parse($product->Order->date)->format('d-m-Y') !!} +
Product/Service + @isset($productName->name) + {{ $productName->name }} + @endisset + Quantity1
Server + + @if ($product->server) + {{ $product->server->name }} + @else + Not Found + @endif + First Payment Amount + +
Domain + + Recurring Amount + +
Billing Cycle + {!! $invoice_item ? $invoice_item->getBilling() : 'N/A' !!} + Next Due Date + +
Payment Method + {{ $product->Order->Payment->name }} + Status + {!! $product->getStatus() !!} +
Username + + Password + +
+
+
+
+
+ @csrf + + + + + + +
+ +
+
+ +
+
+ +
+
+ +
+
+ +
diff --git a/resources/views/administrator/pages/customer/form/scripts/vps.blade.php b/resources/views/administrator/pages/customer/form/scripts/vps.blade.php new file mode 100644 index 0000000..a87969f --- /dev/null +++ b/resources/views/administrator/pages/customer/form/scripts/vps.blade.php @@ -0,0 +1,569 @@ + diff --git a/resources/views/administrator/pages/customer/form/vps.blade.php b/resources/views/administrator/pages/customer/form/vps.blade.php new file mode 100644 index 0000000..5a4dba4 --- /dev/null +++ b/resources/views/administrator/pages/customer/form/vps.blade.php @@ -0,0 +1,431 @@ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Order # + {{ $product->order->id }} - + View Order + Registration Date + @isset($product->order->date) + @time($product->order->date) + @endisset +
Product/Service + @isset($productName->name) + {{ $productName->name }} + @endisset + Quantity1
Server + @isset($product->ipaddress->host->datacenter->vCenter->host) + {{ $product->ipaddress->host->datacenter->vCenter->host }} + @endisset + First Payment Amount + +
IP Address + @isset($product->ipaddress->ip) + {{ $product->ipaddress->ip }} + @endisset + Recurring Amount + +
Billing Cycle + {{-- {{ Helpers::BillingCycle($product->getInvoiceItem()->billing) }} --}} + {!! $invoice_item ? $invoice_item->getBilling() : 'N/A' !!} + Next Due Date + +
Payment Method + @isset($product->order->payment->name) + {{ $product->order->payment->name }} + @endisset + Status + +
Username + + Password + +
+
+ + +
+
+
Thông tin máy ảo
+
+
+
+
+ + + + + + + + + + + + + +
Tên VM:{{ $product->name ?? 'Chưa đặt tên' }}
Trạng thái: + @if ($product->status == 1) + Đang chạy + @elseif($product->status == 2) + Tạm dừng + @elseif($product->status == 3) + Đang khởi tạo + @elseif($product->status == 0) + Đã dừng + @elseif($product->status == 4) + Hết hạn + @else + Không xác định + @endif +
Hostname:{{ $product->hostname ?? 'N/A' }}
+
+
+ + + + + + + + + + + + + + + + + +
IP Address:{{ $product->ipaddress->ip ?? 'N/A' }}
Username:{{ $product->user ?? 'N/A' }}
Hệ điều hành: + @if (isset($product->os) && isset($product->os->osGroup)) + {{ $product->os->osGroup->name ?? 'Unknown' }} {{ $product->os->version ?? '' }} + @else + N/A + @endif +
vCenter: + @if ( + isset($product->ipaddress) && + isset($product->ipaddress->host) && + isset($product->ipaddress->host->datacenter) && + isset($product->ipaddress->host->datacenter->vCenter) +) + {{ $product->ipaddress->host->datacenter->vCenter->host ?? 'N/A' }} + @else + N/A + @endif +
+
+
+ + + @if (isset($product->os) && isset($product->os->osGroup) && $product->os->osGroup->name == 'Windows') +
+
Thông tin đăng nhập Windows
+
+
+ Username: administrator +
+
+ Password: TGS@123 + +
+
+ * Đổi mật khẩu sau khi đăng nhập lần đầu để bảo mật tốt hơn. +
+ @endif +
+
+ + +
+
+
Điều khiển VM
+
+
+
+ +
+ +
+ + +
+ +
+ + +
+ +
+ + +
+ +
+ + +
+ +
+ + + + + +
+ +
+
+ + +
+
Thông tin chi tiết:
+
+
+ Trạng thái VM: + @if ($product->status == 1) + Đang chạy + @elseif($product->status == 2) + Tạm dừng + @elseif($product->status == 3) + Đang khởi tạo + @elseif($product->status == 0) + Đã dừng + @elseif($product->status == 4) + Hết hạn + @endif +
+
+
+
+ IP Address: + {{ $product->ipaddress->ip ?? 'N/A' }} +
+
+ Ngày tạo: + {{ $product->order->date ? \Carbon\Carbon::parse($product->order->date)->format('d/m/Y H:i') : 'N/A' }} +
+
+
+ + +
+ + Lưu ý:
+ • Các thao tác có thể mất vài giây để hoàn thành
+ • VM sẽ được khởi động lại sau khi thay đổi cấu hình
+ • Vui lòng đợi thao tác hoàn thành trước khi thực hiện tiếp
+ • Console sẽ mở trong tab mới +
+
+
+
+ +
+
+ @csrf + @method('put') + + + + + + + + {{-- Vmware Name --}} +
+ +
+ +
+
+ {{-- Vmware Hostname --}} +
+ +
+ +
+
+ {{-- Vmware Port --}} +
+ +
+ +
+
+ {{-- Username --}} +
+ +
+ +
+
+ {{-- Password --}} +
+ +
+ +
+
+ + {{-- vmware_id --}} +
+ +
+ +
+
+ + {{-- vCenter --}} + + + {{-- Datacenter --}} + + + {{-- Host --}} + + + {{-- Network --}} + + + {{-- IP Address --}} + + + {{-- OS Group --}} + + + {{-- OS Version --}} + +
+ +
+ + @include('admin.customer.action.addon') +
+ +@include('admin.customer.form.scripts.vps') diff --git a/resources/views/administrator/pages/customer/index.blade.php b/resources/views/administrator/pages/customer/index.blade.php new file mode 100644 index 0000000..0844a2b --- /dev/null +++ b/resources/views/administrator/pages/customer/index.blade.php @@ -0,0 +1,115 @@ +@extends("admin.main") +@section("content") + @if(auth()->guard('admins')->user()->can("manager customer")) +
+
+
+
+
+
+ + +
+
+
+
+ + +
+
+
+
+ + +
+
+
+
+ + +
+
+
+ + +
+
+
+ {{ $customers->count() }} Records Found +
+ +
+ + + + + + + + + + + + + + + @if($customers->count()) + @foreach($customers->all() as $item) + + + + + + + + + + + @endforeach + @endif + +
+ + First NameLast NameCompanyEmail AddressServicesCreatedStatus
+ + + $item->id]) }}" + title="View Profile"> {{ $item->firstname }} + + {{ $item->lastname }} + + {{ $item->company }} + + {{ $item->email }} + + {!! Helpers::get_count_service($item) !!} + + @time($item->created_at) + + {!! $item->getStatus() !!} +
+
+ +
+ @else +
+
Access Denied - You are not assigned to any Customer + management department
+
+ @endif +@endsection diff --git a/resources/views/administrator/pages/customer/info.blade.php b/resources/views/administrator/pages/customer/info.blade.php new file mode 100644 index 0000000..f919cc1 --- /dev/null +++ b/resources/views/administrator/pages/customer/info.blade.php @@ -0,0 +1,310 @@ +@extends("admin.main") +@section("content") +@if(auth()->guard('admins')->user()->can("edit customer")) +
+
+ @include("admin.block.nav") +
+
+
+ +
+
+

Clients Information

+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
First Name{{ $customer->firstname }}
Last Name{{ $customer->lastname }}
Company{{ $customer->company }}
Email{{ $customer->email }}
Address{{ $customer->address }}
City{{ $customer->city }}
Country{{ $customer->country }}
Phone Number{{ $customer->phone }}
+
+ + +
+
+ +
+
+

Invoices/Billing

+ +
+ + + + + + + + + + + + + + + + +
Invoice Paid{{ $customer->invoices_status_count_1 }} + (@money($customer->invoices_status_1) + đ) +
Invoice UnPaid{{ $customer->invoices_status_count_0 }} + (@money($customer->invoices_status_0) + đ) +
Total@money($customer->invoices_status_0 + $customer->invoices_status_1) đ
+
+
+
+

Recent Emails

+
+ @if($customer->mail->count()) + + + @foreach($customer->mail->take(4)->all() as $item) + + + + @endforeach + +
+ {{ $item->created_at }} + - {{ $item->subject }} +
+ @else +

No recent Email

+ @endif +
+
+
+ +
+ +
+

Products/Services

+ +
+ + + + + + + + + + + + + + + + + + + +
VPS/Server{{ $customer->vps_count}}
Hosting{{ $customer->hosting_count }}
Domain{{ $customer->domain_count }}
Support Tickets{{ $customer->ticket_count }}
+
+
+ +
+

Files

+
+ @if($customer->file->count()) + + + @foreach($customer->file->all() as $item) + + + + + @endforeach + +
+ {{ $item->filename }} + + +
+ @else +

No files uploaded

+ @endif +
+
+ + Add File Add File + +
+
+
+
+ + +
+
+ + +
+
+
+
+
+
+ +
+ +
+@else +
+
Access Denied - You are not assigned to any Customer + management department
+
+@endif +@endsection +@push('scripts') + +@endpush diff --git a/resources/views/administrator/pages/customer/invoice.blade.php b/resources/views/administrator/pages/customer/invoice.blade.php new file mode 100644 index 0000000..1d094b7 --- /dev/null +++ b/resources/views/administrator/pages/customer/invoice.blade.php @@ -0,0 +1,80 @@ +@extends('admin.main') +@section('content') + @if (auth()->guard('admins')->user()->can('edit customer')) +
+
+ @include('admin.block.nav') +
+
+ + + + + + + + + + + + + + + @if (count($invoices) > 0) + @foreach ($invoices as $item) + + + + + + + + + + + @endforeach + @else + + + + @endif + + + {!! $invoices->withQueryString()->links() !!} + +
+ + Invoice #Invoice DateDue DateDate PaidTotalPayment MethodStatus
+ + + {{ $item->id }} + + @time($item->date) + + @time($item->due_date) + + @if ($item->status === 1) + @time($item->date_paid) + @endif + + + @money($item->total) đ + + {{ $item->payment->name ?? 'VN Pay' }} + + {!! $item->getStatus() !!} +
+ No Records Found +
+ +
+
+ @else +
+
Access Denied - You are not assigned to any Customer + management department
+
+ @endif +@endsection diff --git a/resources/views/administrator/pages/customer/log.blade.php b/resources/views/administrator/pages/customer/log.blade.php new file mode 100644 index 0000000..1840f08 --- /dev/null +++ b/resources/views/administrator/pages/customer/log.blade.php @@ -0,0 +1,56 @@ +@extends('admin.main') +@section('content') + @if (auth()->guard('admins')->user()->can('edit customer')) +
+
+ @include('admin.block.nav') +
+
+ + + + + + + + + + + @if (count($logs) > 0) + @foreach ($logs as $item) + + + + + + + @endforeach + @else + + + + @endif + + + {!! $logs->withQueryString()->links() !!} + +
DateDescriptionUsernameClient IP
+ {{ $item->created_at }} + + {{ $item->description }} + + {{ $item->username }} + + {{ $item->client_ip }} +
+ No Records Found +
+
+
+ @else +
+
Access Denied - You are not assigned to any Customer + management department
+
+ @endif +@endsection diff --git a/resources/views/administrator/pages/customer/mail.blade.php b/resources/views/administrator/pages/customer/mail.blade.php new file mode 100644 index 0000000..2febd23 --- /dev/null +++ b/resources/views/administrator/pages/customer/mail.blade.php @@ -0,0 +1,72 @@ +@extends('admin.main') +@section('content') + @if (auth()->guard('admins')->user()->can('edit customer')) +
+
+ @include('admin.block.nav') +
+
+ + + + + + + + + + + + @if (count($emails) > 0) + @foreach ($emails as $item) + + + + + + + + @endforeach + @else + + + + @endif + + + {!! $emails->withQueryString()->links() !!} + +
+ + DateSubject
+ + + {{ $item->created_at }} + + {{ $item->subject }} + + + + + +
+ @csrf + @method('put') + + +
+
+ No Records Found +
+ +
+
+ @else +
+
Access Denied - You are not assigned to any Customer + management department
+
+ @endif +@endsection diff --git a/resources/views/administrator/pages/customer/product.blade.php b/resources/views/administrator/pages/customer/product.blade.php new file mode 100644 index 0000000..02e6c0c --- /dev/null +++ b/resources/views/administrator/pages/customer/product.blade.php @@ -0,0 +1,57 @@ +@extends("admin.main") +@section("content") +@if(auth()->guard('admins')->user()->can("edit customer")) + +
+
+ @include("admin.block.nav") +
+
+ @if($allService->count()) + @include("admin.customer.action.selector") + @if((int) $type === 3) + @include("admin.customer.form.hosting") + @endif + @if((int) $type === 4) + @include("admin.customer.form.vps") + @endif + @else + + @endif + +
+
+@else +
+
Access Denied - You are not assigned to any Customer + management department
+
+@endif +@endsection +@push('style') + +@endpush +@push('scripts') + + + +@endpush diff --git a/resources/views/administrator/pages/customer/profile.blade.php b/resources/views/administrator/pages/customer/profile.blade.php new file mode 100644 index 0000000..0a2e255 --- /dev/null +++ b/resources/views/administrator/pages/customer/profile.blade.php @@ -0,0 +1,145 @@ +@extends("admin.main") +@section("content") + @if(auth()->guard('admins')->user()->can("edit customer")) + +
+
+ @include("admin.block.nav") +
+
+ @csrf +
+
+
+ {{--First name--}} +
+ +
+ +
+
+ {{--Last name--}} +
+ +
+ +
+
+ {{--Company--}} +
+ +
+ +
+
+ {{--Email--}} +
+ +
+ +
+
+ {{--Phone--}} +
+ +
+ +
+
+ {{--Password--}} +
+ +
+ +
+
+
+ +
+ email_marketing === 1)> + Send Client Marketing Emails +
+
+
+
+ {{--Address--}} +
+ +
+ +
+
+ {{--City--}} +
+ +
+ +
+
+ {{--State--}} +
+ +
+ +
+
+ {{--Postcode--}} +
+ +
+ +
+
+ {{--Country--}} +
+ +
+ +
+
+ {{--Limit Snapshot--}} +
+ +
+ +
+
+ {{--Status--}} +
+ +
+ +
+
+
+
+
+ +
+ +
+ @else +
+
Access Denied - You are not assigned to any Customer + management department
+
+ @endif +@endsection diff --git a/resources/views/administrator/pages/customer/transaction.blade.php b/resources/views/administrator/pages/customer/transaction.blade.php new file mode 100644 index 0000000..d1245c6 --- /dev/null +++ b/resources/views/administrator/pages/customer/transaction.blade.php @@ -0,0 +1,53 @@ +@extends('admin.main') +@section('content') + @if (auth()->guard('admins')->user()->can('edit customer')) +
+
+ @include('admin.block.nav') +
+
+ + + + + + + + + + @if (count($transactions)) + @foreach ($transactions as $item) + + + + + + @endforeach + @else + + + + @endif + + + {!! $transactions->withQueryString()->links() !!} + +
Transaction IDAmountDate
+ {{ $item->trans }} + + {{ number_format($item->amount, 0, ',', '.') }} đ + + {{ $item->created_at }} +
+ No Records Found +
+ +
+
+ @else +
+
Access Denied - You are not assigned to any Customer + management department
+
+ @endif +@endsection diff --git a/resources/views/administrator/pages/form/vps.blade.php b/resources/views/administrator/pages/form/vps.blade.php new file mode 100644 index 0000000..7a7a40d --- /dev/null +++ b/resources/views/administrator/pages/form/vps.blade.php @@ -0,0 +1,176 @@ +
+ @csrf + @if ($model) + @method('put') + @endisset + +
+
+
+
+
+
+ {{-- Product name --}} +
+ +
+ +
+
+ + {{-- Price --}} +
+ +
+ +
+
+ + {{-- Price Sales --}} +
+ +
+ +
+
+ + {{-- Description --}} +
+ +
+ +
+
+ + {{-- Product Type --}} +
+ +
+ +
+
+ + {{-- Product Group --}} +
+ +
+ +
+
+ + {{-- Status --}} +
+ +
+ +
+
+
+
+
+
+
+
+
+
+ {{-- vCenter --}} + + + + + + + + {{-- vCore (CPU) --}} +
+ +
+ +
+
+ + {{-- Ram --}} +
+ +
+ +
+
+ +
+ +
+ +
+
+ + {{-- Gpu --}} +
+ +
+ +
+
+ + {{-- Bandwidth --}} +
+ +
+ +
+
+ + +
+
+
+
+
+
+ +
diff --git a/resources/views/administrator/pages/invoice/edit.blade.php b/resources/views/administrator/pages/invoice/edit.blade.php new file mode 100644 index 0000000..bf43095 --- /dev/null +++ b/resources/views/administrator/pages/invoice/edit.blade.php @@ -0,0 +1,300 @@ +@extends('admin.main') +@section('styles') + +@endsection +@section('content') + @if (auth()->guard('admins')->user()->can('edit invoice')) +
+
+
+
+ + + + + + + + + + + + + + + + + + + + + + @if ($invoice->vm_id) + + + + + @endif + + +
Client Name + + {{ $invoice->customer->firstname . ' ' . $invoice->customer->lastname }} + +
Invoice Date + {{ \Carbon\Carbon::parse($invoice->date)->format('d/m/Y H:i:s') }} +
Due Date + {{ \Carbon\Carbon::parse($invoice->due_date)->format('d/m/Y H:i:s') }} +
Total Due + {{ number_format($invoice->total, 0, ',', ',') }}đ +
VM ID + {{ $invoice->vm_id }} +
+
+
+

+ {!! $invoice->getStatus() !!} +

+

+ Payment Method: {{ $invoice->payment->name ?? 'Free' }} +

+
+
+
+ @method('put') + @csrf + + +
+
+ @method('put') + @csrf + + +
+
+ @method('put') + @csrf + + +
+ +
+
+
+
+
+
+

Invoice Items

+ + + + + + + + + + + + + @if ($invoice->invoiceItem->count()) + @foreach ($invoice->invoiceItem->all() as $item) + + + + + + + + + @endforeach + @endif + +
ItemProductDescriptionAddonsAmountTax
+ @if ($item->type) + + {{ $item->type->name }} + + @endif + + @php + $product = null; + if ($item->product_type == 3 && $item->hosting) { + $product = $item->hosting; + } elseif ($item->product_type == 4 && $item->vps) { + $product = $item->vps; + } + @endphp + + @if ($product) +
+ {{ $product->name }} + @if ($item->product_type == 4) +
+ + CPU: {{ $product->cpu }} vCore | + RAM: {{ $product->ram }} GB | + Disk: {{ $product->disk }} GB + @if ($product->gpu) + | GPU: {{ $product->gpu }} + @endif + +
+ @elseif ($item->product_type == 3) +
+ + Disk: {{ $product->disk }} GB | + RAM: {{ $product->ram }} GB | + Bandwidth: {{ $product->bandwidth }} GB + @if ($product->cpu) + | CPU: {{ $product->cpu }} + @endif + +
+ @endif + @if ($item->os) +
+ {{ $item->os->name }} +
+ @endif +
+ @else + No product info + @endif +
+ {{ $item->description }} + + @if ($item->addons->count() > 0) +
+ @foreach ($item->addons as $addon) +
+ + {{ $addon->addonItems->name ?? 'Unknown Addon' }} + @if ($addon->qty > 1) + (x{{ $addon->qty }}) + @endif + + + {{ number_format($addon->price, 0, ',', '.') }} đ + +
+ @endforeach +
+ @else + No addons + @endif +
+ {{ number_format($item->amount, 0, ',', '.') }} đ + + +
+ + @php + $totalAddonCost = 0; + foreach ($invoice->invoiceItem as $item) { + foreach ($item->addons as $addon) { + $totalAddonCost += $addon->price; + } + } + @endphp + + @if ($totalAddonCost > 0) +
+
+
+ Addon Summary: Total addon cost: {{ number_format($totalAddonCost, 0, ',', '.') }} đ +
+
+
+ @endif + + @php + $productTypes = []; + foreach ($invoice->invoiceItem as $item) { + $product = null; + if ($item->product_type == 3 && $item->hosting) { + $product = $item->hosting; + } elseif ($item->product_type == 4 && $item->vps) { + $product = $item->vps; + } + + if ($product) { + $typeName = $item->product_type == 3 ? 'Hosting' : ($item->product_type == 4 ? 'VPS' : 'Other'); + if (!isset($productTypes[$typeName])) { + $productTypes[$typeName] = 0; + } + $productTypes[$typeName]++; + } + } + @endphp + + @if (!empty($productTypes)) +
+
+
+ Product Summary: + @foreach ($productTypes as $type => $count) + {{ $type }}: {{ $count }} + @endforeach +
+
+
+ @endif +
+ +
+
+ +
+ @else +
+
Access Denied - You are not assigned to any Invoice + management department
+
+ @endif +@endsection diff --git a/resources/views/administrator/pages/invoice/index.blade.php b/resources/views/administrator/pages/invoice/index.blade.php new file mode 100644 index 0000000..16717e3 --- /dev/null +++ b/resources/views/administrator/pages/invoice/index.blade.php @@ -0,0 +1,190 @@ +@extends("admin.main") +@section("content") + @if(auth()->guard('admins')->user()->can("manager invoice")) +
+
+
+
+
+ {{-- Customer --}} + +
+
+
+ + +
+
+
+ {{-- Payment --}} + +
+
+
+ + +
+
+
+
+ +
+
+ + + +
+ +
+
+
+
+
+ +
+
+ + + +
+ +
+
+
+
+
+ +
+
+ + + +
+ +
+
+
+ + +
+ + +
+
+
+ {{ $invoices->count() }} Records Found +
+
+ + + + + + + + + + + + + + + + @if($invoices->count()) + @foreach($invoices->all() as $item) + + + + + + + + + + + + @endforeach + @endif + +
+ + Invoice #Client NameDatePayment MethodTotalStatus
+ + + $item->id]) }}" + title="View Order"> {{ $item->id }} + + @isset($item->customer->firstname) + {{ $item->customer->firstname . ' ' . $item->customer->lastname }} + @endisset + + @time($item->date) + + {{ $item->payment->name ?? 'VN Pay' }} + + {{ number_format($item->total,0,',','.') }}đ + + {!! $item->getStatus() !!} + + + + + + @if(auth()->guard('admins')->user()->can("delete invoice")) +
+ @csrf + @method('delete') + +
+ @endif +
+
+ +
+ @else +
+
Access Denied - You are not assigned to any Invoice + management department
+
+ @endif +@endsection diff --git a/resources/views/administrator/pages/log.blade.php b/resources/views/administrator/pages/log.blade.php new file mode 100644 index 0000000..2de781d --- /dev/null +++ b/resources/views/administrator/pages/log.blade.php @@ -0,0 +1,88 @@ +@extends('administrator.layout.master') + +@section('content') +
+
+

{{ $title ?? 'System Activity Log' }}

+
+
+ +
+
+ @if (auth()->guard('admins')->user()->can('manager system log')) +
+
+
+ + + + + + + + + + + + + + + + + + + @if (count($logs) > 0) + @foreach ($logs->all() as $item) + + + + + + + + @endforeach + @else + + + + @endif + +
DateDescriptionCustomerUsernameClient IP
+ {{ $item->created_at }} + + {{ $item->description }} + + @if ($item->Customer) + + Customer Code {{ $item->customer_id }} + +
+ {{ $item->customer->email }} + @else + None + @endif +
+ {{ $item->username }} + + {{ $item->client_ip }} +
+ No Records Found +
+
+
+ +
+ @else + + @endif +
+
+@endsection diff --git a/resources/views/administrator/pages/menu/add.blade.php b/resources/views/administrator/pages/menu/add.blade.php new file mode 100644 index 0000000..81c6590 --- /dev/null +++ b/resources/views/administrator/pages/menu/add.blade.php @@ -0,0 +1,95 @@ +@extends("admin.main") +@section("content") + @if(auth()->guard('admins')->user()->can('add menu')) +
+
+ @csrf +
+
+
+
+ + +
+
+
+
+ + + +
+
+
+ +
+
+
+ + +
+
+
+
+ + +
+
+ +
+
+
+
+ +
+
+ + +
+
+ + +
+
+
+
+
+
+ + +
+
+
+
+ + +
+
+
+
+
+ +
+
+
+
+
+ @else +
+
Access Denied - You are not assigned to any Payment + management department
+
+ @endif +@endsection + diff --git a/resources/views/administrator/pages/menu/edit.blade.php b/resources/views/administrator/pages/menu/edit.blade.php new file mode 100644 index 0000000..e91843a --- /dev/null +++ b/resources/views/administrator/pages/menu/edit.blade.php @@ -0,0 +1,99 @@ +@extends("admin.main") +@section("content") + @if(auth()->guard('admins')->user()->can('edit menu')) +
+
+ @csrf + @method('PUT') +
+
+
+
+ + +
+
+
+
+ + +
+ +
+
+ +
+
+
+ + +
+
+
+
+ + +
+
+ +
+
+
+
+ +
+
+ + +
+
+ + +
+
+
+
+
+
+ + +
+
+
+
+ + +
+
+
+
+
+ +
+
+
+
+
+ @else +
+
Access Denied - You are not assigned to any Payment + management department
+
+ @endif +@endsection + diff --git a/resources/views/administrator/pages/menu/index.blade.php b/resources/views/administrator/pages/menu/index.blade.php new file mode 100644 index 0000000..dbdbdc1 --- /dev/null +++ b/resources/views/administrator/pages/menu/index.blade.php @@ -0,0 +1,85 @@ +@extends("admin.main") +@section("content") + @if(auth()->guard('admins')->user()->can('manager menu')) +
+ +
+ + + + + + + + + + + + + + + + @if(count($menuOptions)) + @foreach($menuOptions as $item) + + + + + + + + + + + @endforeach + @endif + + + +
+ + Tên Danh MụcSlugRouteTrạng TháiNgày TạoSửaXóa
+ + + {{ $item['title'] }} + + {{ $item['slug'] ?? '' }} + + {{ $item['route_name'] ?? '' }} + + {{ $item['is_active'] ?? '' }} + + {{ $item['created_at'] ?? '' }} + + + + + + @if(auth()->guard('admins')->user()->can('delete menu')) +
+ @csrf + @method('delete') + +
+ @endif +
+
+ +
+ @else +
+
Access Denied - You are not assigned to any Payment + management department
+
+ @endif +@endsection diff --git a/resources/views/administrator/pages/module/dns/add.blade.php b/resources/views/administrator/pages/module/dns/add.blade.php new file mode 100644 index 0000000..8f292c9 --- /dev/null +++ b/resources/views/administrator/pages/module/dns/add.blade.php @@ -0,0 +1,61 @@ +@extends("admin.main") +@section("content") + @if(auth()->guard('admins')->user()->can("add module dns")) +
+
+ @csrf +
+
+
+ {{--Server Host--}} +
+ +
+ +
+
+ {{--User--}} +
+ +
+ +
+
+ {{--Password--}} +
+ +
+ +
+
+ {{--Status--}} +
+ +
+ +
+
+
+
+
+ +
+
+ @else +
+
Access Denied - You are not assigned to any Module dns + management department
+
+ @endif +@endsection diff --git a/resources/views/administrator/pages/module/dns/edit.blade.php b/resources/views/administrator/pages/module/dns/edit.blade.php new file mode 100644 index 0000000..607d113 --- /dev/null +++ b/resources/views/administrator/pages/module/dns/edit.blade.php @@ -0,0 +1,62 @@ +@extends("admin.main") +@section("content") + @if(auth()->guard('admins')->user()->can("edit module dns")) +
+
+ @csrf + @method('put') +
+
+
+ {{--Server Host--}} +
+ +
+ +
+
+ {{--User--}} +
+ +
+ +
+
+ {{--Password--}} +
+ +
+ +
+
+ {{--Status--}} +
+ +
+ +
+
+
+
+
+ +
+
+ @else +
+
Access Denied - You are not assigned to any Module dns + management department
+
+ @endif +@endsection diff --git a/resources/views/administrator/pages/module/dns/index.blade.php b/resources/views/administrator/pages/module/dns/index.blade.php new file mode 100644 index 0000000..0379b97 --- /dev/null +++ b/resources/views/administrator/pages/module/dns/index.blade.php @@ -0,0 +1,82 @@ +@php use App\Http\Helpers\Helper; @endphp +@extends('admin.main') +@section('content') + @if(auth()->guard('admins')->user()->can("manager module dns")) +
+
+ @include("admin.block.ModuleDNS") +
+
+ + + + + + + + + + + + + + @if(count($modules) > 0) + @foreach($modules as $item) + + + + + + + + + + @endforeach + @endif + +
+ + IP HostDomain CreatedStatusLast Updated
+ + + {{ $item->name }} + + {{ $item->counter }} + + {!! $item->getStatus() !!} + + @time($item->updated_at) + + + + + + @if(auth()->guard('admins')->user()->can("delete module dns")) +
+ @method('delete') + @csrf + +
+ @endif +
+
+ +
+ @else +
+
Access Denied - You are not assigned to any Module dns + management department
+
+ @endif +@endsection diff --git a/resources/views/administrator/pages/module/hosting/add.blade.php b/resources/views/administrator/pages/module/hosting/add.blade.php new file mode 100644 index 0000000..c62cecf --- /dev/null +++ b/resources/views/administrator/pages/module/hosting/add.blade.php @@ -0,0 +1,61 @@ +@extends("admin.main") +@section("content") + @if(auth()->guard('admins')->user()->can("add module hosting")) +
+
+ @csrf +
+
+
+ {{--Server Host--}} +
+ +
+ +
+
+ {{--User--}} +
+ +
+ +
+
+ {{--Password--}} +
+ +
+ +
+
+ {{--Status--}} +
+ +
+ +
+
+
+
+
+ +
+
+ @else +
+
Access Denied - You are not assigned to any Module Hosting + management department
+
+ @endif +@endsection diff --git a/resources/views/administrator/pages/module/hosting/edit.blade.php b/resources/views/administrator/pages/module/hosting/edit.blade.php new file mode 100644 index 0000000..2c0998a --- /dev/null +++ b/resources/views/administrator/pages/module/hosting/edit.blade.php @@ -0,0 +1,63 @@ +@extends("admin.main") +@section("content") + @if(auth()->guard('admins')->user()->can("edit module hosting")) + +
+
+ @csrf + @method('put') +
+
+
+ {{--Server Host--}} +
+ +
+ +
+
+ {{--User--}} +
+ +
+ +
+
+ {{--Password--}} +
+ +
+ +
+
+ {{--Status--}} +
+ +
+ +
+
+
+
+
+ +
+
+ @else +
+
Access Denied - You are not assigned to any Module Hosting + management department
+
+ @endif +@endsection diff --git a/resources/views/administrator/pages/module/hosting/index.blade.php b/resources/views/administrator/pages/module/hosting/index.blade.php new file mode 100644 index 0000000..f5b2fec --- /dev/null +++ b/resources/views/administrator/pages/module/hosting/index.blade.php @@ -0,0 +1,82 @@ +@php use App\Http\Helpers\Helper; @endphp +@extends('admin.main') +@section('content') + @if (auth()->guard('admins')->user()->can('manager module hosting')) +
+
+ @include('admin.block.ModuleHosting') +
+
+ + + + + + + + + + + + + + @if (count($modules) > 0) + @foreach ($modules as $item) + + + + + + + + + + @endforeach + @endif + + +
+ + IP HostDomain CreatedStatusLast Updated
+ + + {{ $item->name }} + + {{ $item->counter }} + + {!! $item->getStatus() !!} + + @time($item->updated_at) + + + + + + @if (auth()->guard('admins')->user()->can('delete module hosting')) +
+ @method('delete') + @csrf + +
+ @endif +
+
+ +
+ @else +
+
Access Denied - You are not assigned to any Module Hosting + management department
+
+ @endif +@endsection diff --git a/resources/views/administrator/pages/module/ippool/add.blade.php b/resources/views/administrator/pages/module/ippool/add.blade.php new file mode 100644 index 0000000..76387ea --- /dev/null +++ b/resources/views/administrator/pages/module/ippool/add.blade.php @@ -0,0 +1,45 @@ +@extends('admin.main') +@section('content') + @if (auth()->guard('admins')->user()->can('add module ippool')) +
+
+ @csrf +
+
+
+ {{-- Server Host --}} +
+ +
+ +
+
+ {{-- Module Network --}} +
+ +
+ +
+
+
+
+
+ +
+
+ @else +
+
Access Denied - You are not assigned to any Module IP Pool + management department
+
+ @endif +@endsection diff --git a/resources/views/administrator/pages/module/ippool/index.blade.php b/resources/views/administrator/pages/module/ippool/index.blade.php new file mode 100644 index 0000000..fa8cf2a --- /dev/null +++ b/resources/views/administrator/pages/module/ippool/index.blade.php @@ -0,0 +1,77 @@ +@php use App\Http\Helpers\Helper; @endphp +@extends('admin.main') +@section('content') + @if (auth()->guard('admins')->user()->can('manager module ippool')) +
+
+ @include('admin.block.ModuleIPPool') +
+
+ + + + + + + + + + + + + @if (count($modules) > 0) + @foreach ($modules as $item) + + + + + + + + + @endforeach + @endif + +
+ + IP AddressModule NetworkvCenter
+ + + {{ $item->ip_address }} + + {{ $item->network->name . ' - ' . $item->network->network }} + + {{ $item->network->host->datacenter->vCenter->host }} + + + + + + @if (auth()->guard('admins')->user()->can('delete module ippool')) +
+ @method('delete') + @csrf + +
+ @endif +
+
+ +
+ @else +
+
Access Denied - You are not assigned to any Module IP Pool + management department
+
+ @endif +@endsection diff --git a/resources/views/administrator/pages/module/vcenter/add.blade.php b/resources/views/administrator/pages/module/vcenter/add.blade.php new file mode 100644 index 0000000..3df0ef7 --- /dev/null +++ b/resources/views/administrator/pages/module/vcenter/add.blade.php @@ -0,0 +1,61 @@ +@extends("admin.main") +@section("content") + @if(auth()->guard('admins')->user()->can("add module vcenter")) +
+
+ @csrf +
+
+
+ {{--Server Host--}} +
+ +
+ +
+
+ {{--User--}} +
+ +
+ +
+
+ {{--Password--}} +
+ +
+ +
+
+ {{--Status--}} +
+ +
+ +
+
+
+
+
+ +
+
+ @else +
+
Access Denied - You are not assigned to any Module vCenter + management department
+
+ @endif +@endsection diff --git a/resources/views/administrator/pages/module/vcenter/edit.blade.php b/resources/views/administrator/pages/module/vcenter/edit.blade.php new file mode 100644 index 0000000..319ed58 --- /dev/null +++ b/resources/views/administrator/pages/module/vcenter/edit.blade.php @@ -0,0 +1,62 @@ +@extends("admin.main") +@section("content") + @if(auth()->guard('admins')->user()->can("edit module vcenter")) +
+
+ @csrf + @method('put') +
+
+
+ {{--Server Host--}} +
+ +
+ +
+
+ {{--User--}} +
+ +
+ +
+
+ {{--Password--}} +
+ +
+ +
+
+ {{--Status--}} +
+ +
+ +
+
+
+
+
+ +
+
+ @else +
+
Access Denied - You are not assigned to any Module vCenter + management department
+
+ @endif +@endsection diff --git a/resources/views/administrator/pages/module/vcenter/index.blade.php b/resources/views/administrator/pages/module/vcenter/index.blade.php new file mode 100644 index 0000000..d245345 --- /dev/null +++ b/resources/views/administrator/pages/module/vcenter/index.blade.php @@ -0,0 +1,82 @@ +@php use App\Http\Helpers\Helper; @endphp +@extends('admin.main') +@section('content') + @if(auth()->guard('admins')->user()->can("manager module vcenter")) +
+
+ @include("admin.block.ModuleVCenter") +
+
+ + + + + + + + + + + + + + @if(count($modules) > 0) + @foreach($modules as $item) + + + + + + + + + + @endforeach + @endif + +
+ + IP HostUsernameStatusLast Updated
+ + + {{ $item->host }} + + {{ $item->user }} + + {!! $item->getStatus() !!} + + @time($item->updated_at) + + + + + + @if(auth()->guard('admins')->user()->can("delete module vcenter")) +
+ @method('delete') + @csrf + +
+ @endif +
+
+ +
+ @else +
+
Access Denied - You are not assigned to any Module vCenter + management department
+
+ @endif +@endsection diff --git a/resources/views/administrator/pages/order/add.blade.php b/resources/views/administrator/pages/order/add.blade.php new file mode 100644 index 0000000..028a5db --- /dev/null +++ b/resources/views/administrator/pages/order/add.blade.php @@ -0,0 +1,230 @@ +@extends("admin.main") +@section("content") + @if(auth()->guard('admins')->user()->can("add order")) +
+
+ @csrf + +
+
+
+
+ {{--Client User--}} +
+ +
+ +
+
+ + {{--Payment Method--}} +
+ +
+ +
+
+ + {{--Promotion Code--}} +
+ +
+ +
+
+ + {{--Orders Status--}} +
+ +
+ +
+
+ + {{--Orders Action--}} +
+ +
+
+ + +
+
+
+
+
+
+
+
+
+
+ {{--Product Type--}} +
+ +
+ +
+
+ {{--Product--}} +
+ +
+ +
+
+ {{--Domain--}} +
+ +
+ +
+
+ {{--Billing Cycle--}} +
+ +
+ +
+
+ {{--Product Quantity--}} +
+ +
+ +
+
+ {{--Product Price--}} +
+ +
+ +
+
+
+
+ +
+
+
+

Order Summary

+ +
+ + + + + + + + + + + + + + + + +
VAT @ 10.00%0đ
Total0đ
+
+
+
+
+
+
+
+ +
+
+ @else +
+
Access Denied - You are not assigned to any Order + management department
+
+ @endif +@endsection +@push('scripts') + +@endpush diff --git a/resources/views/administrator/pages/order/edit.blade.php b/resources/views/administrator/pages/order/edit.blade.php new file mode 100644 index 0000000..cc44fad --- /dev/null +++ b/resources/views/administrator/pages/order/edit.blade.php @@ -0,0 +1,181 @@ +@php use Carbon\Carbon; @endphp +@extends("admin.main") +@section("content") + @if(auth()->guard('admins')->user()->can("edit order")) +
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Date{{ Carbon::parse($order->date)->format("d/m/Y H:i:s") }}Payment Method{{ $order->payment->name ?? 'VN Pay' }}
Order #{{ $order->order_num }} (ID: {{$order->id}})Amount@money($order->amount) đ
Client + {{ $order->customer->firstname . ' ' . $order->customer->lastname }} +
+ {{ $order->customer->address }} +
Invoice #{{ $order->invoice_id !== 0 ? $order->invoice_id : "No Invoice" }}
Status{!! App\Http\Helpers\Helper::OrderStatus($order->status) !!}IP Address + {{ $order->client_ip }} +
Order Placed By + @if($order->user) + {{ $order->user->username }} (#ID: {{ $order->user->id }}) + {{ $order->user->email }} + @endif + Promotion Code + @if($order->discount) + {{ $order->discount->code }} + @endif +
+
+
+
+

Order Item

+ + + + + + + + + + + + + @if($order->orderItem->isNotEmpty()) + @foreach($order->orderItem->all() as $item) + + + + + + + + + + @endforeach + @endif + +
ItemDescriptionBilling CycleAmountStatusPayment Status
+ @if($item->type && in_array($item->Type->id,[3,4])) + + {{ $item->type->name }} + + @else + {{ $item->type->name }} + @endif + + {{ $item->description }} + + {{ Helper::billing_cycle($item->billing) }} + + @money($item->amount) đ + + @if($item->status) + {!! $item->status->getStatus() !!} + @endif + + @if($order->invoice_id !== 0) + {!! $order->invoice->getStatus() !!} + @else + No Invoice Due + @endif +
+
+
+ @if( $order->status !== 1) +
+
+ +
+
+ @endif +
+ +
+ @else +
+
Access Denied - You are not assigned to any Order + management department
+
+ @endif + +@endsection +@push("scripts") + +@endpush diff --git a/resources/views/administrator/pages/order/index.blade.php b/resources/views/administrator/pages/order/index.blade.php new file mode 100644 index 0000000..979a622 --- /dev/null +++ b/resources/views/administrator/pages/order/index.blade.php @@ -0,0 +1,200 @@ +@php use App\Http\Helpers\Helper; @endphp +@extends("admin.main") +@section("content") + @if(auth()->guard('admins')->user()->can("manager order")) +
+
+
+
+
+
+ + +
+
+
+
+ + +
+
+
+
+ + +
+
+
+
+ +
+
+ + + +
+ +
+
+
+
+
+ + +
+
+
+ +
+
+
+ + +
+
+
+ + +
+
+
+ {{ $orders->count() }} Records Found +
+
+ + + + + + + + + + + + + + + + + @if($orders->count()) + @foreach($orders->all() as $item) + + + + + + + + + + + + + @endforeach + @endif + +
+ + Order #DateClient NamePayment MethodTotalPayment StatusStatus
+ + + $item->id]) }}" + title="View Order"> {{ $item->order_num }} + + @time($item->date) + + {{ $item->customer->firstname . ' ' . $item->customer->lastname }} + + {{ $item->Payment->name ?? 'VN Pay' }} + + {{ number_format($item->amount,0,',','.') }}đ + + @if ($item->invoice_id !== 0) + {!! $item->invoice->getStatus() !!} + @endif + + {!! Helper::OrderStatus($item->status) !!} + + + + + + @if(auth()->guard('admins')->user()->can("delete order")) +
+ @csrf + @method('delete') + +
+ @endif +
+
+ +
+ @else +
+
Access Denied - You are not assigned to any Order + management department
+
+ @endif +@endsection diff --git a/resources/views/administrator/pages/package/datacenter/add.blade.php b/resources/views/administrator/pages/package/datacenter/add.blade.php new file mode 100644 index 0000000..601ebba --- /dev/null +++ b/resources/views/administrator/pages/package/datacenter/add.blade.php @@ -0,0 +1,38 @@ +@extends("admin.main") +@section("content") +@if(auth()->guard('admins')->user()->can("add module vcenter")) +
+
+ @csrf +
+ + {{-- --}} + + {{--Name--}} +
+ +
+ +
+
+ {{--Datacenter ID--}} +
+ +
+ +
+
+
+ +
+
+@else +
+
Access Denied - You are not assigned to any Module vCenter + management department
+
+@endif +@endsection diff --git a/resources/views/administrator/pages/package/datacenter/edit.blade.php b/resources/views/administrator/pages/package/datacenter/edit.blade.php new file mode 100644 index 0000000..6222595 --- /dev/null +++ b/resources/views/administrator/pages/package/datacenter/edit.blade.php @@ -0,0 +1,37 @@ +@extends("admin.main") +@section("content") +@if(auth()->guard('admins')->user()->can("add module vcenter")) +
+
+ @csrf + @method('put') +
+ + {{--Name--}} +
+ +
+ +
+
+ {{--Datacenter ID--}} +
+ +
+ +
+
+
+ +
+
+@else +
+
Access Denied - You are not assigned to any Module vCenter + management department
+
+@endif +@endsection \ No newline at end of file diff --git a/resources/views/administrator/pages/package/datacenter/index.blade.php b/resources/views/administrator/pages/package/datacenter/index.blade.php new file mode 100644 index 0000000..3d9a87a --- /dev/null +++ b/resources/views/administrator/pages/package/datacenter/index.blade.php @@ -0,0 +1,80 @@ +@php use App\Http\Helpers\Helper; @endphp +@extends('admin.main') +@section('content') + @if(auth()->guard('admins')->user()->can("manager package module")) +
+
+ @include("admin.block.Sync.Datacenter") +
+
+ + + + + + + + + + + + + @if($datacenter->count()) + @foreach($datacenter->all() as $item) + + + + + + + + + @endforeach + @endif + +
+ + Datacenter NamevCenter HostLast Updated
+ + + {{ $item->name }} + + @isset($item->vCenter->host) + + {{ $item->vCenter->host }} + @endisset + + @time($item->created_at) + + + + + + @if(auth()->guard('admins')->user()->can("delete module vcenter")) +
+ @method('delete') + @csrf + +
+ @endif +
+
+ +
+ @else +
+
Access Denied - You are not assigned to any Module Package + management department
+
+ @endif +@endsection diff --git a/resources/views/administrator/pages/package/datastore/add.blade.php b/resources/views/administrator/pages/package/datastore/add.blade.php new file mode 100644 index 0000000..b866fe7 --- /dev/null +++ b/resources/views/administrator/pages/package/datastore/add.blade.php @@ -0,0 +1,67 @@ +@extends('admin.main') +@section('content') + @if (auth()->guard('admins')->user()->can('add module vcenter')) +
+
+ @csrf +
+ {{-- --}} + + + + {{-- Name --}} +
+ +
+ +
+
+ {{-- Host ID --}} +
+ +
+ +
+
+ {{-- Template ID --}} +
+ +
+ +
+
+ {{-- Console ID --}} +
+ +
+ +
+
+
+ +
+ +
+
+ +
+ +
+
+ @else +
+
Access Denied - You are not assigned to any Module vCenter + management department
+
+ @endif +@endsection diff --git a/resources/views/administrator/pages/package/datastore/edit.blade.php b/resources/views/administrator/pages/package/datastore/edit.blade.php new file mode 100644 index 0000000..d65a454 --- /dev/null +++ b/resources/views/administrator/pages/package/datastore/edit.blade.php @@ -0,0 +1,63 @@ +@extends("admin.main") +@section("content") +@if(auth()->guard('admins')->user()->can("add module vcenter")) +
+
+ @csrf + @method('put') +
+ + + + {{--Name--}} +
+ +
+ +
+
+ {{--Host ID--}} +
+ +
+ +
+
+ {{--Template ID--}} +
+ +
+ +
+
+ {{--Console ID--}} +
+ +
+ +
+
+
+ +
+ +
+
+ +
+ +
+
+@else +
+
Access Denied - You are not assigned to any Module vCenter + management department
+
+@endif +@endsection diff --git a/resources/views/administrator/pages/package/datastore/index.blade.php b/resources/views/administrator/pages/package/datastore/index.blade.php new file mode 100644 index 0000000..c835d4f --- /dev/null +++ b/resources/views/administrator/pages/package/datastore/index.blade.php @@ -0,0 +1,86 @@ +@php use App\Http\Helpers\Helper; @endphp +@extends('admin.main') +@section('content') + @if(auth()->guard('admins')->user()->can("manager package module")) +
+
+ @include("admin.block.Sync.Datastore") +
+
+ + + + + + + + + + + + + + + @if($datastore->count()) + @foreach($datastore->all() as $item) + + + + + + + + + + + + @endforeach + @endif + +
+ + Datastore NameHost NamevCenter HostFree SpaceLast Updated
+ + + {{ $item->name }} + + {{ $item->host->name ?? 'N/A' }} + + {{ $item->host->datacenter->vCenter->host ?? 'N/A' }} + + {{ $item->space }} GB + + @time($item->updated_at) + + + + + + @if(auth()->guard('admins')->user()->can("delete module vcenter")) +
+ @method('delete') + @csrf + +
+ @endif +
+
+ +
+ @else +
+
Access Denied - You are not assigned to any Module Package + management department
+
+ @endif +@endsection diff --git a/resources/views/administrator/pages/package/folder/add.blade.php b/resources/views/administrator/pages/package/folder/add.blade.php new file mode 100644 index 0000000..8c12586 --- /dev/null +++ b/resources/views/administrator/pages/package/folder/add.blade.php @@ -0,0 +1,44 @@ +@extends("admin.main") +@section("content") +@if(auth()->guard('admins')->user()->can("add module vcenter")) +
+
+ @csrf +
+ + + {{--Name--}} +
+ +
+ +
+
+ {{--Host ID--}} +
+ +
+ +
+
+ {{--Template ID--}} +
+ +
+ +
+
+
+ +
+
+@else +
+
Access Denied - You are not assigned to any Module vCenter + management department
+
+@endif +@endsection diff --git a/resources/views/administrator/pages/package/folder/edit.blade.php b/resources/views/administrator/pages/package/folder/edit.blade.php new file mode 100644 index 0000000..6b6598f --- /dev/null +++ b/resources/views/administrator/pages/package/folder/edit.blade.php @@ -0,0 +1,45 @@ +@extends("admin.main") +@section("content") +@if(auth()->guard('admins')->user()->can("add module vcenter")) +
+
+ @csrf + @method('put') +
+ + + {{--Name--}} +
+ +
+ +
+
+ {{--Host ID--}} +
+ +
+ +
+
+ {{--Template ID--}} +
+ +
+ +
+
+
+ +
+
+@else +
+
Access Denied - You are not assigned to any Module vCenter + management department
+
+@endif +@endsection diff --git a/resources/views/administrator/pages/package/folder/index.blade.php b/resources/views/administrator/pages/package/folder/index.blade.php new file mode 100644 index 0000000..4c874ad --- /dev/null +++ b/resources/views/administrator/pages/package/folder/index.blade.php @@ -0,0 +1,87 @@ +@php use App\Http\Helpers\Helper; @endphp +@extends('admin.main') +@section('content') + @if(auth()->guard('admins')->user()->can("manager package module")) + +
+
+ @include("admin.block.Sync.Folder") +
+
+ + + + + + + + + + + + + + @if(count($folders) > 0) + @foreach($folders->all() as $item) + + + + + + + + + + @endforeach + @endif + +
+ + Folder NameFolder TypeDatacenter NamevCenter Host
+ + + {{ $item->name }} + + {{ $item->type }} + + @isset($item->datacenter->name) + {{ $item->datacenter->name }} + @endisset + + @isset($item->datacenter->vCenter->host) + + {{ $item->datacenter->vCenter->host }} + @endisset + + + + + + @if(auth()->guard('admins')->user()->can("delete module vcenter")) +
+ @method('delete') + @csrf + +
+ @endif +
+
+ +
+ @else +
+
Access Denied - You are not assigned to any Module Package + management department
+
+ @endif +@endsection diff --git a/resources/views/administrator/pages/package/group/add.blade.php b/resources/views/administrator/pages/package/group/add.blade.php new file mode 100644 index 0000000..a120443 --- /dev/null +++ b/resources/views/administrator/pages/package/group/add.blade.php @@ -0,0 +1,81 @@ +@extends("admin.main") +@section("content") +@if(auth()->guard('admins')->user()->can("add package module")) +
+
+ @csrf +
+
+
+ {{--Name--}} +
+ +
+ +
+
+ {{--Thumbnail--}} +
+ +
+
+
+ +
+
+ +
+
+
+
+ + + + + {{--Status--}} +
+ +
+ +
+
+
+
+
+ +
+
+@else +
+
Access Denied - You are not assigned to any Module Package + management department
+
+@endif +@endsection +@push('scripts') + +@endpush \ No newline at end of file diff --git a/resources/views/administrator/pages/package/group/edit.blade.php b/resources/views/administrator/pages/package/group/edit.blade.php new file mode 100644 index 0000000..55647b4 --- /dev/null +++ b/resources/views/administrator/pages/package/group/edit.blade.php @@ -0,0 +1,82 @@ +@extends("admin.main") +@section("content") +@if(auth()->guard('admins')->user()->can("add package module")) +
+
+ @csrf + @method('put') +
+
+
+ {{--Name--}} +
+ +
+ +
+
+ {{--Thumbnail--}} +
+ +
+
+
+ +
+
+ +
+
+
+
+ + + + + {{--Status--}} +
+ +
+ +
+
+
+
+
+ +
+
+@else +
+
Access Denied - You are not assigned to any Module Package + management department
+
+@endif +@endsection +@push('scripts') + +@endpush \ No newline at end of file diff --git a/resources/views/administrator/pages/package/group/index.blade.php b/resources/views/administrator/pages/package/group/index.blade.php new file mode 100644 index 0000000..e63a7c9 --- /dev/null +++ b/resources/views/administrator/pages/package/group/index.blade.php @@ -0,0 +1,85 @@ +@php use App\Http\Helpers\Helper; @endphp +@extends('admin.main') +@section('content') + @if(auth()->guard('admins')->user()->can("manager package module")) +
+
+ @include("admin.block.Group") +
+
+ + + + + + + + + + + + + + @if($group->count()) + @foreach($group->all() as $item) + + + + + + + + + + @endforeach + @endif + +
+ + Group NameThumbnailHost NameStatus
+ + + {{ $item->name }} + + {{ $item->name }} + + @isset( $item->host->name) + {{$item->host->name}} + @endisset + + {!! $item->getStatus() !!} + + + + + +
+ @method('delete') + @csrf + +
+
+
+ +
+ @else +
+
Access Denied - You are not assigned to any Module Package + management department
+
+ @endif +@endsection diff --git a/resources/views/administrator/pages/package/host/add.blade.php b/resources/views/administrator/pages/package/host/add.blade.php new file mode 100644 index 0000000..be510bc --- /dev/null +++ b/resources/views/administrator/pages/package/host/add.blade.php @@ -0,0 +1,51 @@ +@extends("admin.main") +@section("content") +@if(auth()->guard('admins')->user()->can("add module vcenter")) +
+
+ @csrf +
+ + + {{--Name--}} +
+ +
+ +
+
+ {{--Host ID--}} +
+ +
+ +
+
+ {{--Template ID--}} +
+ +
+ +
+
+ {{--Console ID--}} +
+ +
+ +
+
+
+ +
+
+@else +
+
Access Denied - You are not assigned to any Module vCenter + management department
+
+@endif +@endsection diff --git a/resources/views/administrator/pages/package/host/edit.blade.php b/resources/views/administrator/pages/package/host/edit.blade.php new file mode 100644 index 0000000..113c9f9 --- /dev/null +++ b/resources/views/administrator/pages/package/host/edit.blade.php @@ -0,0 +1,53 @@ +@extends("admin.main") +@section("content") +@if(auth()->guard('admins')->user()->can("add module vcenter")) +
+
+ @csrf + @method('put') +
+ + + + {{--Name--}} +
+ +
+ +
+
+ {{--Host ID--}} +
+ +
+ +
+
+ {{--Template ID--}} +
+ +
+ +
+
+ {{--Console ID--}} +
+ +
+ +
+
+
+ +
+
+@else +
+
Access Denied - You are not assigned to any Module vCenter + management department
+
+@endif +@endsection diff --git a/resources/views/administrator/pages/package/host/index.blade.php b/resources/views/administrator/pages/package/host/index.blade.php new file mode 100644 index 0000000..3e6cf50 --- /dev/null +++ b/resources/views/administrator/pages/package/host/index.blade.php @@ -0,0 +1,85 @@ +@php use App\Http\Helpers\Helper; @endphp +@extends('admin.main') +@section('content') + @if(auth()->guard('admins')->user()->can("manager package module")) +
+
+ @include("admin.block.Sync.Host") +
+
+ + + + + + + + + + + + + + @if(count($hosts) > 0) + @foreach($hosts->all() as $item) + + + + + + + + + + @endforeach + @endif + +
+ + Host NameDatacenter NamevCenter HostLast Updated
+ + + {{ $item->name }} + + @isset($item->datacenter->name) + {{$item->datacenter->name}} + @endisset + + @isset($item->datacenter->vCenter->host) + {{$item->datacenter->vCenter->host}} + @endisset + + @time($item->updated_at) + + + + + + @if(auth()->guard('admins')->user()->can("delete module vcenter")) +
+ @method('delete') + @csrf + +
+ @endif +
+
+ +
+ @else +
+
Access Denied - You are not assigned to any Module Package + management department
+
+ @endif +@endsection diff --git a/resources/views/administrator/pages/package/ipaddress/add.blade.php b/resources/views/administrator/pages/package/ipaddress/add.blade.php new file mode 100644 index 0000000..a0f4e8b --- /dev/null +++ b/resources/views/administrator/pages/package/ipaddress/add.blade.php @@ -0,0 +1,94 @@ +@extends("admin.main") +@section("content") +@if(auth()->guard('admins')->user()->can("manager package module")) +
+
+ @csrf +
+
+
+ + + + + + + + + + {{--Netmask--}} +
+ +
+ +
+
+ {{--Netmask--}} +
+ +
+ +
+
+ {{--DNS--}} +
+ +
+ +
+
+ {{--Tuy chon--}} +
+ +
+ +
+
+
+ +
+ {{--From IP--}} +
+ +
+ +
+
+ {{--From IP--}} +
+ +
+ +
+
+
+
+
+ +
+ +
+
+
+
+
+ +
+
+@else +
+
Access Denied - You are not assigned to any Module Package + management department
+
+@endif +@endsection diff --git a/resources/views/administrator/pages/package/ipaddress/edit.blade.php b/resources/views/administrator/pages/package/ipaddress/edit.blade.php new file mode 100644 index 0000000..bfe7ae2 --- /dev/null +++ b/resources/views/administrator/pages/package/ipaddress/edit.blade.php @@ -0,0 +1,85 @@ +@extends("admin.main") +@section("content") +@if(auth()->guard('admins')->user()->can("manager package module")) +
+
+ @csrf + @method('put') +
+
+
+ + + + + + + + + + {{--Netmask--}} +
+ +
+ +
+
+ {{--Netmask--}} +
+ +
+ +
+
+ {{--DNS--}} +
+ +
+ +
+
+ {{--Tuy chon--}} +
+ +
+ +
+
+ {{-- IP --}} +
+ +
+ +
+
+ {{--Status--}} +
+ +
+ +
+
+
+
+
+ +
+
+@else +
+
Access Denied - You are not assigned to any Module Package + management department
+
+@endif +@endsection diff --git a/resources/views/administrator/pages/package/ipaddress/index.blade.php b/resources/views/administrator/pages/package/ipaddress/index.blade.php new file mode 100644 index 0000000..1520f8f --- /dev/null +++ b/resources/views/administrator/pages/package/ipaddress/index.blade.php @@ -0,0 +1,82 @@ +@php use App\Http\Helpers\Helper; @endphp +@extends('admin.main') +@section('content') + @if(auth()->guard('admins')->user()->can("manager package module")) +
+ +
+ + + + + + + + + + + + + + @if($listIP->count()) + @foreach($listIP->all() as $item) + + + + + + + + + + @endforeach + @endif + +
+ + VMWare NameIP AddressHost NameStatus
+ + + {{ $item->vm_name }} + + {{ $item->ip }} + + {{ $item->Host->name }} + + {!! $item->getStatus() !!} + + + + + +
+ @method('delete') + @csrf + +
+
+
+ +
+ @else +
+
Access Denied - You are not assigned to any Module Package + management department
+
+ @endif +@endsection diff --git a/resources/views/administrator/pages/package/network/add.blade.php b/resources/views/administrator/pages/package/network/add.blade.php new file mode 100644 index 0000000..52b2463 --- /dev/null +++ b/resources/views/administrator/pages/package/network/add.blade.php @@ -0,0 +1,47 @@ + +@extends("admin.main") +@section("content") +@if(auth()->guard('admins')->user()->can("add module vcenter")) +
+
+ @csrf +
+ + + + {{--Name--}} +
+ +
+ +
+
+ {{--Network--}} +
+ +
+ +
+
+ {{--Type--}} +
+ +
+ +
+
+ +
+ +
+
+@else +
+
Access Denied - You are not assigned to any Module vCenter + management department
+
+@endif +@endsection diff --git a/resources/views/administrator/pages/package/network/edit.blade.php b/resources/views/administrator/pages/package/network/edit.blade.php new file mode 100644 index 0000000..89d86f2 --- /dev/null +++ b/resources/views/administrator/pages/package/network/edit.blade.php @@ -0,0 +1,48 @@ + +@extends("admin.main") +@section("content") +@if(auth()->guard('admins')->user()->can("add module vcenter")) +
+
+ @csrf + @method('put') +
+ + + + {{--Name--}} +
+ +
+ +
+
+ {{--Network--}} +
+ +
+ +
+
+ {{--Type--}} +
+ +
+ +
+
+ +
+ +
+
+@else +
+
Access Denied - You are not assigned to any Module vCenter + management department
+
+@endif +@endsection diff --git a/resources/views/administrator/pages/package/network/index.blade.php b/resources/views/administrator/pages/package/network/index.blade.php new file mode 100644 index 0000000..179ab46 --- /dev/null +++ b/resources/views/administrator/pages/package/network/index.blade.php @@ -0,0 +1,81 @@ +@php use App\Http\Helpers\Helper; @endphp +@extends('admin.main') +@section('content') + @if(auth()->guard('admins')->user()->can("manager package module")) +
+
+ @include("admin.block.Sync.Network") +
+
+ + + + + + + + + + + + + @if(count($networks)) + @foreach($networks->all() as $item) + + + + + + + + + @endforeach + @endif + +
+ + Network NameHost NamevCenter Host
+ + + {{ $item->name }} + + @isset($item->host->name) + {{$item->host->name}} + @endisset + + @isset($item->host->datacenter->vCenter->host) + {{$item->host->datacenter->vCenter->host}} + @endisset + + + + + + @if(auth()->guard('admins')->user()->can("delete module vcenter")) +
+ @method('delete') + @csrf + +
+ @endif +
+
+ +
+ @else +
+
Access Denied - You are not assigned to any Module Package + management department
+
+ @endif +@endsection diff --git a/resources/views/administrator/pages/package/version/add.blade.php b/resources/views/administrator/pages/package/version/add.blade.php new file mode 100644 index 0000000..b6184d7 --- /dev/null +++ b/resources/views/administrator/pages/package/version/add.blade.php @@ -0,0 +1,56 @@ +@extends('admin.main') +@section('content') + @if (auth()->guard('admins')->user()->can('add package module')) +
+
+ @csrf +
+
+
+ {{-- Group Name --}} +
+ +
+ +
+
+ + + + + + + +
+ +
+ +
+
+
+ +
+ +
+
+
+
+
+ +
+
+ @else +
+
Access Denied - You are not assigned to any Module Package + management department
+
+ @endif +@endsection diff --git a/resources/views/administrator/pages/package/version/edit.blade.php b/resources/views/administrator/pages/package/version/edit.blade.php new file mode 100644 index 0000000..8a836b2 --- /dev/null +++ b/resources/views/administrator/pages/package/version/edit.blade.php @@ -0,0 +1,56 @@ +@extends('admin.main') +@section('content') + @if (auth()->guard('admins')->user()->can('add package module')) +
+
+ @csrf + @method('put') +
+
+
+ {{-- Group Name --}} +
+ +
+ +
+
+ + + + + + +
+ +
+ +
+
+
+ +
+ +
+
+
+
+
+ +
+
+ @else +
+
Access Denied - You are not assigned to any Module Package + management department
+
+ @endif +@endsection diff --git a/resources/views/administrator/pages/package/version/index.blade.php b/resources/views/administrator/pages/package/version/index.blade.php new file mode 100644 index 0000000..c4ccbc7 --- /dev/null +++ b/resources/views/administrator/pages/package/version/index.blade.php @@ -0,0 +1,86 @@ +@php use App\Http\Helpers\Helper; @endphp +@extends('admin.main') +@section('content') + @if(auth()->guard('admins')->user()->can("manager package module")) +
+ +
+ + + + + + + + + + + + + + @if(count($versions)) + @foreach($versions->all() as $item) + + + + + + + + + + @endforeach + @endif + +
+ + VersionGroup NameHost LocationStatus
+ + + {{ $item->version }} + + @isset($item->osGroup->name) + {{$item->osGroup->name}} + @endisset + + @isset($item->osGroup->host->name) + {{$item->osGroup->host->name}} + @endisset + + {!! $item->getStatus() !!} + + + + + +
+ @method('delete') + @csrf + +
+
+
+ +
+ @else +
+
Access Denied - You are not assigned to any Module Package + management department
+
+ @endif +@endsection diff --git a/resources/views/administrator/pages/package/vm/add.blade.php b/resources/views/administrator/pages/package/vm/add.blade.php new file mode 100644 index 0000000..be510bc --- /dev/null +++ b/resources/views/administrator/pages/package/vm/add.blade.php @@ -0,0 +1,51 @@ +@extends("admin.main") +@section("content") +@if(auth()->guard('admins')->user()->can("add module vcenter")) +
+
+ @csrf +
+ + + {{--Name--}} +
+ +
+ +
+
+ {{--Host ID--}} +
+ +
+ +
+
+ {{--Template ID--}} +
+ +
+ +
+
+ {{--Console ID--}} +
+ +
+ +
+
+
+ +
+
+@else +
+
Access Denied - You are not assigned to any Module vCenter + management department
+
+@endif +@endsection diff --git a/resources/views/administrator/pages/package/vm/edit.blade.php b/resources/views/administrator/pages/package/vm/edit.blade.php new file mode 100644 index 0000000..113c9f9 --- /dev/null +++ b/resources/views/administrator/pages/package/vm/edit.blade.php @@ -0,0 +1,53 @@ +@extends("admin.main") +@section("content") +@if(auth()->guard('admins')->user()->can("add module vcenter")) +
+
+ @csrf + @method('put') +
+ + + + {{--Name--}} +
+ +
+ +
+
+ {{--Host ID--}} +
+ +
+ +
+
+ {{--Template ID--}} +
+ +
+ +
+
+ {{--Console ID--}} +
+ +
+ +
+
+
+ +
+
+@else +
+
Access Denied - You are not assigned to any Module vCenter + management department
+
+@endif +@endsection diff --git a/resources/views/administrator/pages/package/vm/index.blade.php b/resources/views/administrator/pages/package/vm/index.blade.php new file mode 100644 index 0000000..3e6cf50 --- /dev/null +++ b/resources/views/administrator/pages/package/vm/index.blade.php @@ -0,0 +1,85 @@ +@php use App\Http\Helpers\Helper; @endphp +@extends('admin.main') +@section('content') + @if(auth()->guard('admins')->user()->can("manager package module")) +
+
+ @include("admin.block.Sync.Host") +
+
+ + + + + + + + + + + + + + @if(count($hosts) > 0) + @foreach($hosts->all() as $item) + + + + + + + + + + @endforeach + @endif + +
+ + Host NameDatacenter NamevCenter HostLast Updated
+ + + {{ $item->name }} + + @isset($item->datacenter->name) + {{$item->datacenter->name}} + @endisset + + @isset($item->datacenter->vCenter->host) + {{$item->datacenter->vCenter->host}} + @endisset + + @time($item->updated_at) + + + + + + @if(auth()->guard('admins')->user()->can("delete module vcenter")) +
+ @method('delete') + @csrf + +
+ @endif +
+
+ +
+ @else +
+
Access Denied - You are not assigned to any Module Package + management department
+
+ @endif +@endsection diff --git a/resources/views/administrator/pages/payment/add.blade.php b/resources/views/administrator/pages/payment/add.blade.php new file mode 100644 index 0000000..c659272 --- /dev/null +++ b/resources/views/administrator/pages/payment/add.blade.php @@ -0,0 +1,115 @@ +@extends("admin.main") +@section("content") + @if(auth()->guard('admins')->user()->can('add payment')) + +
+
+ @csrf +
+
+
+ {{--Group Name--}} +
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+ {{--Thumbnail--}} +
+ +
+
+
+ +
+
+ +
+
+
+
+ + {{--Status--}} +
+ +
+ +
+
+ + {{--Status--}} +
+ +
+ +
+
+
+
+
+ +
+
+ @else +
+
Access Denied - You are not assigned to any Payment + management department
+
+ @endif +@endsection +@push('scripts') + +@endpush diff --git a/resources/views/administrator/pages/payment/edit.blade.php b/resources/views/administrator/pages/payment/edit.blade.php new file mode 100644 index 0000000..8ae0909 --- /dev/null +++ b/resources/views/administrator/pages/payment/edit.blade.php @@ -0,0 +1,115 @@ +@extends("admin.main") +@section("content") + @if(auth()->guard('admins')->user()->can('edit payment')) +
+
+ @csrf + @method('put') +
+
+
+ {{--Group Name--}} +
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+ {{--Thumbnail--}} +
+ +
+
+
+ +
+
+ +
+
+
+
+ + {{--Status--}} +
+ +
+ +
+
+ + {{--Status--}} +
+ +
+ +
+
+
+
+
+ +
+
+ @else +
+
Access Denied - You are not assigned to any Payment + management department
+
+ @endif +@endsection +@push('scripts') + +@endpush diff --git a/resources/views/administrator/pages/payment/index.blade.php b/resources/views/administrator/pages/payment/index.blade.php new file mode 100644 index 0000000..de8c457 --- /dev/null +++ b/resources/views/administrator/pages/payment/index.blade.php @@ -0,0 +1,92 @@ +@extends("admin.main") +@section("content") + @if(auth()->guard('admins')->user()->can('manager payment')) +
+ +
+ + + + + + + + + + + + + + + + + @if($payments->count()) + @foreach($payments->all() as $item) + + + + + + + + + + + + + @endforeach + @endif + +
+ + NameAccountNoBank NameLogoTypeStatus
+ + + {{ $item->name }} + + {{ $item->accountNo }} + + {{ $item->bankName }} + + @if($item->logo) + Logo {{ $item->name }} + @endif + + {{ $item->type == 1 ? "Auto Banking" : "Manual" }} + + {!! $item->getStatus() !!} + + + + + + @if(auth()->guard('admins')->user()->can('delete payment')) +
+ @csrf + @method('delete') + +
+ @endif +
+
+ +
+ @else +
+
Access Denied - You are not assigned to any Payment + management department
+
+ @endif +@endsection diff --git a/resources/views/administrator/pages/post/add.blade.php b/resources/views/administrator/pages/post/add.blade.php new file mode 100644 index 0000000..0007368 --- /dev/null +++ b/resources/views/administrator/pages/post/add.blade.php @@ -0,0 +1,141 @@ +@extends("admin.main") +@section("content") + @if(auth()->guard('admins')->user()->can("add post")) +
+ @csrf +
+
+
+
+ Detail +
+
+
+
+
+ + +
+
+
+
+
+
+ +
+ +
+
+
+
+
+
+
+ + +
+
+
+
+
+
+
+
+
+ Publish +
+
+ + + + Back + +
+
+
+
+ Status * +
+
+
+
+ +
+
+
+
+
+
+ Image +
+
+
+
+ +
+
+ + Preview image + + + +
+
+
+
+
+
+
+
+
+ @else +
+
Access Denied - You are not assigned to any Post + management department
+
+ @endif +@endsection +@push('scripts') + + + +@endpush diff --git a/resources/views/administrator/pages/post/edit.blade.php b/resources/views/administrator/pages/post/edit.blade.php new file mode 100644 index 0000000..7abc4f7 --- /dev/null +++ b/resources/views/administrator/pages/post/edit.blade.php @@ -0,0 +1,149 @@ +@extends("admin.main") +@section("content") + @if(auth()->guard('admins')->user()->can("edit post")) +
+ @csrf + @method('put') +
+
+
+
+ Detail +
+
+
+
+
+ + +
+
+
+
+
+
+ +
+ + {{ trim(route('home')) .'/' }} + + + + + +
+
+
+
+
+
+
+ + +
+
+
+
+
+
+
+
+
+ Publish +
+
+ + + Back + +
+
+
+
+ Status * +
+
+
+
+ +
+
+
+
+
+
+ Image +
+
+
+
+ +
+
+ + Preview image + + + +
+
+
+
+
+
+
+
+
+ @else +
+
Access Denied - You are not assigned to any Post + management department
+
+ @endif +@endsection +@push('scripts') + + + +@endpush diff --git a/resources/views/administrator/pages/post/index.blade.php b/resources/views/administrator/pages/post/index.blade.php new file mode 100644 index 0000000..17b9d9c --- /dev/null +++ b/resources/views/administrator/pages/post/index.blade.php @@ -0,0 +1,86 @@ +@extends('admin.main') +@section('content') + @if(auth()->guard('admins')->user()->can("manager post")) +
+ +
+ + + + + + + + + + + + + + @if(count($posts) > 0) + @foreach($posts->all() as $item) + + + + + + + + + + + @endforeach + @endif + +
+ + ImageNameStatusCreated At
+ + + Image + + {{ $item->name }} + + {!! $item->getStatus() !!} + + @time($item->created_at) + + + + + + @if(auth()->guard('admins')->user()->can("delete post")) +
+ @csrf + @method('delete') + +
+ @endif +
+
+ +
+ @else +
+
Access Denied - You are not assigned to any Post + management department
+
+ @endif +@endsection + diff --git a/resources/views/administrator/pages/product/domain/add.blade.php b/resources/views/administrator/pages/product/domain/add.blade.php new file mode 100644 index 0000000..cdf1995 --- /dev/null +++ b/resources/views/administrator/pages/product/domain/add.blade.php @@ -0,0 +1,197 @@ +@extends("admin.main") +@section("content") +
+ @if(! isset($product)) +
+ @csrf +
+
+
+ {{--Product name--}} +
+ +
+ +
+
+ + {{--Price--}} +
+ +
+ +
+
+ + {{--Price Sales--}} +
+ +
+ +
+
+ + {{--Renewal--}} +
+ +
+ +
+
+ + {{--Transfer--}} +
+ +
+ +
+
+ + + {{--Product Type--}} +
+ +
+ +
+
+ + {{--Auto Register--}} +
+ +
+ +
+
+ + {{--Status--}} +
+ +
+ +
+
+
+
+
+ +
+ @else +
+ @csrf + @method('put') +
+
+
+ {{--Product name--}} +
+ +
+ +
+
+ + {{--Price--}} +
+ +
+ +
+
+ + {{--Price Sales--}} +
+ +
+ +
+
+ + {{--Renewal--}} +
+ +
+ +
+
+ + {{--Transfer--}} +
+ +
+ +
+
+ + + {{--Product Type--}} +
+ +
+ +
+
+ + {{--Auto Register--}} +
+ +
+ +
+
+ + {{--Status--}} +
+ +
+ +
+
+
+
+
+ +
+ @endif +
+@endsection diff --git a/resources/views/administrator/pages/product/domain/index.blade.php b/resources/views/administrator/pages/product/domain/index.blade.php new file mode 100644 index 0000000..0df44fa --- /dev/null +++ b/resources/views/administrator/pages/product/domain/index.blade.php @@ -0,0 +1,57 @@ +@extends("admin.main") +@section("content") +
+
+ @include("admin.block.import") +
+
+ + + + + + + + + + + + @if($domain->count()) + @foreach($domain->all() as $item) + + + + + + + + @endforeach + @endif + +
.ExtPriceType
+ {{ $item->name }} + + {{ number_format($item->price,0,',','.') }} vnđ + + {{ $item->Type->name }} + + + + + +
+ @csrf + @method('delete') + +
+
+
+ +
+@endsection diff --git a/resources/views/administrator/pages/product/first.blade.php b/resources/views/administrator/pages/product/first.blade.php new file mode 100644 index 0000000..f2af6fa --- /dev/null +++ b/resources/views/administrator/pages/product/first.blade.php @@ -0,0 +1,63 @@ +@extends("admin.main") +@section("content") + @if(auth()->guard('admins')->user()->can("add product")) +
+
+ @csrf + +
+
+
+ {{--First name--}} +
+ +
+ +
+
+ {{--Product Type--}} +
+ +
+ +
+
+ {{--Product Group--}} +
+ +
+ +
+
+
+
+
+ +
+
+ @else +
+
Access Denied - You are not assigned to any Product + management department
+
+ @endif +@endsection diff --git a/resources/views/administrator/pages/product/group.blade.php b/resources/views/administrator/pages/product/group.blade.php new file mode 100644 index 0000000..aea3b9b --- /dev/null +++ b/resources/views/administrator/pages/product/group.blade.php @@ -0,0 +1,107 @@ +@extends("admin.main") +@section("content") + @if(auth()->guard('admins')->user()->can("add product")) +
+ @if(isset($group)) +
+ @csrf + @method('put') +
+
+
+ {{--First name--}} +
+ +
+ +
+
+
+ +
+ +
+
+ {{--Last name--}} +
+ +
+ +
+
+ {{--Status--}} +
+ +
+ +
+
+
+
+
+ +
+ @else +
+ @csrf +
+
+
+ {{--First name--}} +
+ +
+ +
+
+
+ +
+ +
+
+ + {{--Status--}} +
+ +
+ +
+
+
+
+
+ +
+ @endif +
+ @else +
+
Access Denied - You are not assigned to any Product + management department
+
+ @endif +@endsection diff --git a/resources/views/administrator/pages/product/hosting.blade.php b/resources/views/administrator/pages/product/hosting.blade.php new file mode 100644 index 0000000..9c7b720 --- /dev/null +++ b/resources/views/administrator/pages/product/hosting.blade.php @@ -0,0 +1,353 @@ +@extends('admin.main') +@section('content') +
+ @if (!isset($product)) +
+ @csrf +
+
+
+ {{-- Product name --}} +
+ +
+ +
+
+ + {{-- Price --}} +
+ +
+ +
+
+ + {{-- Price Sales --}} +
+ +
+ +
+
+ + {{-- Description --}} +
+ +
+ +
+
+ + {{-- Template ID --}} +
+ +
+ +
+
+ + {{-- Product Type --}} +
+ +
+ +
+
+ + {{-- Product Group --}} +
+ +
+ +
+
+ + {{-- Status --}} +
+ +
+ +
+
+
+
+
+ +
+ @else + @if (auth()->guard('admins')->user()->can('edit product')) +
+ {{--
Chỉnh sửa sản phẩm {{ $product->name }}
--}} + +
+
+
+
+ @csrf + @method('put') +
+
+
+ {{-- Product name --}} +
+ +
+ +
+
+ + {{-- Price --}} +
+ +
+ +
+
+ + {{-- Price Sales --}} +
+ +
+ +
+
+ + {{-- Description --}} +
+ +
+ +
+
+ + {{-- Template ID --}} +
+ +
+ +
+
+ + {{-- Product Type --}} +
+ +
+ +
+
+ + {{-- Product Group --}} +
+ +
+ +
+
+ + {{-- Status --}} +
+ +
+ +
+
+
+ +
+ {{-- IP --}} +
+ +
+ +
+
+ {{-- CPU --}} +
+ +
+ +
+
+ {{-- GPU --}} +
+ +
+ +
+
+ {{-- Ram --}} +
+ +
+ +
+
+ {{-- bandwidth --}} +
+ +
+ +
+
+ + + {{-- Disk --}} +
+ +
+ +
+
+
+
+
+ +
+
+
+
+
+
+ {{-- vCenter --}} + + + + + + + + + {{-- vCore (CPU) --}} +
+ +
+ +
+
+ + {{-- Ram --}} +
+ +
+ +
+
+ +
+ +
+ +
+
+ + {{-- Gpu --}} +
+ +
+ +
+
+ + {{-- Bandwidth --}} +
+ +
+ +
+
+
+
+
+
+
+ + @else +
+
Access Denied - You are not assigned to any Product + management department
+
+ @endif + @endif +
+@endsection diff --git a/resources/views/administrator/pages/product/index.blade.php b/resources/views/administrator/pages/product/index.blade.php new file mode 100644 index 0000000..8942772 --- /dev/null +++ b/resources/views/administrator/pages/product/index.blade.php @@ -0,0 +1,90 @@ +@extends('admin.main') +@section('content') + @if (auth()->guard('admins')->user()->can('manager product')) +
+
+ @include('admin.block.btn') +
+
+ + + + + + + + + + + @if (count($groups) > 0) + @foreach ($groups->all() as $item) + + + + + + @if (!empty($item->products) && $item->products->count()) + @foreach ($item->products->all() as $_item) + + + + + + + @endforeach + @endif + @endforeach + @endif + +
Product NameType
+ Group Name: {{ $item->name }} + + + + + +
+ @method('delete') + @csrf + + +
+
+ {{ $_item->name }} + + {{ $_item->Type->name }} + + + + + + @if (auth()->guard('admins')->user()->can('delete product')) +
+ @csrf + @method('delete') + +
+ @endif +
+
+ +
+ @else +
+
Access Denied - You are not assigned to any Product + management department
+
+ @endif +@endsection diff --git a/resources/views/administrator/pages/product/vps.blade.php b/resources/views/administrator/pages/product/vps.blade.php new file mode 100644 index 0000000..a562469 --- /dev/null +++ b/resources/views/administrator/pages/product/vps.blade.php @@ -0,0 +1,9 @@ +@extends("admin.main") +@section("content") +
+ @include("admin.form.vps",[ + 'route' => isset($product) ? route('product.update',['product_id' => $product->id,'type' => $type_id]) : route('product.store'), + 'model' => $product ?? null + ]) +
+@endsection \ No newline at end of file diff --git a/resources/views/administrator/pages/role/add.blade.php b/resources/views/administrator/pages/role/add.blade.php new file mode 100644 index 0000000..7c0e56c --- /dev/null +++ b/resources/views/administrator/pages/role/add.blade.php @@ -0,0 +1,57 @@ +@extends("admin.main") +@section("content") + @if(auth()->guard('admins')->user()->can("add role")) +
+
+ @csrf +
+
+
+ +
+ +
+ +
+
+ +
+ +
+
+ Select All + | + Uncheck All +
+
+
    + @if($permission->count()) + @foreach($permission->all() as $item) +
  • + +
  • + @endforeach + @endif +
+
+
+
+
+
+ +
+
+ + @else +
+
Access Denied - You are not assigned to any Role management department
+
+ @endif + +@endsection diff --git a/resources/views/administrator/pages/role/edit.blade.php b/resources/views/administrator/pages/role/edit.blade.php new file mode 100644 index 0000000..821d1d4 --- /dev/null +++ b/resources/views/administrator/pages/role/edit.blade.php @@ -0,0 +1,60 @@ +@extends("admin.main") +@section("content") + @if(auth()->guard('admins')->user()->can("edit role")) +
+
+ @csrf + @method('put') +
+
+
+ +
+ +
+ +
+
+ +
+ +
+
+ Select All + | + Uncheck All +
+
+
    + @if($permission->count()) + @foreach($permission->all() as $item) +
  • + +
  • + @endforeach + @endif +
+
+
+
+
+
+ +
+
+ + @else +
+
Access Denied - You are not assigned to any Role management department
+
+ @endif + +@endsection diff --git a/resources/views/administrator/pages/role/index.blade.php b/resources/views/administrator/pages/role/index.blade.php new file mode 100644 index 0000000..20a8a07 --- /dev/null +++ b/resources/views/administrator/pages/role/index.blade.php @@ -0,0 +1,63 @@ +@extends("admin.main") +@section("content") + @if(auth()->guard('admins')->user()->can("manager role")) +
+ +
+ + + + + + + + + + + @if($roles->count()) + @foreach($roles->all() as $item) + + + + + + + @endforeach + @endif + +
+ + Role name
{{ $item->name }} + @if($item->id != 1) + + + + @endif + + @if($item->id != 1 && auth()->guard('admins')->user()->can("delete role")) +
+ @csrf + @method('delete') + +
+ @endif +
+
+ +
+ @else +
+
Access Denied - You are not assigned to any Role + management department
+
+ @endif + +@endsection diff --git a/resources/views/administrator/pages/support/index.blade.php b/resources/views/administrator/pages/support/index.blade.php new file mode 100644 index 0000000..256ffc6 --- /dev/null +++ b/resources/views/administrator/pages/support/index.blade.php @@ -0,0 +1,65 @@ +@extends("admin.main") +@section("content") + @if(auth()->guard('admins')->user()->can("manager support")) +
+
+ +
+
+ + + + + + + + + + + + + @if(count($tickets) > 0) + @foreach($tickets->unique('ticket_num')->all() as $item) + + + + + + + + + + @endforeach + @endif + +
+ + Ticket NumSubjectRoomStatus
+ + {{ $item->ticket_num }} + + + {{ $item->subject }} + + {{ $item->room }} + + {!! Helpers::get_ticket_status($item->status) !!} + + + + +
+
+ +
+ @else +
+
Access Denied - You are not assigned to any Support + management department
+
+ @endif + +@endsection diff --git a/resources/views/administrator/pages/support/view.blade.php b/resources/views/administrator/pages/support/view.blade.php new file mode 100644 index 0000000..d37ce0b --- /dev/null +++ b/resources/views/administrator/pages/support/view.blade.php @@ -0,0 +1,104 @@ +@extends("admin.main") +@section("content") + @if(auth()->guard('admins')->user()->can("edit support")) + @if($ticket->count()) +
+
+ @csrf + + +
+
+ + +
+
+ + +
+
+ @foreach($ticket->all() as $item) + @if($item->reply->isNotEmpty() && optional($item->reply->first())->user) + @foreach($item->reply()->latest('id')->get() as $_item) +
+
+
+ + + {{ $_item->user->firstname .' '.$_item->user->lastname }} + +
+
+ Quản trị viên +
{{ $_item->created_at }}
+
+
+
+ {!! $_item->message !!} +
+
+ @endforeach + @endif + +
+
+
+ + + {{ $item->customer->firstname .' '.$item->customer->lastname }} + +
+
+ Khách hàng +
{{ $item->created_at }}
+
+
+
+ {!! $item->description !!} +
+
+ @php($data = json_decode($item->data)) + @if($data->file) +
    +
  • + @php($file_info = pathinfo(url('template/' . $data->file))) + Attachment +
    + + {{ $file_info['basename'] }} + + {{ filesize(public_path('template/' . $data->file))*0.001 }} KB + +
    +
  • +
+ @endif +
+
+ @endforeach + @endif + @else +
+
Access Denied - You are not assigned to any Support + management department
+
+ @endif + +@endsection +@push('scripts') + + +@endpush diff --git a/resources/views/administrator/pages/template/add.blade.php b/resources/views/administrator/pages/template/add.blade.php new file mode 100644 index 0000000..d8c91e5 --- /dev/null +++ b/resources/views/administrator/pages/template/add.blade.php @@ -0,0 +1,89 @@ +@extends("admin.main") +@section("content") + @if(auth()->guard('admins')->user()->can("add email template")) +
+
+ @csrf +
+
+
+ + {{--Template name--}} +
+ +
+ +
+
+ + {{--Subject Email--}} +
+ +
+ +
+
+ {{--Subject Email--}} +
+ +
+ +
+
+ {{--Product Type--}} +
+ +
+ +
+
+ + {{--Status--}} +
+ +
+ +
+
+
+
+
+ +
+
+
+ @include("admin.template.note") +
+ @else +
+
Access Denied - You are not assigned to any email template + management department
+
+ @endif +@endsection +@push('scripts') + + +@endpush diff --git a/resources/views/administrator/pages/template/edit.blade.php b/resources/views/administrator/pages/template/edit.blade.php new file mode 100644 index 0000000..02e5d8c --- /dev/null +++ b/resources/views/administrator/pages/template/edit.blade.php @@ -0,0 +1,91 @@ +@extends("admin.main") +@section("content") + @if(auth()->guard('admins')->user()->can("edit email template")) +
+
+ @csrf + @method('put') + +
+
+
+ + {{--Template name--}} +
+ +
+ +
+
+ + {{--Subject Email--}} +
+ +
+ +
+
+ {{--Subject Email--}} +
+ +
+ +
+
+ {{--Product Type--}} +
+ +
+ +
+
+ + {{--Status--}} +
+ +
+ +
+
+
+
+
+ +
+
+
+ @include("admin.template.note") +
+ @else +
+
Access Denied - You are not assigned to any email template management department
+
+ @endif + @push('scripts') + + + @endpush +@endsection diff --git a/resources/views/administrator/pages/template/index.blade.php b/resources/views/administrator/pages/template/index.blade.php new file mode 100644 index 0000000..8741ab8 --- /dev/null +++ b/resources/views/administrator/pages/template/index.blade.php @@ -0,0 +1,82 @@ +@php use App\Http\Helpers\Helper; @endphp +@extends("admin.main") +@section("content") + @if(auth()->guard('admins')->user()->can('manager email template')) +
+ +
+ + + + + + + + + + + + + + @if($template->count()) + @foreach($template->all() as $item) + + + + + + + + + @endforeach + @endif + +
+ + StatusTemplate NameType Name
+ + + {!! Helper::Status($item->status) !!} + + {{ $item->name }} + + @if($item->Type) + {{ $item->Type->name }} + @else + General Message + @endif + + + + + + @if(auth()->guard('admins')->user()->can('delete email template')) +
+ @csrf + @method('delete') + +
+ @endif +
+
+ +
+ @else +
+
Access Denied - You are not assigned to any Email template + management department
+
+ @endif +@endsection diff --git a/resources/views/administrator/pages/template/note.blade.php b/resources/views/administrator/pages/template/note.blade.php new file mode 100644 index 0000000..774c078 --- /dev/null +++ b/resources/views/administrator/pages/template/note.blade.php @@ -0,0 +1,49 @@ +
+
+
+

Client Related

+
+
+
Client ID
+
{$client_id}
+
First Name
+
{$client_first_name}
+
Last Name
+
{$client_last_name}
+
Company Name
+
{$client_company_name}
+
Email Address
+
{$client_email}
+
Address
+
{$client_address}
+
City
+
{$client_city}
+
State/Region
+
{$client_state}
+
Postcode
+
{$client_postcode}
+
Country
+
{$client_country}
+
Phone Number
+
{$client_phone}
+
Status
+
{$client_status}
+ +
+

Product/Service Related

+
+
+
Order ID
+
{$order_id}
+
Service ID
+
{$service_id}
+
Product Name
+
{$product_name}
+
Os Name
+
{$os_name}
+
Username
+
{$service_username}
+
Password
+
{$service_password}
+
+
diff --git a/resources/views/administrator/pages/test.blade.php b/resources/views/administrator/pages/test.blade.php index a724e53..4b768ca 100644 --- a/resources/views/administrator/pages/test.blade.php +++ b/resources/views/administrator/pages/test.blade.php @@ -1,29 +1,36 @@ -@extends('layout.master') +@extends('administrator.layout.master') @push('plugin-styles') - + @endpush @section('content') - - +
+
+
+
+
Test Page
+ +
+
+
+
@endsection @push('plugin-scripts') - + @endpush @push('custom-scripts') - - @vite(['resources/js/pages/data-table.js']) + @vite(['resources/js/pages/sweet-alert.js']) + @vite(['resources/js/pages/data-table.js']) @endpush diff --git a/resources/views/administrator/pages/user/add.blade.php b/resources/views/administrator/pages/user/add.blade.php new file mode 100644 index 0000000..8effc3e --- /dev/null +++ b/resources/views/administrator/pages/user/add.blade.php @@ -0,0 +1,105 @@ +@extends("admin.main") +@section("content") + @if(auth()->guard('admins')->user()->can("add administrator")) +
+
+ @csrf +
+
+
+ + {{--Administrator Role--}} +
+ +
+ +
+
+ + {{--First name--}} +
+ +
+ +
+
+ + {{--Last name--}} +
+ +
+ +
+
+ + {{--Username--}} +
+ +
+ +
+
+ + {{--Email--}} +
+ +
+ +
+
+ + {{--Password--}} +
+ +
+ +
+
+ + {{--Confirm Password--}} +
+ +
+ +
+
+ + {{--Status--}} +
+ +
+ +
+
+
+
+
+ +
+
+ @else +
+
Access Denied - You are not assigned to any Administrator + management department
+
+ @endif +@endsection diff --git a/resources/views/administrator/pages/user/edit.blade.php b/resources/views/administrator/pages/user/edit.blade.php new file mode 100644 index 0000000..bade1d3 --- /dev/null +++ b/resources/views/administrator/pages/user/edit.blade.php @@ -0,0 +1,113 @@ +@extends("admin.main") +@section("content") + @if(auth()->guard('admins')->user()->can("edit administrator")) +
+
+ @csrf + @method('put') +
+
+
+ + {{--Administrator Role--}} +
+ +
+ +
+
+ + {{--First name--}} +
+ +
+ +
+
+ + {{--Last name--}} +
+ +
+ +
+
+ + {{--Username--}} +
+ +
+ +
+
+ + {{--Email--}} +
+ +
+ +
+
+ + {{--Status--}} +
+ +
+ +
+
+
+
+
+ Enter only if you want to change the password +
+
+ {{--Password--}} +
+ +
+ +
+
+ + {{--Confirm Password--}} +
+ +
+ +
+
+
+
+
+ +
+
+ @else +
+
Access Denied - You are not assigned to any Administrator management department
+
+ @endif +@endsection diff --git a/resources/views/administrator/pages/user/index.blade.php b/resources/views/administrator/pages/user/index.blade.php new file mode 100644 index 0000000..407c517 --- /dev/null +++ b/resources/views/administrator/pages/user/index.blade.php @@ -0,0 +1,66 @@ +@extends("admin.main") +@section("content") + @if(auth()->guard('admins')->user()->can("manager administrator")) +
+ +
+ + + + + + + + + + + + + + @if($users->count()) + @foreach($users->all() as $item) + + + + + + + + + + @endforeach + @endif + +
+ + NameEmail AddressUsernameAdmin Role
{{ $item->firstname . ' ' . $item->lastname }}{{ $item->email }}{{ $item->username }}{{ $item->roles->first()->name ?? 'Chưa phân loại' }} + + + + + @if(auth()->guard('admins')->user()->can("delete administrator") && $item->id != 1) +
+ @csrf + @method('delete') + +
+ @endif +
+
+ +
+ @else +
+
Access Denied - You are not assigned to any administrator management department
+
+ @endif + +@endsection diff --git a/resources/views/administrator/pages/user/login.blade.php b/resources/views/administrator/pages/user/login.blade.php new file mode 100644 index 0000000..91f2fe6 --- /dev/null +++ b/resources/views/administrator/pages/user/login.blade.php @@ -0,0 +1,138 @@ + + + + + + + Đăng nhập quản trị hệ thống + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + diff --git a/resources/views/frontend/service/partials/transaction-info.blade.php b/resources/views/frontend/service/partials/transaction-info.blade.php index eabbc82..72e9b3c 100644 --- a/resources/views/frontend/service/partials/transaction-info.blade.php +++ b/resources/views/frontend/service/partials/transaction-info.blade.php @@ -19,6 +19,22 @@ {{ __('Thông tin giao dịch') }}
+ {{-- Order Number --}} +
+ {{ __('Mã đơn hàng') }} + + {{ $invoice->order_num }} + + +
+ {{-- Registration Date --}}
{{ __('Ngày đăng ký') }} @@ -66,5 +82,19 @@ {{ __('Trạng thái gia hạn tự động') }} OFF
+
diff --git a/routes/administrator.php b/routes/administrator.php index a573209..ec433bf 100644 --- a/routes/administrator.php +++ b/routes/administrator.php @@ -6,4 +6,9 @@ Route::prefix('administrator-v2')->group(function () { Route::get('/', function () { return view('administrator.dashboard'); }); + + + Route::get('/login', function () { + return view('administrator.pages.auth.login'); + }); }); \ No newline at end of file diff --git a/routes/web.php b/routes/web.php index 0f91bd4..b644f57 100644 --- a/routes/web.php +++ b/routes/web.php @@ -17,7 +17,6 @@ use Yajra\DataTables\DataTables; include __DIR__ . '/admin.php'; -include __DIR__ . '/administrator.php'; include __DIR__ . '/customer.php'; diff --git a/vite.config.js b/vite.config.js index aade514..c2e56db 100644 --- a/vite.config.js +++ b/vite.config.js @@ -7,7 +7,7 @@ export default defineConfig({ laravel({ input: [ "resources/sass/app.scss", - // 'resources/css/custom.css', // Missing in this project + "resources/css/custom.css", "resources/rtl-css/app-rtl.css", "resources/rtl-css/custom-rtl.css", "resources/js/app-vite.js", // Using app-vite.js