@extends('components-layouts.master')
@section('title')
    Promjena Lozinke
@endsection
@section('css')
    <!-- add extra css -->
@endsection
@section('content')
    <!-- page title -->
    <x-breadcrumb title="Promjena Lozinke" pagetitle="Profil" />

    <div class="row">
        <div class="col-xxl-6">
            <div class="card">
                <div class="card-header">
                    <h4 class="card-title mb-0">Obrazac</h4>
                </div><!-- end card header -->

                <div class="card-body">
                    <form method="post" action="{{ route('update.password') }}">
        	            @csrf
                        <div class="row">
                            <div class="col-md-12">
                                <div class="mb-3">
                                    <label for="oldPassword" class="form-label">Trenutna Lozinka</label>
                                    <input type="password" name="old_password" placeholder="Upiši trenutnu lozinku" class="form-control @error('old_password') is-invalid @enderror"
                                        id="current_password"> @error('old_password') <span class="text-danger">{{ $message }}</span> @enderror
                                </div>
                            </div>

                            <div class="col-md-6">
                                <div class="mb-3">
                                    <label for="newPassword" class="form-label">Nova Lozinka</label>
                                    <input type="password" name="new_password" class="form-control" placeholder="Upiši novu lozinku"
                                        id="new_password">
                                </div>
                            </div>
                            <!--end col-->
                            <div class="col-md-6">
                                <div class="mb-3">
                                    <label for="confirmPassword" class="form-label">Potvrdi Novu Lozinku</label>
                                    <input type="password" name="new_password_confirmation" class="form-control" placeholder="Potvrdi novu lozinku"
                                        id="new_password_confirmation">
                                </div>
                            </div>
                            <!--end col-->
                            <div class="col-lg-12">
                                <div class="text-end">
                                    <button type="submit" class="btn btn-primary">Spremi</button>
                                </div>
                            </div>
                            <!--end col-->
                        </div>
                        <!--end row-->
                    </form>
                </div>
            </div>
        </div> <!-- end col -->

        <!--end col-->
    </div>
    <!--end row-->
@endsection

@section('scripts')
    <!-- prismjs plugin -->
    <script src="{{ URL::asset('assets/libs/prismjs/prism.js') }}"></script>
    <script src="{{ URL::asset('assets/js/app.js') }}"></script>
@endsection
