PATH:
home
/
lab2454c
/
omvstudio.com
/
resources
/
views
/
admin
/
admin_profile
<div class="form-group mb-3"> <label for="">First Name</label> <input type="text" name="first_name" value="{{ $admin->first_name }}" class="form-control @error('first_name') is-invalid @enderror"> </div> <div class="form-group mb-3"> <label for="">Last Name</label> <input type="text" name="last_name" value="{{ $admin->last_name }}" class="form-control @error('last_name') is-invalid @enderror"> </div> <div class="form-group mb-3"> <label for="">User Name</label> <input type="text" name="username" value="{{ $admin->username }}" class="form-control @error('username') is-invalid @enderror"> </div> <div class="form-group mb-3"> <label for="">Email</label> <input type="text" name="email" value="{{ $admin->email }}" class="form-control @error('email') is-invalid @enderror"> </div> <div class="form-group mb-3"> <label for="">Phone</label> <input type="text" name="phone_number" value="{{ $admin->phone_number }}" class="form-control @error('phone_number') is-invalid @enderror"> </div> <div class="form-group form__group mb-3"> <div class="profile__image"> <label for="">Profile</label> <input type="file" name="profile_picture" accept="image/*" onchange="showProfilePicture(this)" class="form-control @error('profile_picture') is-invalid @enderror" /> </div> <img src="{{ !empty( $admin->profile_picture) ? asset('storage/profiles/'.$admin->profile_picture) : asset('admin_assets/images/default-image.png') }}" id="profile-picture" class="rounded-circle" title="Profile Picture" alt="profile_picture" style="width: 120px;" > </div> <div class="form-group mb-3"> <label for="">Current Password</label> <input type="password" name="password" value="" placeholder="Current Password" class="form-control @error('password') is-invalid @enderror"> </div> <div class="form-group mb-3"> <label for="">New Password</label> <input type="password" name="new_password" value="" placeholder="New Password" class="form-control @error('new_password') is-invalid @enderror"> </div> <div class="form-group mb-3"> <label for="">Confirm Password</label> <input type="password" name="confirm_password" placeholder="Confirm Password" class="form-control @error('confirm_password') is-invalid @enderror"> </div> <div class="form-group mb-3 mt-3"> <button type="submit" class="btn btn-success">Update</button> </div> @push('backend-scripts') <script> function showProfilePicture(input) { if (input.files && input.files[0]) { var reader = new FileReader(); reader.onload = function (e) { $('#profile-picture').attr('src', e.target.result); } reader.readAsDataURL(input.files[0]); } } </script> @endpush
[-] form.blade.php
[edit]
[+]
..
[-] edit-admin-profile.blade.php
[edit]