diff --git a/app/Http/Controllers/Auth/ProfileController.php b/app/Http/Controllers/Auth/ProfileController.php new file mode 100644 index 0000000..7eca186 --- /dev/null +++ b/app/Http/Controllers/Auth/ProfileController.php @@ -0,0 +1,16 @@ +
to
Delete
'; + (o.innerHTML = document.getElementById("newForm").innerHTML + e), + document.getElementById("newlink").appendChild(o); + var t = document.querySelectorAll("[data-trigger]"); + for (i = 0; i < t.length; ++i) { + var l = t[i]; + new Choices(l, { + placeholderValue: "This is a placeholder set in the config", + searchPlaceholderValue: "This is a search placeholder", + searchEnabled: !1, + }); + } +} +function deleteEl(o) { + d = document; + o = d.getElementById(o); + d.getElementById("newlink").removeChild(o); +} diff --git a/resources/views/auth/profile.blade.php b/resources/views/auth/profile.blade.php new file mode 100644 index 0000000..da3a18c --- /dev/null +++ b/resources/views/auth/profile.blade.php @@ -0,0 +1,191 @@ +@extends('layouts.app') +@push('title', 'Profile') +@section('content') +
+
+ +
+
+ +
+
+ +
+
+
+
+
+
+ +
+ + +
+
+
Anna Adame
+

Lead Designer / Developer

+
+
+
+ +
+ +
+
+ +
+
+
+
+ @csrf + @method('PUT') +
+
+
+ + +
+ Harap masukan username anda +
+
+
+ +
+
+ + +
+ Harap masukan nama lengkap anda +
+
+
+ +
+
+ + +
+
+ +
+
+ + +
+
+ +
+ +
+
+ +
+
+ @csrf + @method('PUT') +
+
+
+ + +
+ Harap masukan password lama anda +
+
+
+ +
+
+ + +
+ Harap masukan password baru anda +
+
+
+ +
+
+ + +
+ Harap masukan konfirmasi password baru anda +
+
+
+ +
+ +
+ +
+
+ +
+
+ +
+ +
+
+ +
+
+
+
+ +
+ + +
+ +
+ + @push('other-js') + + + + + @endpush +@endsection diff --git a/resources/views/partials/navbar.blade.php b/resources/views/partials/navbar.blade.php index d284cb7..8df3a5a 100644 --- a/resources/views/partials/navbar.blade.php +++ b/resources/views/partials/navbar.blade.php @@ -181,29 +181,9 @@ class="d-none d-xl-block ms-1 fs-12 text-muted user-name-sub-text">{{ Auth::user diff --git a/routes/web.php b/routes/web.php index c68ac3b..74fa8e6 100644 --- a/routes/web.php +++ b/routes/web.php @@ -4,6 +4,7 @@ use App\Http\Controllers\AssessmentHistoryController; use App\Http\Controllers\Auth\AuthenticatedSessionController; use App\Http\Controllers\Auth\PasswordResetLinkController; +use App\Http\Controllers\Auth\ProfileController; use App\Http\Controllers\Auth\RegisteredUserController; use App\Http\Controllers\Auth\TwoStepVerifyController; use App\Http\Controllers\DashboardController; @@ -60,6 +61,11 @@ Route::middleware(['auth', 'verifiedAcount'])->group(function () { Route::post('/logout', [AuthenticatedSessionController::class, 'destroy'])->name('auth.logout'); + Route::prefix('profile')->controller(ProfileController::class)->name('profile.')->group(function () { + Route::get('/', 'index')->name('index'); + Route::put('/', 'update')->name('update'); + }); + Route::prefix('location')->controller(LocationController::class)->name('location.')->group(function () { Route::get('/get-province', 'getProvinces')->name('get_provinces'); Route::get('/get-regency/{id}', 'getRegencies')->name('get_regencies');