@extends('layout.base')

@section('content')
<div class="panel panel-default">
	<div class="panel-heading">DB to Models</div>
	<div class="panel-body">
	<form action="{{url('', ['p' => 'admin', 'a' => 'models'])}}" method="post" class="form-horizontal" id="databases">
		<div class="row form-group">
			<div class="col-md-3">DB</div>
			<div class="col-md-4">
				<select name="database" class="form-control">
				@foreach ($databases as $database)
					<option value="{{$database}}">{{$database}}</option>
				@endforeach
				</select>
			</div>
		</div>
		<div class="row form-group">
			<div class="col-md-offset-3 col-md-2"><input type="submit" value="Listar" class="form-control" /></div>
		</div>
	</form>
	<div class="row">
		<div class="col-md-12" id="results"></div>
	</div>
	</div>
</div>
@endsection

@push('scripts')
<script type="text/javascript" src="js/admin.js"></script>
@endpush