git add .

git commit "implement user management with search sort permissions and safe delete"
This commit is contained in:
2026-08-18 15:18:57 +03:30
parent bff0c7ea4d
commit 0722cf3120
10 changed files with 564 additions and 17 deletions
+157 -3
View File
@@ -1,3 +1,157 @@
<div>
<!-- Let all your things have their places; let each part of your business have its time. - Benjamin Franklin -->
</div>
@extends('admin.layouts.app')
@section('breadcrumb')
<span>
ویرایش کاربر
</span>
@endsection
@section('content')
<div class="container mt-4">
<div class="card shadow">
<div class="card-body">
<form method="POST"
action="{{ route('admin.users.update',$user->id) }}">
@csrf
@method('PUT')
<div class="row">
<div class="col-md-6 mb-3">
<label>
نام
</label>
<input
class="form-control"
name="first_name"
value="{{ old('first_name',$user->first_name) }}">
</div>
<div class="col-md-6 mb-3">
<label>
نام خانوادگی
</label>
<input
class="form-control"
name="last_name"
value="{{ old('last_name',$user->last_name) }}">
</div>
<div class="col-md-6 mb-3">
<label>
ایمیل
</label>
<input
class="form-control"
name="email"
value="{{ old('email',$user->email) }}">
</div>
<div class="col-md-6 mb-3">
<label>
موبایل
</label>
<input
class="form-control"
name="mobile"
value="{{ old('mobile',$user->mobile) }}">
</div>
</div>
<button class="btn btn-success">
ذخیره
</button>
</form>
<hr>
<h5>
تغییر رمز عبور
</h5>
<form method="POST"
action="{{ route('admin.users.ChangePassword',$user->id) }}">
@csrf
@method('PUT')
<input
type="password"
name="password"
class="form-control mb-2"
placeholder="رمز جدید">
<input
type="password"
name="password_confirmation"
class="form-control mb-2"
placeholder="تکرار رمز">
<button class="btn btn-primary">
تغییر رمز
</button>
</form>
</div>
</div>
</div>
@endsection