-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #26 from Yunnie-pin/dev
Dev
- Loading branch information
Showing
7 changed files
with
271 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
@extends('layouts.main') | ||
@section('container') | ||
<div class="pagetitle"> | ||
<h1>Change Password</h1> | ||
<nav> | ||
<ol class="breadcrumb"> | ||
<li class="breadcrumb-item"><a href="#">Profile</a></li> | ||
<li class="breadcrumb-item active">Profile</li> | ||
</ol> | ||
</nav> | ||
</div><!-- End Page Title --> | ||
|
||
<section class="section dashboard"> | ||
<div class="row"> | ||
|
||
<!-- Left side columns --> | ||
<div class="col-lg-12"> | ||
<div class="row"> | ||
<div class="card"> | ||
<div class="card-body p-3"> | ||
|
||
<form class="row g-3" method="post" action="{{route('update-password') }}"> | ||
@csrf | ||
<div class="col-md-4"> | ||
<div class="pb-2"> | ||
<label for="nama" class="form-label">Email</label> | ||
<input type="text" value="{{ auth()->user()->email }}" class="form-control" | ||
disabled> | ||
</div> | ||
|
||
<div class="pb-2"> | ||
<label for="nama" class="form-label">Pasword Baru</label> | ||
<input type="password" name="password" id="password" | ||
class="form-control | ||
@error('password') | ||
is-invalid | ||
@enderror | ||
"> | ||
|
||
@error('password_confirmation') | ||
<label class="form-check-label invalid-feedback"> | ||
{{ $message }} | ||
</label> | ||
@enderror | ||
</div> | ||
|
||
<div class="pb-2"> | ||
<label for="nama" class="form-label">Konfirmasi Password Baru</label> | ||
<input type="password" name="password_confirmation" id="password_confirmation" | ||
class="form-control | ||
@error('password_confirmation') | ||
is-invalid | ||
@enderror | ||
"> | ||
|
||
@error('password_confirmation') | ||
<label class="form-check-label invalid-feedback"> | ||
{{ $message }} | ||
</label> | ||
@enderror | ||
</div> | ||
|
||
</div> | ||
|
||
<div class="col-12 py-2"> | ||
<button type="submit" class="btn btn-primary">Submit</button> | ||
</div> | ||
</form> | ||
|
||
<!-- end card --> | ||
</div> | ||
</div> | ||
</div> | ||
</div><!-- End Left side columns --> | ||
|
||
</div> | ||
</section> | ||
|
||
@endsection |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,146 @@ | ||
@extends('layouts.main') | ||
@section('container') | ||
<div class="pagetitle"> | ||
<h1>Perbaharui data pengguna</h1> | ||
<nav> | ||
<ol class="breadcrumb"> | ||
<li class="breadcrumb-item"><a href="#">Profile</a></li> | ||
<li class="breadcrumb-item active">Perbaharui data pengguna</li> | ||
</ol> | ||
</nav> | ||
</div><!-- End Page Title --> | ||
|
||
<section class="section dashboard"> | ||
<div class="row"> | ||
|
||
<!-- Left side columns --> | ||
<div class="col-lg-12"> | ||
<div class="row"> | ||
<div class="card"> | ||
<div class="card-body p-3"> | ||
|
||
<form class="row g-3" method="post" action="{{route('update-profile', ['profile' => auth()->user()->id]) }}"> | ||
@csrf | ||
@method('put') | ||
<div class="col-md-3"> | ||
|
||
<div class="py-2"> | ||
<label for="email" class="form-label">Email</label> | ||
<input type="text" value="{{ auth()->user()->email }}" disabled | ||
class="form-control" | ||
id="email"> | ||
|
||
</div> | ||
|
||
{{-- Username --}} | ||
<div class="py-2"> | ||
<label for="username" class="form-label">Username</label> | ||
<input type="text" value="{{ auth()->user()->username }}" disabled | ||
class="form-control | ||
@error('username') | ||
is-invalid | ||
@enderror | ||
" | ||
id="username"> | ||
|
||
@error('username') | ||
<label class="form-check-label invalid-feedback"> | ||
{{ $message }} | ||
</label> | ||
@enderror | ||
</div> | ||
|
||
|
||
|
||
{{-- end email --}} | ||
{{-- nama lengkap --}} | ||
|
||
<div class="py-2"> | ||
<label for="nama_lengkap" class="form-label">Nama Lengkap</label> | ||
<input type="text" value="{{ auth()->user()->nama_lengkap }}" | ||
class="form-control | ||
@error('nama_lengkap') | ||
is-invalid | ||
@enderror | ||
" | ||
id="nama_lengkap" name="nama_lengkap"> | ||
|
||
|
||
@error('nama_lengkap') | ||
<label class="form-check-label invalid-feedback"> | ||
{{ $message }} | ||
</label> | ||
@enderror | ||
|
||
</div> | ||
|
||
|
||
{{-- end nama lengkap --}} | ||
{{-- no telp --}} | ||
|
||
<div class="py-2"> | ||
<label for="no_telp" class="form-label">Nomer Telp</label> | ||
<input type="number" value="{{ auth()->user()->no_telp }}" | ||
class="form-control | ||
@error('no_telp') | ||
is-invalid | ||
@enderror | ||
" | ||
id="no_telp" name="no_telp"> | ||
|
||
|
||
@error('no_telp') | ||
<label class="form-check-label invalid-feedback"> | ||
{{ $message }} | ||
</label> | ||
@enderror | ||
|
||
</div> | ||
|
||
|
||
{{-- end no telp --}} | ||
|
||
|
||
</div> | ||
<div class="col-md-3"> | ||
|
||
{{-- password --}} | ||
|
||
<div class="py-2"> | ||
<label for="no_telp" class="form-label">Konfirmasi Password</label> | ||
<input type="password" | ||
class="form-control | ||
@error('password') | ||
is-invalid | ||
@enderror | ||
" | ||
id="password" name="password" > | ||
@error('password') | ||
<label class="form-check-label invalid-feedback"> | ||
{{ $message }} | ||
</label> | ||
@enderror | ||
|
||
</div> | ||
|
||
|
||
{{-- end no telp --}} | ||
|
||
|
||
</div> | ||
|
||
|
||
<div class="col-12"> | ||
<button type="submit" class="btn btn-primary">Submit</button> | ||
</div> | ||
</form> | ||
|
||
<!-- end card --> | ||
</div> | ||
</div> | ||
</div> | ||
</div><!-- End Left side columns --> | ||
|
||
</div> | ||
</section> | ||
@endsection |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters