TIF_E41201452/Website/resources/views/server-side/pages/manajemen-password/ubah-pass-admin.blade.php

82 lines
5.3 KiB
PHP

@extends('server-side.layouts.server-app')
@section('pageTitle', 'Ubah Password Administrator | Tectcrime')
@section('mainContent')
<div class="content d-flex flex-column flex-column-fluid" id="kt_content">
<div class="toolbar" id="kt_toolbar">
<div id="kt_toolbar_container" class="container-fluid d-flex flex-stack">
<div data-kt-swapper="true" data-kt-swapper-mode="prepend"
data-kt-swapper-parent="{default: '#kt_content_container', 'lg': '#kt_toolbar_container'}"
class="page-title d-flex align-items-center flex-wrap me-3 mb-5 mb-lg-0">
<h1 class="d-flex align-items-center text-dark fw-bolder fs-3 my-1">Profil
<span class="h-20px border-gray-200 border-start ms-3 mx-2"></span>
<small class="text-muted fs-7 fw-bold my-1 ms-1">Ubah Password</small>
</h1>
</div>
</div>
</div>
<div class="post d-flex flex-column-fluid" id="kt_post">
<div id="kt_content_container" class="container-xxl">
@if (Session::has('message'))
<div class="alert alert-success alert-dismissible fade show" role="alert">
<i class="bi bi-check-circle me-1"></i> {{ Session::get('message') }}.
<button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button>
</div>
@endif
@if (Session::has('error'))
<div class="alert alert-danger alert-dismissible fade show" role="alert">
<i class="bi bi-check-circle me-1"></i> {{ Session::get('error') }}.
<button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button>
</div>
@endif
<div class="card mb-5 mb-xl-8 px-10 px-lg-15 py-15">
<form action="{{ route('pass.adminproses') }}" method="POST" class="form" autocomplete="off">
@csrf
<div class="mb-10">
<h1 class="mb-3">Ubah Password</h1>
<div class="text-muted fw-bold fs-5">Silahkan lengkapi formulir <strong>Ubah Password</strong> di bawah ini!</div>
</div>
<div class="row g-9 mb-8">
<div class="col-md-12 fv-row">
<label class="d-flex align-items-center fs-6 fw-bold mb-2">
<span class="required">Password Lama</span>
</label>
<input type="password" class="form-control form-control-solid" name="password_lama" value="{{ old('password_lama') }}" />
@if ($errors->has('password_lama'))
<p class="mt-2 text-sm" style="color: red; font-weight: 500;"><span
class="font-medium">Oops!</span> {{ $errors->first('password_lama') }}</p>
@endif
</div>
<div class="col-md-6 fv-row">
<label class="d-flex align-items-center fs-6 fw-bold mb-2">
<span class="required">Password Baru</span>
</label>
<input type="password" class="form-control form-control-solid" name="password_baru" value="{{ old('password_baru') }}" />
@if ($errors->has('password_baru'))
<p class="mt-2 text-sm" style="color: red; font-weight: 500;"><span
class="font-medium">Oops!</span> {{ $errors->first('password_baru') }}</p>
@endif
</div>
<div class="col-md-6 fv-row">
<label class="d-flex align-items-center fs-6 fw-bold mb-2">
<span class="required">Masukkan Ulang Password Baru</span>
</label>
<input type="password" class="form-control form-control-solid" name="ulangi_password_baru" value="{{ old('ulangi_password_baru') }}" />
@if ($errors->has('ulangi_password_baru'))
<p class="mt-2 text-sm" style="color: red; font-weight: 500;"><span
class="font-medium">Oops!</span> {{ $errors->first('ulangi_password_baru') }}</p>
@endif
</div>
</div>
<div class="float-start">
<button type="submit" class="btn btn-primary">
<span class="indicator-label">Simpan Perubahan</span>
</button>
<button type="reset" class="btn btn-light me-3">Batal</button>
</div>
</form>
</div>
</div>
</div>
</div>
@endsection