@extends('layouts.base')

@section('content')
    <div class="fluid-container h-100">
        <div class="row no-margin" style=" min-height: 100%; ">
            <div class="col no-padding" style="background-image: url({{asset('images/shipping_bg.jpeg')}}); background-position: center; background-size: cover;">
                <div class="w-100 h-100 bg-primary" style="position: absolute; opacity: 0.1;"></div>
            </div>
            <div class="col-4 padding-50 bg-white">
                <div class="row m-t-50">
                    <div class="col m-t-50 p-l-0">
                        <img src="{{asset('images/logo.png')}}" alt="logo" height="35">
                    </div>
                </div>
                <div class="row m-t-50">
                    <div class="col">
                        <div class="inline v-align-middle">
                            <h4 class="font-heading no-margin lh-28">Change Your Password</h4>
                        </div>
                    </div>
                </div>
                <div class="row m-t-10">
                    <div class="col">
                        <div class="row">
                            <div class="col">
                                @if($errors->any())
                                    @foreach ($errors->all() as $error)
                                        <div class="error">{{ $error }}</div>
                                    @endforeach
                                @endif
                            </div>
                        </div>
                        <form method="post" id="form-login" class="p-t-15" action="{{ route('password.update') }}">
                            @csrf
                            <input type="hidden" name="token" value="{{ $token }}">
                            <div class="form-group form-group-default">
                                <label>Email</label>
                                <div class="controls">
                                    <input id="email" type="email" class="form-control{{ $errors->has('email') ? ' is-invalid' : '' }}" name="email" value="{{ $email ?? old('email') }}" placeholder="Your Email" required autofocus>
                                </div>
                            </div>
                            <div class="form-group form-group-default">
                                <label>Password</label>
                                <div class="controls">
                                    <input type="password" class="form-control" name="password" placeholder="Credentials" required>
                                    @if ($errors->has('password'))
                                        <span class="invalid-feedback" role="alert">
                                        <strong>{{ $errors->first('password') }}</strong>
                                    </span>
                                    @endif
                                </div>
                            </div>
                            <div class="form-group form-group-default">
                                <label>Confirm Password</label>
                                <div class="controls">
                                    <input id="password-confirm" type="password" class="form-control" name="password_confirmation" placeholder="Credentials" required>
                                </div>
                            </div>
                            <div class="row justify-content-end align-items-end">
                                <div class="col-auto">
                                    <button type="submit" class="btn btn-primary btn-cons m-t-10 pull-right m-r-0">Change</button>
                                </div>
                            </div>
                        </form>

                        {{--<form method="POST" action="{{ route('password.update') }}">--}}
                            {{--@csrf--}}

                            {{--<input type="hidden" name="token" value="{{ $token }}">--}}

                            {{--<div class="form-group row">--}}
                                {{--<label for="email" class="col-md-4 col-form-label text-md-right">{{ __('E-Mail Address') }}</label>--}}

                                {{--<div class="col-md-6">--}}
                                    {{--<input id="email" type="email" class="form-control{{ $errors->has('email') ? ' is-invalid' : '' }}" name="email" value="{{ $email ?? old('email') }}" required autofocus>--}}

                                    {{--@if ($errors->has('email'))--}}
                                        {{--<span class="invalid-feedback" role="alert">--}}
                                        {{--<strong>{{ $errors->first('email') }}</strong>--}}
                                    {{--</span>--}}
                                    {{--@endif--}}
                                {{--</div>--}}
                            {{--</div>--}}

                            {{--<div class="form-group row">--}}
                                {{--<label for="password" class="col-md-4 col-form-label text-md-right">{{ __('Password') }}</label>--}}

                                {{--<div class="col-md-6">--}}
                                    {{--<input id="password" type="password" class="form-control{{ $errors->has('password') ? ' is-invalid' : '' }}" name="password" required>--}}

                                    {{--@if ($errors->has('password'))--}}
                                        {{--<span class="invalid-feedback" role="alert">--}}
                                        {{--<strong>{{ $errors->first('password') }}</strong>--}}
                                    {{--</span>--}}
                                    {{--@endif--}}
                                {{--</div>--}}
                            {{--</div>--}}

                            {{--<div class="form-group row">--}}
                                {{--<label for="password-confirm" class="col-md-4 col-form-label text-md-right">{{ __('Confirm Password') }}</label>--}}

                                {{--<div class="col-md-6">--}}
                                    {{--<input id="password-confirm" type="password" class="form-control" name="password_confirmation" required>--}}
                                {{--</div>--}}
                            {{--</div>--}}

                            {{--<div class="form-group row mb-0">--}}
                                {{--<div class="col-md-6 offset-md-4">--}}
                                    {{--<button type="submit" class="btn btn-primary">--}}
                                        {{--{{ __('Reset Password') }}--}}
                                    {{--</button>--}}
                                {{--</div>--}}
                            {{--</div>--}}
                        {{--</form>--}}
                    </div>
                </div>
            </div>
        </div>
    </div>
@endsection