@extends('layout.master')
@section('title')
    Contraseña
@endsection

@section('home')
    <div class="nav nav-pills pull-right">
        <a href="{{url('/')}}" class="btn btn-danger"><i class="fa fa-home"></i> <span class="hide-button">Home</span></a>
    </div>
@endsection

@section('region_editable')
@section('styles')
    <link href="{{ asset('assets/plugins/custombox/dist/custombox.min.css') }}" rel="stylesheet">
    <style>
        @media (max-width: 991px){
            .wrapper{
                margin-top: 30px;
            }
        }
    </style>
@endsection


<div class="row" style="margin-bottom: 50px">
    @if(!empty($contrib))
        <div class="col-lg-8" style="margin-top: 11px">
            <div><label>Código de contribuyente: </label> {{ $contrib["Codigo de Contribuyente"] }}</div>
            <div><label>Contribuyente: </label> {{ $contrib["Nombre"]." ".$contrib["Apellido Paterno"]." ".$contrib["Apellido Materno"]}}</div>
            <div><label>Dirección Fiscal: </label> {{ $contrib["Direccion"]." ".$contrib["Numero de domicilio"]." ".$contrib["Lote de domicilio"]." ".$contrib["Manzana de domicilio"]}}</div>
            <br>
        </div>
    @endif

    <div class="row">
        <div class="col-sm-12">
            <div class="card-box">
                <div class="row">
                    <div class="col-md-6 col-md-offset-3">
                        <form id="form_login" method="post" action="{{ url('pass') }}" class="form-horizontal m-t-20">
                            {{ csrf_field() }}
                            <div class="form-group">
                                <label class="col-md-4 control-label">Contraseña nueva</label>
                                <div class="col-md-8">
                                    <input type="password" name="PasswordNuevo" class="form-control">
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-md-4 control-label">Repetir contraseña nueva</label>
                                <div class="col-md-8">
                                    <input type="password" name="RepetirPassword" class="form-control">
                                </div>
                            </div>
                            <div class="row">
                                <div class="col-md-6 col-md-offset-3" style="padding-top: 20px; text-align: center">
                                    <button type="submit" class="btn btn-success btn-rounded w-md waves-effect waves-light m-b-5" style="   background-color: #0a6730 !important; border: 1px solid #1c933e !important">Guardar cambios</button>
                                </div>
                            </div>
                            <div class="">
                                <div class="col-xs-12">
                                    @include('alerts.index')
                                    @include('confirm.index')
                                </div>
                            </div>

                        </form>
                    </div>

                </div>
            </div>
        </div>
    </div>

</div>
@endsection
