43 lines
3.2 KiB
PHP
43 lines
3.2 KiB
PHP
|
<x-other.modal id="mChangePp" title="Change Profil" subTitle="Change Profil {{ Auth::user()->full_name }}" info="Profil {{ Auth::user()->full_name }}" separator="false" size="lg">
|
||
|
<x-slot name="action">
|
||
|
<button onclick="storeChangePp()" type="button" class="btn btn-success font-weight-bold mr-2" id="znBtnLoader">Simpan</button>
|
||
|
</x-slot>
|
||
|
<x-slot name="content">
|
||
|
<form id="formChangePp">
|
||
|
<div class="separator separator-dashed separator-border-1 mt-5 mb-5"></div>
|
||
|
<div class="card">
|
||
|
<div class="card-body">
|
||
|
<div class="row">
|
||
|
<div class="col-md-6">
|
||
|
<div >Foto</div>
|
||
|
<div class="form-group image-input mb-3" id="kt_image_2_change_pp" style="border: 1px solid gainsboro;">
|
||
|
@php
|
||
|
$image_url = Auth::user()->image_url?Auth::user()->image_url:asset('assets/media/logos/no_img.png');
|
||
|
@endphp
|
||
|
<div id="ava1_change_pp" class="image-input-wrapper" style="width: 200px;
|
||
|
height: 200px;background-image: url({{$image_url}}); background-size: cover; background-repeat: no-repeat; background-position: center center;"></div>
|
||
|
<label class="btn btn-xs btn-icon btn-circle btn-white btn-hover-text-primary btn-shadow" data-action="change" data-toggle="tooltip" title="" data-original-title="Change avatar">
|
||
|
<i class="fa fa-pen icon-sm text-muted"></i>
|
||
|
<input type="file" name="foto_profil_change_pp" id="foto_profil_change_pp" accept=".png, .jpg, .jpeg"/>
|
||
|
<input type="hidden" name="profile_avatar_remove_change_pp"/>
|
||
|
</label>
|
||
|
|
||
|
<span id="pic-cancel-change-pp" class="btn btn-xs btn-icon btn-circle btn-white btn-hover-text-primary btn-shadow" data-action="cancel" data-toggle="tooltip" title="Cancel avatar">
|
||
|
<i class="ki ki-bold-close icon-xs text-muted"></i>
|
||
|
</span>
|
||
|
</div>
|
||
|
<div class="mb-5">
|
||
|
<small >Format Gambar PNG,JPG,JPEG maksimal 250 Kb. rekomendasi solusi 420x420 </small>
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="col-md-6">
|
||
|
<x-form.input title="Nama User" id="full_name_change" value="{{ Auth::user()->full_name }}" />
|
||
|
<x-form.input title="Usercode / Username" id="user_code_change" value="{{ Auth::user()->user_code }}" />
|
||
|
<x-form.no title="Nomor HP" id="phone_number_change" maxlength="20" value="{{ Auth::user()->phone_number }}" />
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
</form>
|
||
|
</x-slot>
|
||
|
</x-other.modal>
|