Файловый менеджер - Редактировать - /home/clickysoft/public_html/travel-guru.clickysoft.net/resources/views/admin/manage-account/index.blade.php
Назад
@extends('admin.layouts.master') @section('title', 'Manage Account') @section('content') <div class="container-xxl flex-grow-1 container-p-y"> <div class="row"> <div class="col-md-12"> <!-- Update Profile Card --> <div class="card mb-4"> <h5 class="card-header">Update Profile Information</h5> <div class="card-body"> <!-- Display Success or Error Messages --> @if (session('success')) <div class="alert alert-success"> {{ session('success') }} </div> @endif @if ($errors->any()) <div class="alert alert-danger"> @foreach ($errors->all() as $error) <p>{{ $error }}</p> @endforeach </div> @endif <!-- Update Profile Information Form --> <form action="{{ route('manage.account.updateProfile') }}" method="POST" enctype="multipart/form-data"> @csrf <div class="row"> <div class="col-md-6 mb-6"> <label class="form-label">Full Name</label> <input type="text" class="form-control" name="full_name" value="{{ old('full_name', $user->full_name) }}" placeholder="Enter full name" /> </div> <div class="col-md-6 mb-6"> <label class="form-label">Email</label> <input type="email" class="form-control" name="email" value="{{ old('email', $user->email) }}" disabled /> </div> </div> <div class="row mt-3"> <div class="col-md-12 mb-6"> <label class="form-label">Profile Picture</label> <input type="file" class="form-control" name="profile_image" /> </div> </div> <div class="row mt-3"> <div class="col-md-12 mb-6"> @if ($user->profile_image) <img id="profile_image_preview" src="{{ $user->profile_image ? asset('assets/img/profiles/' . $user->profile_image) : asset('assets/admin/img/profiles/default.png') }}" height="150px" width="150px" alt="profile image" /> @endif </div> </div> <div class="row mt-3"> <div class="col-md-12"> <button type="submit" class="btn btn-primary">Save Profile</button> </div> </div> </form> </div> </div> <!-- Change Password Card --> <div class="card mb-4"> <h5 class="card-header">Change Password</h5> <div class="card-body"> <!-- Change Password Form --> <form action="{{ route('manage.account.changePassword') }}" method="POST"> @csrf <div class="row mt-3"> <div class="col-md-12 mb-6"> <label class="form-label">Old Password <i class="fa fa-asterisk small-font text-danger" aria-hidden="true"></i></label> <div class="input-group"> <input type="password" class="form-control" name="old_password" placeholder="Enter old password" id="old_password" /> <span class="input-group-text cursor-pointer" onclick="togglePasswordVisibility('old_password', this)"> <i class="bx bx-show"></i> </span> </div> </div> </div> <div class="row mt-3"> <div class="col-md-6 mb-6"> <label class="form-label">New Password (Min. 8 characters) <i class="fa fa-asterisk small-font text-danger" aria-hidden="true"></i></label> <div class="input-group"> <input type="password" class="form-control" name="new_password" placeholder="Enter new password" id="new_password" /> <span class="input-group-text cursor-pointer" onclick="togglePasswordVisibility('new_password', this)"> <i class="bx bx-show"></i> </span> </div> </div> <div class="col-md-6 mb-6"> <label class="form-label">Confirm New Password <i class="fa fa-asterisk small-font text-danger" aria-hidden="true"></i></label> <div class="input-group"> <input type="password" class="form-control" name="new_password_confirmation" placeholder="Confirm new password" id="new_password_confirmation" /> <span class="input-group-text cursor-pointer" onclick="togglePasswordVisibility('new_password_confirmation', this)"> <i class="bx bx-show"></i> </span> </div> </div> </div> <div class="row mt-3"> <div class="col-md-12"> <button type="submit" class="btn btn-primary">Change Password</button> </div> </div> </form> </div> </div> </div> </div> </div> @endsection @push('admin-scripts') <script> function readURL(input) { if (input.files && input.files[0]) { let reader = new FileReader(); reader.onload = function(e) { $('#profile_image_preview').attr('src', e.target.result); } reader.readAsDataURL(input.files[0]); } } $("input[name='profile_image']").change(function() { readURL(this); }); function togglePasswordVisibility(inputId, iconElement) { const input = document.getElementById(inputId); const icon = iconElement.querySelector('i'); if (input.type === 'password') { input.type = 'text'; icon.classList.remove('bx-show'); icon.classList.add('bx-hide'); } else { input.type = 'password'; icon.classList.remove('bx-hide'); icon.classList.add('bx-show'); } } </script> @endpush
| ver. 1.4 |
Github
|
.
| PHP 8.1.29 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка