From b4d73f7d4d637eb708bfd253be36fe9ad73d4412 Mon Sep 17 00:00:00 2001 From: Stephen Gesityan Date: Sat, 10 May 2025 18:15:10 +0700 Subject: [PATCH] Update --- resources/views/account/settings.blade.php | 371 ++++++++++----------- resources/views/layouts/admin.blade.php | 125 ++++--- resources/views/layouts/main.blade.php | 6 - resources/views/pages/venue.blade.php | 79 ++++- 4 files changed, 313 insertions(+), 268 deletions(-) diff --git a/resources/views/account/settings.blade.php b/resources/views/account/settings.blade.php index 61a4d5d..507f466 100644 --- a/resources/views/account/settings.blade.php +++ b/resources/views/account/settings.blade.php @@ -1,245 +1,226 @@ -@extends('layouts.app') +@extends('layouts.main') @section('content') -
-
-
-
-
-
-

- {{ __('Account Settings') }} -

-
-
+
+
+
+
+
+
+

+ {{ __('Pengaturan Akun') }} +

+
+
- @if (session('message')) - - @endif - - @if (session('success')) - - @endif - -
- @csrf - @method('PUT') - - -
- -
- - - - -
- @error('name') -
{{ $message }}
- @enderror -
- - -
- -
- - - - -
- @error('email') -
{{ $message }}
- @enderror - @if ($user->email) -
- @if ($user->hasVerifiedEmail()) - - {{ __('Email verified') }} - - @else - - {{ __('Not Verified') }} - - - {{ __('Resend verification email') }} - - @endif + @if (session('message') || session('success')) + - -
-
-

- {{ __('Change Password') }} -

-
+ @endif + + + @csrf + @method('PUT') + + +
+ +
+ + + + +
+ @error('name') +
{{ $message }}
+ @enderror +
+ + +
+ +
+ + + + +
+ @error('email') +
{{ $message }}
+ @enderror + @if ($user->email) +
+ @if ($user->hasVerifiedEmail()) + + {{ __('Email terverifikasi') }} + + @else + + {{ __('Belum Terverifikasi') }} + + + {{ __('Kirim ulang email verifikasi') }} + + @endif +
+ @endif +
+ +
+

+ {{ __('Ubah Password') }} +

+ -
-
-
- - - + + if (toggleNewPassword) { + toggleNewPassword.addEventListener('click', function () { + togglePasswordVisibility(newPassword, this); + }); + } + + if (toggleConfirmPassword) { + toggleConfirmPassword.addEventListener('click', function () { + togglePasswordVisibility(confirmPassword, this); + }); + } + + function togglePasswordVisibility(input, button) { + const type = input.getAttribute('type') === 'password' ? 'text' : 'password'; + input.setAttribute('type', type); + + // Toggle icon + const icon = button.querySelector('i'); + if (type === 'text') { + icon.classList.remove('fa-eye'); + icon.classList.add('fa-eye-slash'); + } else { + icon.classList.remove('fa-eye-slash'); + icon.classList.add('fa-eye'); + } + } + }); + @endsection \ No newline at end of file diff --git a/resources/views/layouts/admin.blade.php b/resources/views/layouts/admin.blade.php index 0af06aa..451fb01 100644 --- a/resources/views/layouts/admin.blade.php +++ b/resources/views/layouts/admin.blade.php @@ -12,15 +12,18 @@ body { font-family: 'Inter', sans-serif; } + .nav-item { transition: all 0.3s ease; } + .nav-item.active { position: relative; background-color: rgb(239, 246, 255); color: rgb(37, 99, 235); font-weight: 500; } + .nav-item.active::before { content: ''; position: absolute; @@ -31,10 +34,12 @@ background-color: rgb(37, 99, 235); border-radius: 0 4px 4px 0; } + .nav-item:hover:not(.active) { background-color: rgb(249, 250, 251); color: rgb(55, 65, 81); } + .dropdown-transition { transition: all 0.2s ease-out; } @@ -44,89 +49,100 @@
-
+
-
- +
- - + +
VenueApp
-
+
Menu Utama
-
+
Sistem