From d64a67cf7656e201c204de85c3897cafa3b4ecb4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20Pocrnji=C4=8D?= Date: Mon, 19 Jan 2026 19:24:41 +0100 Subject: [PATCH] Visual changes to profile page --- .../Controllers/Admin/PackageController.php | 4 +- .../LogoutOtherBrowserSessionsForm.vue | 161 +++--- .../Partials/TwoFactorAuthenticationForm.vue | 517 +++++++++--------- .../Profile/Partials/UpdatePasswordForm.vue | 169 +++--- .../Partials/UpdateProfileInformationForm.vue | 330 +++++------ 5 files changed, 603 insertions(+), 578 deletions(-) diff --git a/app/Http/Controllers/Admin/PackageController.php b/app/Http/Controllers/Admin/PackageController.php index 7b946eb..071dc88 100644 --- a/app/Http/Controllers/Admin/PackageController.php +++ b/app/Http/Controllers/Admin/PackageController.php @@ -23,9 +23,11 @@ class PackageController extends Controller { public function index(Request $request): Response { + $perPage = $request->input('per_page') ?? 25; + $packages = Package::query() ->latest('id') - ->paginate(25); + ->paginate($perPage); return Inertia::render('Admin/Packages/Index', [ 'packages' => $packages, diff --git a/resources/js/Pages/Profile/Partials/LogoutOtherBrowserSessionsForm.vue b/resources/js/Pages/Profile/Partials/LogoutOtherBrowserSessionsForm.vue index 9a04418..299fe2f 100644 --- a/resources/js/Pages/Profile/Partials/LogoutOtherBrowserSessionsForm.vue +++ b/resources/js/Pages/Profile/Partials/LogoutOtherBrowserSessionsForm.vue @@ -20,6 +20,7 @@ import { } from "@/Components/ui/dialog"; import InputError from "@/Components/InputError.vue"; import { Monitor, Smartphone, LogOut, CheckCircle } from "lucide-vue-next"; +import AppCard from "@/Components/app/ui/card/AppCard.vue"; defineProps({ sessions: Array, @@ -55,68 +56,64 @@ const closeModal = () => { diff --git a/resources/js/Pages/Profile/Partials/TwoFactorAuthenticationForm.vue b/resources/js/Pages/Profile/Partials/TwoFactorAuthenticationForm.vue index afa7335..f267a9a 100644 --- a/resources/js/Pages/Profile/Partials/TwoFactorAuthenticationForm.vue +++ b/resources/js/Pages/Profile/Partials/TwoFactorAuthenticationForm.vue @@ -1,17 +1,24 @@ diff --git a/resources/js/Pages/Profile/Partials/UpdatePasswordForm.vue b/resources/js/Pages/Profile/Partials/UpdatePasswordForm.vue index 504ec0b..2e32c55 100644 --- a/resources/js/Pages/Profile/Partials/UpdatePasswordForm.vue +++ b/resources/js/Pages/Profile/Partials/UpdatePasswordForm.vue @@ -1,101 +1,106 @@ diff --git a/resources/js/Pages/Profile/Partials/UpdateProfileInformationForm.vue b/resources/js/Pages/Profile/Partials/UpdateProfileInformationForm.vue index bb5cbdb..20ae12c 100644 --- a/resources/js/Pages/Profile/Partials/UpdateProfileInformationForm.vue +++ b/resources/js/Pages/Profile/Partials/UpdateProfileInformationForm.vue @@ -1,23 +1,24 @@