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
+10 -1
View File
@@ -20,7 +20,7 @@
<div class="user-profile-card">
<h4 class="user-profile-card-title">بروزرسانی مشخصات پروفایل</h4>
<div class="user-profile-form">
<form action="{{ route('accounts.edit-profile.update') }}" method="POST">
<form action="{{ route('accounts.edit-profile.update') }}" method="POST" enctype="multipart/form-data">
@csrf
<div class="row">
<div class="col-md-6">
@@ -98,6 +98,15 @@
@enderror
</div>
</div>
<div class="col-md-12">
<div class="form-group">
<label>عکس پروفایل</label>
<input type="file" name="avatar" class="form-control" accept="image/*">
@error('avatar')
<span class="text-danger">{{ $message }}</span>
@enderror
</div>
</div>
</div>
<button type="submit" class="theme-btn mt-4">آپدیت مشخصات پروفایل <i class="far fa-user"></i>