@extends('layouts.index')
@section('content')

<main class="main">
	<!-- loder -->
	  <div class="loader-wrapper">
		<div class="loader"></div>
		<div class="loder-section left-section"></div>
		<div class="loder-section right-section"></div>
	</div>

	<!--==================================================-->
	<!-- Start  Polytia Breadcumb Area -->
	<!--==================================================-->
	
	<!--==================================================-->
	<!-- End  Polytia Breadcumb Area -->
	<!--==================================================-->

	<!--==================================================-->
	<!-- Start charina donate section  -->
	<!--==================================================-->
	<div class="donate-section">
		<div class="container">
			<div class="row">
				<div class="col-lg-12">
					<div class="section-title text-center">
						<div class="section-main-title">
							<h1>FORMULAIRE DE RECHERCHE - VEHICULE </h1>
						</div>
					</div> 
				</div>
			</div>
			<div class="row">
				<div class="col-lg-12">
					<!-- contact form box -->
					<div class="contact-form-box">
						@if ($message = Session::get('success'))
						<div class="alert alert-success alert-block">
							<button type="button" class="close" data-dismiss="alert">×</button>
							<strong>{{ $message }}</strong>
						</div>
						@endif
						<form action="{{ url('/data') }}" method="POST" id="dreamit-form">
							@csrf
							<div class="row">
								
								<div class="col-lg-6 col-md-6">
									<!-- from title -->
									<div class="form-title">
										<h6>VEHICULES :</h6>
									</div>
									<div class="form-box up">
										<select class="form-select" name="vehicule" aria-label="Default select example">
                                            <option selected>Choisir Ici</option>
											@foreach($allVehicules as $vehicule)
												<option value="{{$vehicule->id }}">{{ $vehicule->num_chassi}} - {{ $vehicule->num_matricule }}</option>
											@endforeach
										</select>
									</div>
								</div>
								
							</div>

							<div class="campaigns-button pt-3">
								<button>Rechercher</button>
							</div>
						</form>
						<div id="status"></div>
					</div> 					
				</div>
			</div>
		</div>
	</div>
	<!--==================================================-->
	<!-- End charina donate Secton -->
	<!--==================================================-->
</main>

@endsection