@extends('layout')
@section('title','Accueil ')
@section('description','Accueil')
@section('content')
	<!--=====  End of breadcrumb area  ======-->

	<!--=============================================
	=            Login register page content         =
	=============================================-->
	<br/>
	 <div class="page-content mb-50">
		<div class="container">
			<div class="row">
				
				 <div class="col-lg-4 offset-4 col-md-12 ">
				
				@if (session('status'))
                        <div class="alert alert-success" style="font-size: 15px; background-color: #328039; color: white">
                            <i class="ti-check"></i> {{ session('status') }}
                        </div>
                    @endif

                    @if (session('error'))
                        <div class="alert alert-danger" style="font-size: 15px; background-color: #fb5757; color: white">
                            <i class="ti-na"></i> {{ session('error') }}
                        </div>
                    @endif
                    @if ($errors->any())
                        <div class="alert alert-danger" style="font-size: 15px; background-color: #fb5757; color: white" >
                            <ul>
                                @foreach ($errors->all() as $error)
                                    <li> <i class="ti-na"></i> {{ $error }}</li>
                                @endforeach
                            </ul>
                        </div>
                    @endif
				
					<!-- Login Form s-->
					<form action="{{route('loginclientPost')}}" method="post">
                        {{csrf_field()}}
						<div class="login-form">
							<h4 class="login-title" style="text-align:center">
							
							<img src="{{asset('storage/'.$info->logo)}}" alt="logo" style="height: 50px" alt="">
							
							</h4>
							
							
							<div class="row">
								<div class="col-md-12 col-12 mb-20">
									<label>{{ __('messages.em') }} *</label>
									
                                <input  type="text" name="idprod" value="{{ $idprod }}" hidden>


									<input class="mb-0" type="text" name="email" placeholder="{{ __('messages.mem') }}" value="{{ old('email') }}" required>
								</div>
								<div class="col-12 mb-20">
									<label>{{ __('messages.mdp') }} * </label>
									<input class="mb-0" type="password" name="password" placeholder="{{ __('messages.mpass') }}" required>
								</div>
								<div class="col-md-6">

									<div class="check-box d-inline-block ml-0 ml-md-2 mt-10">
										<a href="{{route('register')}}"> <font color="red">{{ __('messages.crc') }}</font></a>
									</div>

								</div>

								<div class="col-md-6 mt-10 mb-20 text-left text-md-right">
									<a href="{{route('forgot_password')}}"> {{ __('messages.mdpo') }} ?</a>
								</div>
								
								</br>

								<div class="col-md-12">
									<button type="submit" class="register-button mt-0" style="width:100%">{{ __('messages.conn') }}</button>
								</div>

							</div>
						</div>

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






@push('scripts')
	
@endpush

@endsection