feat: add profile image editing and update profile validation
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
|
||||
<div class="user-profile-sidebar">
|
||||
<div class="user-profile-sidebar-top">
|
||||
<div class="user-profile-img">
|
||||
<?php if(auth()->user()->avatar?->file): ?>
|
||||
<img
|
||||
src="<?php echo e(getFileUrl(auth()->user()->avatar->file_id)); ?>"
|
||||
alt="img"
|
||||
class="avatar avatar-sm avatar-rounded">
|
||||
<?php else: ?>
|
||||
<img
|
||||
src="<?php echo e(asset('assets/img/account/DefaultAvatar.jpg')); ?>"
|
||||
alt="img"
|
||||
class="avatar avatar-sm avatar-rounded">
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<h4><?php echo e(auth()->user()->first_name . ' ' . auth()->user()->last_name); ?></h4>
|
||||
</div>
|
||||
<ul class="user-profile-sidebar-list">
|
||||
<li><a class="active" href="<?php echo e(route('accounts.profile')); ?>"><i class="far fa-user"></i> نمایه من</a></li>
|
||||
<li><a href="profile-booking.html"><i class="far fa-shopping-bag"></i> رزرو من</a></li>
|
||||
<li><a href="<?php echo e(route('accounts.favorites.index')); ?>"><i class="far fa-heart"></i> علاقه مندی های من</a></li>
|
||||
<li><a href="<?php echo e(route('accounts.comments')); ?>"><i class="fas fa-comments"></i> کامنتهای من</a></li>
|
||||
<li><a href="<?php echo e(route('accounts.edit-profile.index')); ?>"><i class="far fa-cog"></i> ویرایش حساب کاربری</a></li>
|
||||
<li><a href="<?php echo e(route('auth.logout')); ?>"><i class="far fa-sign-out"></i> خروج</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<?php /**PATH C:\Users\ASUS\Desktop\airline-agency\resources\views/account/layouts/sidebar.blade.php ENDPATH**/ ?>
|
||||
Reference in New Issue
Block a user