feat: add profile image editing and update profile validation

This commit is contained in:
2026-08-22 08:15:01 +03:30
parent aea4d96693
commit b0bf4838ba
12 changed files with 556 additions and 28 deletions
@@ -57,10 +57,29 @@
<span class="far fa-shopping-bag"></span>
اکنون ثبت کن
</button>
<a href="#" class="border-btn">
<i class="far fa-heart"></i>
افزودن به علاقه مندی ها
</a>
<?php if(auth()->guard()->check()): ?>
<form action="<?php echo e(route('accounts.favorites.tour.toggle', ['tour' => $tour->id])); ?>"
method="POST"
class="d-inline">
<?php echo csrf_field(); ?>
<button type="submit" class="border-btn border-0">
<?php if($isFavorite): ?>
<i class="fas fa-heart"></i>
حذف از علاقه‌مندی‌ها
<?php else: ?>
<i class="far fa-heart"></i>
افزودن به علاقه‌مندی‌ها
<?php endif; ?>
</button>
</form>
<?php else: ?>
<a href="<?php echo e(route('auth.login.index')); ?>" class="border-btn">
<i class="far fa-heart"></i>
افزودن به علاقه‌مندی‌ها
</a>
<?php endif; ?>
</div>
</div>
</form>