0722cf3120
git commit "implement user management with search sort permissions and safe delete"
158 lines
3.2 KiB
PHP
158 lines
3.2 KiB
PHP
@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
|