|
|
@ -3,6 +3,8 @@ |
|
|
|
@section('content') |
|
|
|
@section('content') |
|
|
|
<div class="card"> |
|
|
|
<div class="card"> |
|
|
|
<div class="card-body"> |
|
|
|
<div class="card-body"> |
|
|
|
|
|
|
|
<form action="{{ route('update.updateprofile') }}" method="POST" enctype="multipart/form-data"> |
|
|
|
|
|
|
|
@csrf |
|
|
|
<div class="row"> |
|
|
|
<div class="row"> |
|
|
|
<div class="col-9"> |
|
|
|
<div class="col-9"> |
|
|
|
<label for="name" class="col-form-label" style="font-size: 14px;">Nama</label> |
|
|
|
<label for="name" class="col-form-label" style="font-size: 14px;">Nama</label> |
|
|
@ -36,11 +38,6 @@ |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="col-3 text-center"> |
|
|
|
<div class="col-3 text-center"> |
|
|
|
{{-- <label for="name">Foto Profil</label><br> |
|
|
|
|
|
|
|
<img src="{{ asset('assets/img/default-profile.png') }}" alt="{{ auth()->user()->name }}" |
|
|
|
|
|
|
|
class="rounded-circle thumb-xl profile-image" style="width: 155px"><br> |
|
|
|
|
|
|
|
<button type="button" class="btn btn-secondary mt-2">Upload</button> |
|
|
|
|
|
|
|
<button type="button" class="btn btn-danger mt-2">HAPUS</button> --}} |
|
|
|
|
|
|
|
<label for="foto">Foto Profil</label><br> |
|
|
|
<label for="foto">Foto Profil</label><br> |
|
|
|
@if (auth()->user()->foto === null) |
|
|
|
@if (auth()->user()->foto === null) |
|
|
|
<img src="{{ asset('assets/img/default-profile.png') }}" alt="{{ auth()->user()->name }}" |
|
|
|
<img src="{{ asset('assets/img/default-profile.png') }}" alt="{{ auth()->user()->name }}" |
|
|
@ -50,9 +47,7 @@ |
|
|
|
class="rounded-circle img-thumbnail thumb-xl profile-image" |
|
|
|
class="rounded-circle img-thumbnail thumb-xl profile-image" |
|
|
|
style="width: 155px; cursor: pointer;"><br> |
|
|
|
style="width: 155px; cursor: pointer;"><br> |
|
|
|
@endif |
|
|
|
@endif |
|
|
|
{{-- <button type="button" class="btn btn-secondary mt-2">Upload</button> |
|
|
|
{{-- <div class="button-items"> |
|
|
|
<button type="button" class="btn btn-danger mt-2">HAPUS</button> --}} |
|
|
|
|
|
|
|
<div class="button-items"> |
|
|
|
|
|
|
|
<form action="{{ route('profile-update') }}" method="POST" enctype="multipart/form-data"> |
|
|
|
<form action="{{ route('profile-update') }}" method="POST" enctype="multipart/form-data"> |
|
|
|
@csrf |
|
|
|
@csrf |
|
|
|
<div class="form-group"> |
|
|
|
<div class="form-group"> |
|
|
@ -62,18 +57,13 @@ |
|
|
|
<button type="submit" class="btn btn-sm col-4 btn-info">Simpan</button> |
|
|
|
<button type="submit" class="btn btn-sm col-4 btn-info">Simpan</button> |
|
|
|
<a href="#" class="btn btn-sm col-4 btn-secondary">Hapus</a> |
|
|
|
<a href="#" class="btn btn-sm col-4 btn-secondary">Hapus</a> |
|
|
|
</form> |
|
|
|
</form> |
|
|
|
</div> |
|
|
|
</div> --}} |
|
|
|
{{-- <label for="upload-image"> |
|
|
|
|
|
|
|
<img src="{{ asset('assets/img/default-profile.png') }}" alt="{{ auth()->user()->name }}" |
|
|
|
|
|
|
|
class="rounded-circle thumb-xl profile-image" style="width: 155px; cursor: pointer;"> |
|
|
|
|
|
|
|
</label> |
|
|
|
|
|
|
|
<input type="file" id="upload-image" style="display: none;"><br> --}} |
|
|
|
|
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="col-12"> |
|
|
|
<div class="col-12"> |
|
|
|
<div class="mb-2"> |
|
|
|
<div class="mb-2"> |
|
|
|
<label for="tgl_lahir" class="col-form-label" style="font-size: 14px;">Tanggal |
|
|
|
<label for="tgl_lahir" class="col-form-label" style="font-size: 14px;">Tanggal |
|
|
|
Lahir</label> |
|
|
|
Lahir</label> |
|
|
|
<input class="form-control" type="date" |
|
|
|
<input class="form-control" type="date" name="tgl_lahir" |
|
|
|
value="{{ old('tgl_lahir', auth()->user()->tgl_lahir) }}" id="tgl_lahir"> |
|
|
|
value="{{ old('tgl_lahir', auth()->user()->tgl_lahir) }}" id="tgl_lahir"> |
|
|
|
@error('tgl_lahir') |
|
|
|
@error('tgl_lahir') |
|
|
|
<div class="text-danger">{{ $message }}</div> |
|
|
|
<div class="text-danger">{{ $message }}</div> |
|
|
@ -101,7 +91,8 @@ |
|
|
|
<div class="mb-2"> |
|
|
|
<div class="mb-2"> |
|
|
|
<select class="form-control" id="agama" name="agama"> |
|
|
|
<select class="form-control" id="agama" name="agama"> |
|
|
|
<option selected disabled>Pilih agama</option> |
|
|
|
<option selected disabled>Pilih agama</option> |
|
|
|
<option value="Islam" {{ old('agama', auth()->user()->agama) == 'Islam' ? 'selected' : '' }}> |
|
|
|
<option value="Islam" |
|
|
|
|
|
|
|
{{ old('agama', auth()->user()->agama) == 'Islam' ? 'selected' : '' }}> |
|
|
|
Islam</option> |
|
|
|
Islam</option> |
|
|
|
<option value="Kristen" |
|
|
|
<option value="Kristen" |
|
|
|
{{ old('agama', auth()->user()->agama) == 'Kristen' ? 'selected' : '' }}>Kristen |
|
|
|
{{ old('agama', auth()->user()->agama) == 'Kristen' ? 'selected' : '' }}>Kristen |
|
|
@ -109,9 +100,11 @@ |
|
|
|
<option value="Katolik" |
|
|
|
<option value="Katolik" |
|
|
|
{{ old('agama', auth()->user()->agama) == 'Katolik' ? 'selected' : '' }}>Katolik |
|
|
|
{{ old('agama', auth()->user()->agama) == 'Katolik' ? 'selected' : '' }}>Katolik |
|
|
|
</option> |
|
|
|
</option> |
|
|
|
<option value="Hindu" {{ old('agama', auth()->user()->agama) == 'Hindu' ? 'selected' : '' }}> |
|
|
|
<option value="Hindu" |
|
|
|
|
|
|
|
{{ old('agama', auth()->user()->agama) == 'Hindu' ? 'selected' : '' }}> |
|
|
|
Hindu</option> |
|
|
|
Hindu</option> |
|
|
|
<option value="Buddha" {{ old('agama', auth()->user()->agama) == 'Buddha' ? 'selected' : '' }}> |
|
|
|
<option value="Buddha" |
|
|
|
|
|
|
|
{{ old('agama', auth()->user()->agama) == 'Buddha' ? 'selected' : '' }}> |
|
|
|
Buddha |
|
|
|
Buddha |
|
|
|
</option> |
|
|
|
</option> |
|
|
|
<option value="Konghucu" |
|
|
|
<option value="Konghucu" |
|
|
@ -135,9 +128,10 @@ |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="col-12 d-flex justify-content-end"> |
|
|
|
<div class="col-12 d-flex justify-content-end"> |
|
|
|
<button type="button" class="btn btn-danger mt-2 col-1">BATAL</button> |
|
|
|
<button type="button" class="btn btn-danger mt-2 col-1">BATAL</button> |
|
|
|
<button type="button" class="btn btn-success mt-2 ml-2 col-1">SIMPAN</button> |
|
|
|
<button type="submit" class="btn btn-success mt-2 ml-2 col-1">SIMPAN</button> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
</form> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|