feat: add user password change interface
This commit is contained in:
@@ -0,0 +1,120 @@
|
||||
/* ========================================
|
||||
Admin Panel
|
||||
Airline Agency
|
||||
======================================== */
|
||||
|
||||
body {
|
||||
background-color: #f5f7fb;
|
||||
}
|
||||
|
||||
|
||||
/* Main admin layout */
|
||||
|
||||
.admin-wrapper {
|
||||
min-height: 100vh;
|
||||
}
|
||||
|
||||
|
||||
/* Sidebar */
|
||||
|
||||
.admin-sidebar {
|
||||
width: 260px;
|
||||
min-height: 100vh;
|
||||
background: #ffffff;
|
||||
border-left: 1px solid #e9ecef;
|
||||
}
|
||||
|
||||
|
||||
/* Main content */
|
||||
|
||||
.admin-content {
|
||||
min-height: 100vh;
|
||||
padding: 24px;
|
||||
}
|
||||
|
||||
|
||||
/* Cards */
|
||||
|
||||
.admin-card {
|
||||
background: #ffffff;
|
||||
border: 1px solid #e9ecef;
|
||||
border-radius: 12px;
|
||||
}
|
||||
|
||||
|
||||
/* Dashboard stat cards */
|
||||
|
||||
.admin-stat-card {
|
||||
transition: all .2s ease;
|
||||
}
|
||||
|
||||
.admin-stat-card:hover {
|
||||
transform: translateY(-2px);
|
||||
}
|
||||
|
||||
|
||||
/* Sidebar links */
|
||||
|
||||
.admin-sidebar .nav-link {
|
||||
color: #495057;
|
||||
border-radius: 8px;
|
||||
margin-bottom: 4px;
|
||||
padding: 10px 12px;
|
||||
}
|
||||
|
||||
.admin-sidebar .nav-link:hover {
|
||||
background-color: #f1f5f9;
|
||||
}
|
||||
|
||||
.admin-sidebar .nav-link.active {
|
||||
background-color: #eaf2ff;
|
||||
color: #0d6efd;
|
||||
}
|
||||
|
||||
|
||||
/* Airline icon box */
|
||||
|
||||
.admin-icon-box {
|
||||
width: 48px;
|
||||
height: 48px;
|
||||
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
|
||||
border-radius: 12px;
|
||||
}
|
||||
|
||||
|
||||
/* Tables */
|
||||
|
||||
.admin-table th {
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.admin-table td {
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
|
||||
/* Breadcrumb */
|
||||
|
||||
.admin-breadcrumb {
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
|
||||
/* Responsive */
|
||||
|
||||
@media (max-width: 991px) {
|
||||
|
||||
.admin-sidebar {
|
||||
width: 100%;
|
||||
min-height: auto;
|
||||
}
|
||||
|
||||
.admin-content {
|
||||
padding: 16px;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,56 @@
|
||||
@extends('admin.layouts.app')
|
||||
|
||||
@section('title', 'تغییر رمز کاربر')
|
||||
|
||||
@section('content')
|
||||
<div class="container-fluid pt-4">
|
||||
|
||||
@if($errors->any())
|
||||
<div class="alert alert-danger">
|
||||
<ul class="mb-0">
|
||||
@foreach($errors->all() as $error)
|
||||
<li>{{ $error }}</li>
|
||||
@endforeach
|
||||
</ul>
|
||||
</div>
|
||||
@endif
|
||||
|
||||
<div class="row">
|
||||
<div class="col-xl-6">
|
||||
<div class="card custom-card">
|
||||
<div class="card-header">
|
||||
<h5 class="mb-0">تغییر رمز عبور — {{ $user->full_name ?? $user->name }}</h5>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<form method="POST" action="{{ route('admin.users.update-password', $user) }}">
|
||||
@csrf
|
||||
@method('PUT')
|
||||
|
||||
<div class="mb-3">
|
||||
<label class="form-label">رمز عبور جدید</label>
|
||||
<input type="password" name="password"
|
||||
class="form-control @error('password') is-invalid @enderror">
|
||||
@error('password')
|
||||
<div class="invalid-feedback">{{ $message }}</div>
|
||||
@enderror
|
||||
</div>
|
||||
|
||||
<div class="mb-3">
|
||||
<label class="form-label">تکرار رمز جدید</label>
|
||||
<input type="password" name="password_confirmation"
|
||||
class="form-control">
|
||||
</div>
|
||||
|
||||
<div class="d-flex gap-2">
|
||||
<button type="submit" class="btn btn-success">ذخیره رمز</button>
|
||||
<a href="{{ route('admin.users.index') }}" class="btn btn-secondary">انصراف</a>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
Reference in New Issue
Block a user