@extends('layouts.client')
@section('title', 'Change Password')
@section('content')
<h1 class="client-page-title" style="text-align:left">Change Password</h1>
<p class="client-page-sub" style="text-align:left">Use a strong password to keep your account secure</p>

<div class="client-form-card client-card">
    <form method="POST" action="{{ route('client.profile.password.update') }}">
        @csrf
        @method('PUT')
        <div class="form-group">
            <label for="current_password">Current password</label>
            <input id="current_password" type="password" name="current_password" class="client-input"
                   required autocomplete="current-password">
            @error('current_password')
                <p class="form-error">{{ $message }}</p>
            @enderror
        </div>
        <div class="form-group">
            <label for="password">New password</label>
            <input id="password" type="password" name="password" class="client-input"
                   required autocomplete="new-password">
            @error('password')
                <p class="form-error">{{ $message }}</p>
            @enderror
        </div>
        <div class="form-group">
            <label for="password_confirmation">Confirm new password</label>
            <input id="password_confirmation" type="password" name="password_confirmation" class="client-input"
                   required autocomplete="new-password">
        </div>
        <button type="submit" class="client-btn client-btn-primary">Update password</button>
    </form>
</div>
@endsection
