@extends ('layouts.admin')
@section ('contenido')
    <div class="row">
        <div class="col-lg-6 col-md-6 col-sm-6 col-xs-12">
            <h3>Nueva Licencia</h3>
            
            @if (count($errors)>0)
            <div class="alert alert-danger">
                <ul>
                @foreach ($errors->all() as $error)
                    <li>{{$error}}</li>
                @endforeach
                </ul>
            </div>
            @endif

            <form action="{{ url('licencias/clicencia') }}" method="POST" autocomplete="off">
            
            @csrf

            <div class="form-group">
                <label for="clave">CLAVE</label>
                <input type="text" name="clave" class="form-control" placeholder="CLAVE..." value="{{ old('clave') }}">
            </div>

            <div class="form-group">
                <label for="ruc">RUC</label>
                <input type="text" name="ruc" class="form-control" placeholder="RUC..." value="{{ old('ruc') }}">
            </div>

            <div class="form-group">
                <label for="RAZON">RAZON</label>
                <input type="text" name="RAZON" class="form-control" placeholder="RAZON..." value="{{ old('RAZON') }}">
            </div>

            <div class="form-group">
                <label for="mac">MAC</label>
                <input type="text" name="mac" class="form-control" placeholder="MAC..." value="{{ old('mac') }}">
            </div>

            <div class="form-group">
                <label for="fechai">FECHA DE INICIO</label>
                <input type="date" name="fechai" class="form-control" placeholder="FECHA DE INICIO..." value="{{ old('fechai') }}">
            </div>

            <div class="form-group">
                <label for="fechaf">FECHA DE FIN</label>
                <input type="date" name="fechaf" class="form-control" placeholder="FECHA DE FIN..." value="{{ old('fechaf') }}">
            </div>
                                              
            <div class="form-group">
                <button class="btn btn-primary" type="submit">Guardar</button>
                <button class="btn btn-danger" type="reset">Cancelar</button>
            </div>

            </form> </div>
    </div>
@push ('scripts')
<script>
$('#liLicencias').addClass("treeview active");
$('#liClicencia').addClass("active");
</script>
@endpush
@endsection