@extends('layouts.index')
@section('contenido')
<div class="content">
	<div class="card">
		<div class="card-header header-elements-inline">
			<h5 class="card-title">NUEVA GIRA</h5>
			<div class="header-elements">
				<div class="list-icons">
				    <a class="list-icons-item" data-action="collapse"></a>
				</div>
			</div>
		</div>

		<div class="card-body">
			<form action="{{ route('gira.guardar') }}" method="POST">
                @csrf
                <fieldset>
                    <div class="collapse show">
                        <div class="form-group">
                            <label>Seleccione la región</label>
                            <select class="form-control" name="id_region">
                                @foreach ($regiones as $region)
                                    <option value="{{$region['id']}}">{{$region['descripcion_region']}}</option>
                                @endforeach
                            </select>
                        </div>
                        <div class="form-group">
                            <label>Ingrese el nombre de la gira*</label>
                            <input type="text" class="form-control" name="descripcion" placeholder="" required>
                        </div>
                    </div>
                </fieldset>

				<div class="text-right">
					<button type="submit" class="btn btn-primary">Guardar gira<i class="icon-floppy-disk ml-2"></i></button>
				</div>
            </form>

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

@endsection

@section('javascript')
<script>
    jQuery( document ).ready(function() {

    });
</script>
@endsection
