@extends('layouts.dash_api')

@section('content')
	<div class="container ">

<div class="" >
		<div class="col-md-12" style='margin:0px;padding:0px;text-align:center;'>
			<image src="img/logo_sygi.png" "title"="Logo de la REGIE" "maxwidth"="0%" "width" = "50%"/>
			<h2 class="text-center" style="margin:0px;padding:0px;padding-top:20px;padding-bottom:20px;margin:0px;">
				<small>Consultation des immatriculations de Wallis et Futuna<br/>Bienvenue</small>
			</h2>
			<div class="">
				<div class="panel-heading">
					<h3 class="panel-title">Veuillez vous connecter</h3>
				</div>
				<div class="">
                   {{ html()->form('POST', url('login'))->open() }}
				   <input type="hidden"  id="email" name="email"  class=" value="XX" >

					@if(Session::get('error'))
					    <div class="alert alert-danger">{!! Session::get('error') !!}</div>
					@endif
					<fieldset>
						<h5 class="text-center" style="margin:0px;padding:0px;padding-top:20px;padding-bottom:20px;margin:0px;">
							<small>{!! "Appuyez sur la clé Yubico pour vous connecter ou Saisssez votre mot de passe" !!}</small>
						</h5>
                        <br/>
						<div class="row">
							@if (isset($errors)&&$errors)
								@foreach ($errors->all() as $error)
									<div class='col-md-12 bg-danger alert'>{!! $error !!}</div>
								@endforeach
							@endif
							<br/>
							<div class='col-md-4 ' ></div>
							<div class='col-md-4 ' >
								<div align='center'>
									{!! html()->password('password')->attributes(
										['autofocus','id' => 'password', 
										'placeholder' => 'mot de passe',
										'style'=>'height:40px;font-size:2em;text-align:center',
										'class'=>'form-control']) !!}
								</div>
							</div>
						</div>
					</fieldset>
					{{ html()->form()->close() }}
				</div>
			</div>
		</div>
	</div>
@endsection
