From b24b3b74d49bdc19e45f21a4e3e4b56b4180feab Mon Sep 17 00:00:00 2001 From: Immanuel Onyeka Date: Wed, 26 May 2021 19:04:02 -0400 Subject: [PATCH] Render services in their components --- app/Http/Controllers/ServiceController.php | 14 ++++++++ app/Http/Controllers/Transaction.php | 10 ++++++ resources/js/panel/panel.vue | 29 +++++++++++++++-- resources/js/panel/service-pane.vue | 27 ++++++++++++++++ resources/js/panel/services.vue | 37 +++++++++++----------- resources/scss/main.scss | 3 +- routes/web.php | 4 +++ 7 files changed, 103 insertions(+), 21 deletions(-) create mode 100644 app/Http/Controllers/ServiceController.php create mode 100644 app/Http/Controllers/Transaction.php create mode 100644 resources/js/panel/service-pane.vue diff --git a/app/Http/Controllers/ServiceController.php b/app/Http/Controllers/ServiceController.php new file mode 100644 index 0000000..d1ee7b2 --- /dev/null +++ b/app/Http/Controllers/ServiceController.php @@ -0,0 +1,14 @@ + + + diff --git a/resources/js/panel/service-pane.vue b/resources/js/panel/service-pane.vue new file mode 100644 index 0000000..784306a --- /dev/null +++ b/resources/js/panel/service-pane.vue @@ -0,0 +1,27 @@ + + + diff --git a/resources/js/panel/services.vue b/resources/js/panel/services.vue index b5a9a72..49ce360 100644 --- a/resources/js/panel/services.vue +++ b/resources/js/panel/services.vue @@ -8,31 +8,32 @@
Name
Credits per 1000
Min Qt.
Max Qt.
-
-

Youtube

- -
-
-

Instagram

-
-
-

Twitter

-
+ + + + diff --git a/resources/scss/main.scss b/resources/scss/main.scss index 189ea08..1e9b1a8 100644 --- a/resources/scss/main.scss +++ b/resources/scss/main.scss @@ -1031,7 +1031,7 @@ main.panel { justify-content: space-between; align-items: center; border-top: 1px solid grey; - border-bottom: 1px solid grey; + // border-bottom: 1px solid grey; padding: 6px 0; } @@ -1053,6 +1053,7 @@ main.panel { width: 25px; height: 25px; color: vars.getColor('brand-orange'); + right: 10px; } svg:hover { diff --git a/routes/web.php b/routes/web.php index ac1c6f1..b3495f9 100644 --- a/routes/web.php +++ b/routes/web.php @@ -2,6 +2,7 @@ use Illuminate\Support\Facades\Route; use App\Http\Controllers\UserController; +use App\Http\Controllers\ServiceController; use Illuminate\Foundation\Auth\EmailVerificationRequest; use Illuminate\Http\Request; use Illuminate\Support\Facades\Auth; @@ -63,6 +64,9 @@ Route::get('/panel/user', function (Request $request) { Route::get('/panel/orders', [UserController::class, 'getOrders'])->middleware([ 'auth', 'verified' ]); +Route::get('/panel/services', [ServiceController::class, + 'getServices'])->middleware([ 'auth', 'verified' ]); + Route::get('/logout', [UserController::class, 'logout'])->middleware('auth');