@extends('layouts.app')

@section('title',"Setup Installation")

@section('content')
<div class="row justify-content-center">
	<div class="col-5">
		<div class="card">
			<div class="card-body">
				<div class="alert alert-info">* Instalacion para Sist contable </div>
				<div class="response-data" style="display: none;">
				</div>
				<form action="{{ url('install') }}" class="form-installbd" onsubmit="updateDB(this); return false">
					<input type="hidden" name="action" value="installbd">
					<div class="form-group">
						<label for="">Base de datos</label>
						<input type="text" name="DB[]" value="" class="form-control">
					</div>
					<div class="form-group">
						<label for="">Usuario de la base de  datos:</label>
						<input type="text" name="DB[]"  class="form-control" value="">
					</div>
					<div class="form-group">
						<label for="">Contraseña  de la base de  datos:</label>
						<input type="text" name="DB[]" class="form-control" value="">
					</div>
					<div class="row text-center">
						<div class="col-12 text-center">
							<button class="btn btn-primary">Actualizar</button>
						</div>
					</div>
				</form>
				<div class="row text-center button-next" style="display: none;">
					<div class="col-12 text-center">
						<a  href="#" data-url="{{ url('login') }}" class="btn btn-primary btn-install" onclick="installTables(this); return false">Install</a>
					</div>
				</div>
				<div class="row text-center button-next-fin" style="display: none;">
					<div class="col-12 text-center">
						<a href="{{ url('login') }}" class="btn btn-primary">Ir al login</a>
					</div>
				</div>
			</div>
		</div>
	</div>
</div>
	@section('scripts')
	<script src="{!! asset('assets/views_functions/install.js') !!}"></script>
	@endsection
@endsection