@extends('layout_admin')
@section('title','Accueil ')
@section('description','Accueil')
@section('content')

	<!--=====  End of breadcrumb area  ======-->

	<!--=============================================
	=            My account page section         =
	=============================================-->

	<div class="my-account-section section position-relative mb-50 fix">
		<div class="container">
			<div class="row">
				<div class="col-12">

					<div class="row">

						<!-- My Account Tab Menu Start -->
						<div class="col-lg-3 col-12">
							<div class="myaccount-tab-menu nav" role="tablist">
								<a href="{{route('Accueil_admin')}}" class="active" data-toggle="tab"><i class="fa fa-dashboard"></i>
									Tableau de bord</a>

								<a href="{{route('Nouvelle_information')}}"  ><i class="fa fa-edit"></i> Enregistrer information</a>
								<a href="{{route('nouveau_fournisseur')}}"><i class="fa fa-edit"></i> Nouveau fournisseur </a>
								<a href="{{route('Nouveau_categorie')}}" ><i class="fa fa-edit"></i> Enregistrer catégorie</a>
								
								<a href="{{route('Nouveau_produit')}}" ><i class="fa fa-edit"></i> Enregistrer produit</a>

								<a href="{{route('Liste_information')}}" ><i class="fa fa-info"></i> Liste des informations</a>

								<a href="{{route('Liste_categorie')}}" ><i class="fa fa-map-marker"></i> Liste des catégories</a>

								<a href="{{route('Liste_produit')}}" ><i class="fa fa-shopping-bag"></i> Liste des produits</a>
								
								<a href="{{route('liste_client')}}" ><i class="fa fa-users"></i> Liste des clients</a>

								<a href="{{route('liste_commande')}}" ><i class="fa fa-cart-arrow-down"></i> Liste des commandes</a>
								
								<a href="{{route('liste_transaction')}}" ><i class="fa fa-money"></i> Liste des transactions</a>
								
								<a href="{{route('permissions')}}" ><i class="fa fa-gear"></i>Autorisation</a>

								<a href="#" data-tooltip="Quick view" data-toggle="modal" data-target="#quick-view-modal-container"> <i class="fa fa-sign-out"></i> Déconnexion </a>
								
								

							</div>
						</div>
						<!-- My Account Tab Menu End -->

						<!-- My Account Tab Content Start -->
						<div class="col-lg-9 col-12">
							<div class="tab-content" id="myaccountContent" style="margin-bottom:15px">
								<!-- Single Tab Content Start -->
								<div class="tab-pane fade show active"  role="tabpanel">
									<div class="myaccount-content">
										<h3>Tableau de bord</h3>
									
										
									</div>
								</div>
								<!-- Single Tab Content End -->

								<!-- Single Tab Content Start -->
							
								<!-- Single Tab Content End -->
							</div>
							<div class="container">
							
							
							
										
										<div class="row">
							
												<div class="col-lg-4 card">
											</br>
											<h4 style="text-align"><a href="{{route('liste_transaction')}}"> Clients   <span style="padding-left: 100px; color: red; font-size:20px"> {{$tcli }} </span></a></h4>
											
											
											</br>
											</div>
											
											<div class="col-lg-4 card">
											</br>
											<h4 style="text-align"><a href="{{route('liste_transaction')}}"> Fournisseurs   <span style="padding-left: 100px; color: red; font-size:20px"> {{$tfou }} </span></a></h4>
											
											
											</br>
											</div>
											
											<div class="col-lg-4 card">
											</br>
											<h4 style="text-align"><a href="{{route('liste_client')}}">Produits <span style="padding-left: 100px; color: red; font-size:20px"> {{$tpro }} </span></a></h4>
											
											
											</br>
											</div>
											
					
											
										</div>	
										
										<br/>
							
							<div class="row">
							
								@php
								
								
								   
								   $sct =  number_format($scmd, 0, ' ', ' ');
								   
								   $sctt =  number_format($scmdt, 0, ' ', ' '); 
								   
								   $sctnt =  number_format($scmdnt, 0, ' ', ' '); 
								   
								   $tpte =  number_format($tptem, 0, ' ', ' '); 
								   
								   $tpat =  number_format($tpatm, 0, ' ', ' '); 
								   
								   $tpaie =  number_format($tpaiem, 0, ' ', ' '); 
								   
								
								@endphp
							
											<div class="col-lg-4 card">
											</br>
											<h4 style="text-align"><a href="{{route('liste_commande')}}">Commandes  <span style="padding-left: 100px ; color: red; font-size:20px">{{$cmd }} </span></a></h4>
											
											<span style="text-align; color: #007bff; font-size:20px; font-weight:700">{{$sct }} USD</span>
											</br>
											</div>
											
											<div class="col-lg-4 card">
											</br>
											<h4 style="text-align"><a href="{{route('liste_commande')}}">Commandes traitées  <span style="padding-left: 30px; color: red; font-size:20px">{{$cmdtr }} </span></a></h4>
											
											<span style="text-align; color: #007bff; font-size:20px; font-weight:700">{{$sctt }} USD </span>
											</br>
											</div>
											
											<div class="col-lg-4 card">
											</br>
											<h4 style="text-align"><a href="{{route('liste_commande')}}">Commandes non traitées  <span style="padding-left: 5px; color: red; font-size:20px">{{$cmdntr }} </span></a></h4>
											
											<span style="text-align; color: #007bff; font-size:20px; font-weight:700">{{$sctnt }} USD </span>
											</br>
											</div>
											
					
											
										</div>
				
										<br/>
										<div class="row">
							
												<div class="col-lg-4 card">
											</br>
											<h4 style="text-align"><a href="{{route('liste_transaction')}}">Paiements   <span style="padding-left: 100px; color: red; font-size:20px"> {{$tp }} </span></a></h4>
											
											<span style="text-align; color: #007bff; font-size:20px; font-weight:700"> {{$tpaie }} USD</span>
											</br>
											</div>
											
											<div class="col-lg-4 card">
											</br>
											<h4 style="text-align"><a href="{{route('liste_transaction')}}">Paiements | Terminés  <span style="padding-left: 30px ; color: red; font-size:20px"> {{$pt }}  </span></a></h4>
											
											<span style="text-align; color: #007bff; font-size:20px; font-weight:700"> {{$tpte }} USD </span>
											</br>
											</div>
											
											<div class="col-lg-4 card">
											</br>
											<h4 style="text-align"><a href="{{route('liste_client')}}">Paiements | En attente <span style="padding-left: 20px ; color: red; font-size:20px"> {{$pa }} </span></a></h4>
											
											<span style="text-align; color: #007bff; font-size:20px; font-weight:700"> {{$tpat }} USD </span>
											</br>
											</div>
											
					
											
										</div>
										
										</div>
						</div>
						<!-- My Account Tab Content End -->
					</div>

				</div>
			</div>
		</div>
	</div>
  
  
  	<div class="modal fade quick-view-modal-container"  id="quick-view-modal-container" tabindex="-1" role="dialog"
		aria-hidden="true">
		<div class="modal-dialog modal-dialog-centered" role="document">
			<div class="modal-content modal-sm">
				
				<div class="modal-body">
					Voulez-vous vraiment vous déconnecter ?
				</div>
				 <div class="modal-footer bg-whitesmoke br" style="background-color:#ffffff" >
                  <button type="button" class=" btn btn-light" data-dismiss="modal">Non</button>
                      <form action="{{route('Deconnexion')}}" method="post" style="display: inline">
                        {{csrf_field()}}
                     
                      <button type="submit" class="btn btn-success">Oui</button>

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

		</div>
	</div>


@push('scripts')
	



@endpush

@endsection