feat: add profile image editing and update profile validation
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user