<!DOCTYPE html>
<html lang="en">


<!-- Mirrored from www.radixtouch.in/templates/logicswave/ality/source/light/ by HTTrack Website Copier/3.x [XR&CO'2014], Wed, 02 Sep 2020 20:02:10 GMT -->
<head>
  <meta charset="UTF-8">
  <meta content="width=device-width, initial-scale=1, maximum-scale=1, shrink-to-fit=no" name="viewport">
  <title>@yield('title') - EASYSHOP</title>
  <!-- General CSS Files -->
  <link rel="stylesheet" href="{{asset('assets/css/app.min.css')}}">
  <!-- Template CSS -->
  <link rel="stylesheet" href="{{asset('assets/css/style.css')}}">
  <link rel="stylesheet" href="{{asset('assets/css/components.css')}}">
  <link rel="stylesheet" href="{{asset('assets/bundles/select2/dist/css/select2.min.css')}}">
  <link rel="stylesheet" href="{{asset('assets/bundles/jquery-selectric/selectric.css')}}">
  <link rel="stylesheet" href="{{asset('assets/bundles/prism/prism.css')}}">
  <!-- Custom style CSS -->
  <link rel="stylesheet" href="{{asset('assets/css/custom.css')}}">
  <link href="{{asset('toastr/toastr.min.css')}}" rel="stylesheet" type="text/css" />
  <link rel="stylesheet" href="{{asset('assets/bundles/datatables/datatables.min.css')}}">
  <link rel="stylesheet" href="{{asset('assets/bundles/datatables/DataTables-1.10.16/css/dataTables.bootstrap4.min.css')}}">
  <link rel='shortcut icon' type='image/x-icon' href="{{asset('assets/img/favicon.jpg')}}" />
  <link rel="stylesheet" href="{{asset('assets/css/test.css')}}">
  <script src="{{asset('assets/js/jsSimpleDatePickr.js')}}"></script>
  <script src="{{asset('assets/js/jsSimpleDatePickrInit.js')}}"></script>
  
</head>

<body>
  <!--<div class="loader"></div>-->
  <div id="app">
    <div class="main-wrapper main-wrapper-1">
      <div class="navbar-bg"></div>
      <nav class="navbar navbar-expand-lg main-navbar">
        <div class="form-inline mr-auto">
          <ul class="navbar-nav mr-3">
            <li><a href="#" data-toggle="sidebar" class="nav-link nav-link-lg collapse-btn" style="color:#fff;"><i
                  class="fas fa-bars"></i></a></li>
            <li><a href="#" class="nav-link nav-link-lg fullscreen-btn" style="color:#fff;">
                <i class="fas fa-expand"></i>
              </a>
            </li>
          </ul>
        </div>
        <ul class="navbar-nav navbar-right">
          <li class="dropdown"><a href="#" data-toggle="dropdown"
              class="nav-link dropdown-toggle nav-link-lg nav-link-user">
              <img alt="image" src="{{asset('assets/img/user.png')}}" class="user-img-radious-style">
              <span class="d-sm-none d-lg-inline-block"></span></a>
            <div class="dropdown-menu dropdown-menu-right">
              <div class="dropdown-title">Bienvenue {{session('user')->nom}}</div>
              <a href="#" class="dropdown-item has-icon">
                <i class="fas fa-cog"></i> Paramètres
              </a>
			   @if ( session('user')->roles == "Admin" )
              <a href="{{route('Register')}}" class="dropdown-item has-icon">
                <i class="far fa-user"></i> Nouvel utilisateur
              </a>
              <a href="{{route('Liste_des_utilisateurs')}}" class="dropdown-item has-icon">
                <i class="fas fa-users"></i> Liste des utilisateurs
              </a>
              @endif
			  <a href="{{route('change_password', ['id'=>session('user')->id])}}" class="dropdown-item has-icon">
                <i class="fas fa-cog"></i> Changer mot de passe
              </a>
              <div class="dropdown-divider"></div>
              <form method="post" action="{{route('Deconnexion')}}">
					 {{csrf_field()}}
				<button type="submit" class="dropdown-item has-icon text-danger">
                    <i  style="margin-top:7px" class="fas fa-sign-out-alt"></i> <strong style="font-size: 12px">Déconnexion</strong>
                </button>
				</form>
            </div>
          </li>
        </ul>
      </nav>
      <div class="main-sidebar sidebar-style-2">
        <aside id="sidebar-wrapper">
          <div class="sidebar-brand">
			@if (session('user')->roles == "Admin" || session('user')->roles == "Gérant")
            <a href="{{route('accueil')}}">
             <img alt="image" src="{{asset('assets/img/brand.png')}}" class="header-logo" />
            </a>
			@else
			<a href="{{route('vente')}}">
              <img alt="image" src="{{asset('assets/img/brand.png')}}" class="header-logo" />
            </a>	
			@endif
          </div>
          <ul class="sidebar-menu">
			<h5 style="text-align:center;color:#c15005;margin-top:8px;"><center>MENU </center></h5>
			@if (session('user')->roles == "Admin")
			<li class="dropdown">
              <a href="#" class="nav-link has-dropdown"><i class="fas fa-shopping-bag"></i><span>Ma boutique</span></a>
              <ul class="dropdown-menu">
				<li><a class="nav-link" href="{{route('nouveau-magasin')}}">Nouveau/ Maj</a></li>
				<li><a class="nav-link" href="{{route('nouveau-taxe')}}">Enregistrer taxe</a></li>
              </ul>
            </li>
             <li class="dropdown">
              <a href="#" class="nav-link has-dropdown"><i class="fas fa-shopping-bag"></i><span>Gestion des dépôts</span></a>
              <ul class="dropdown-menu">
				<li><a class="nav-link" href="{{route('nouveau-depot')}}">Nouveau/ Liste</a></li>
              </ul>
            </li>
			@endif
			@php
			$v = DB::table('magasin')->get()->count();
			@endphp
			@if ($v > 0)
			<li class="dropdown">
              <a href="#" class="nav-link has-dropdown"><i class="fas fa-cart-plus"></i><span>Proforma</span></a>
              <ul class="dropdown-menu">
                <li><a class="nav-link" href="{{route('proforma')}}">Nouveau/Liste</a></li>
              </ul>
            </li>
			<li class="dropdown">
              <a href="#" class="nav-link has-dropdown"><i class="fas fa-users"></i><span>Commandes clients</span></a>
              <ul class="dropdown-menu">
                <li><a class="nav-link" href="{{route('nouveau_client')}}">Enregistrer un client</a></li> 
				  <li><a class="nav-link" href="{{route('vente_client')}}">Enregistrer commande</a></li> 
				  <li><a class="nav-link" href="{{route('toutes-les-ventes-client')}}">Liste des commandes</a></li>
				  <li><a class="nav-link" href="{{route('liste_des_ventes_client')}}">Comptes clients</a></li>
				    @if (session('user')->roles == "Validateur"  || session('user')->roles == "Admin")
    				    <li><a class="nav-link" href="{{route('liste_des_ventes_client')}}">Comptes clients</a></li> 
    				    <li><a class="nav-link" href="{{route('liste_des_paiements')}}">Liste des paiements </a></li> 
    					<li><a class="nav-link" href="{{route('recherche-facture-client')}}">Rech. facture </a></li> 
    					<li hidden><a class="nav-link" href="{{route('historiquebenef')}}">Gestion des gains</a></li> 
    					<li hidden><a class="nav-link" href="{{route('listeVente')}}">Cloturer la journée</a></li>
    					<li hidden><a class="nav-link" href="{{route('liste-des-ventes-cloturees')}}">Liste des versements</a></li>
    					<li><a class="nav-link" href="{{route('remboursement')}}">Remboursement</a></li>
					@endif
						<li><a class="nav-link" href="{{route('nouveau-retour-client')}}">Retour d'articles</a></li>
              </ul>
            </li>
            <li class="dropdown">
              <a href="#" class="nav-link has-dropdown"><i class="fas fa-cart-plus"></i><span>Vente au comptant</span></a>
              <ul class="dropdown-menu">
                <li hidden><a class="nav-link" href="{{route('vente')}}">Nouveau</a></li>
                <li><a class="nav-link" href="{{route('vente-code')}}">Nouveau</a></li>
                @if (session('user')->roles == "Validateur")
                <li><a class="nav-link" href="{{route('listeVente')}}">Cloturer vente du jour</a></li>
				<li><a class="nav-link" href="{{route('historique-par-caissier')}}">Journal caisse</a></li>
                <li><a class="nav-link" href="{{route('liste-des-ventes-cloturees')}}">Versement caissier</a></li>
                @endif
                <li><a class="nav-link" href="{{route('liste-des-produits')}}">Liste des produits</a></li>
				<li hidden><a class="nav-link" href="{{route('versement_gerant')}}">Versement gérant</a></li>
                <li><a class="nav-link" href="{{route('toutes-les-ventes')}}">Toutes les ventes</a></li>
				<li><a class="nav-link" href="{{route('recherche-facture')}}">Rechercher une facture </a></li>
				<li><a class="nav-link" href="{{route('nouveau-retour')}}">Retour d'articles</a></li>
				<li><a class="nav-link" href="{{route('historique-par-caissier')}}">Journal caisse</a></li>
              </ul>
            </li>
            @if (session('user')->roles == "Admin" || session('user')->roles == "Gérant")
			<li class="dropdown" hidden>
              <a href="#" class="nav-link has-dropdown"><i class="fas fa-cart-plus"></i><span>Transfert dépôt vers Boutique</span></a>
              <ul class="dropdown-menu">
                <li><a class="nav-link" href="{{route('nouveau_transfert')}}">Nouveau transfert </a></li>
                <li><a class="nav-link" href="{{route('liste-des-transferts')}}">Liste</a></li>
              </ul>
            </li>
             <li class="dropdown" hidden>
              <a href="#" class="nav-link has-dropdown"><i class="fas fa-shopping-bag"></i><span>Transferts boutique vers boutique</span></a>
              <ul class="dropdown-menu">
                <li><a class="nav-link" href="{{route('nouveau_transfert_boutique')}}">Nouveau transfert </a></li>
                <li><a class="nav-link" href="{{route('liste_transfert_recu_boutique')}}">Transferts reçus </a></li>
                @if (session('user')->roles == "Admin")
                <li><a class="nav-link" href="{{route('liste-transfert-boutique')}}">Liste des transferts </a></li>
               @endif
              </ul>
            </li>
            <li class="dropdown" hidden>
              <a href="#" class="nav-link has-dropdown"><i class="fas fa-shopping-bag"></i><span>Transfert dépôt vers dépôt</span></a>
              <ul class="dropdown-menu">
                <li><a class="nav-link" href="{{route('depot-depot')}}">Nouveau transfert </a></li>
                <li><a class="nav-link" href="{{route('depot-liste')}}">Liste des transferts</a></li>
                @if (session('user')->roles == "Admin" || session('user')->roles == "Gérant")
                <li><a class="nav-link" href="{{route('transfert-vers-depot')}}">Recherche</a></li>
                @endif
              </ul>
            </li>
		
			<li class="dropdown">
              <a href="#" class="nav-link has-dropdown"><i class="fas fa-shopping-bag"></i><span>Produit/Stock</span></a>
              <ul class="dropdown-menu">
				<li><a class="nav-link" href="{{route('nouvelle_categorie')}}">Catégorie produit</a></li>
				<li><a class="nav-link" href="{{route('nouveauProduit')}}">Nouveau produit</a></li> 
                <li><a class="nav-link" href="{{route('liste-des-produits')}}">Stock magasin</a></li>
                <li><a class="nav-link" href="{{route('stock-general-magasin')}}">Stock dépôt</a></li>
                <li><a class="nav-link" href="{{route('stock')}}">Situation/Valeur/stock</a></li>
              </ul>
            </li>
			<li class="dropdown">
              <a href="#" class="nav-link has-dropdown"><i class="fas fa-cart-plus"></i><span>Inventaires</span></a>
              <ul class="dropdown-menu">
                <li><a class="nav-link" href="{{route('inventaire_magasin')}}">Inventaire boutique </a></li>
                <li><a class="nav-link" href="{{route('inventaire-general')}}">Inventaire dépôt</a></li>
                    <li><a class="nav-link" href="{{route('rinventairemagasin')}}">Résultat - Inventaire</a></li>
              </ul>
            </li>
			<li class="dropdown" hidden>
              <a href="#" class="nav-link has-dropdown"><i class="fas fa-id-badge"></i><span>Taxes</span></a>
              <ul class="dropdown-menu">
                <li><a class="nav-link" href="{{route('nouveau-taxe')}}">Enregistrer taxe</a></li>
                <li hidden><a class="nav-link" href="{{route('nouvelle-remise')}}">Enregistrer remise</a></li>
              </ul>
            </li>
			<li class="dropdown">
              <a href="#" class="nav-link has-dropdown"><i class="fas fa-cart-arrow-down"></i><span>Appro</span></a>
              <ul class="dropdown-menu">
				<li><a class="nav-link" href="{{route('nouveau-fournisseur')}}">Nouveau fournisseur</a></li>
                <li><a class="nav-link" href="{{route('liste_des_fournisseurs')}}">Liste des fournisseurs</a></li>
                <li><a class="nav-link" href="{{route('nouveau_appro')}}">Nouvel appro </a></li>
                <li><a class="nav-link" href="{{route('liste-des-achatsfou')}}">Liste appro</a></li>
              </ul>
            </li>
            
			<li class="dropdown">
              <a href="#" class="nav-link has-dropdown"><i class="fas fa-shopping-bag"></i><span>Transferts</span></a>
              <ul class="dropdown-menu">
                <li><a class="nav-link" href="{{route('nouveau_transfert')}}">Nouveau transfert </a></li>
                <li><a class="nav-link" href="{{route('etat.transfert')}}">Etat des Transferts (Stock) </a></li>
               <!-- <li><a class="nav-link" href="{{route('liste_transfert')}}">Transferts effectués </a></li>
                <li><a class="nav-link" href="{{route('liste_transfert_recu')}}">Transferts reçus </a></li>-->
              </ul>
            </li>
			<li class="dropdown" hidden>
              <a href="#" class="nav-link has-dropdown"><i class="fas fa-shopping-bag"></i><span>Personnel/Paiement</span></a>
              <ul class="dropdown-menu">
				<li><a class="nav-link" href="{{route('nouvel_employe')}}">Nouveau/Liste</a></li>
				<li><a class="nav-link" href="{{route('liste_des_employes')}}">Paiement</a></li>
				<li><a class="nav-link" href="{{route('liste-des-salaires-journalier')}}">Salaires journ.</a></li>
				<li><a class="nav-link" href="{{route('liste-des-salaires-permanent')}}">Salaires perm.</a></li>
              </ul>
            </li>
			@endif
			<li class="dropdown" hidden>
              <a href="#" class="nav-link has-dropdown"><i class="fas fa-cart-arrow-down"></i><span>Prestations</span></a>
              <ul class="dropdown-menu">
                <li><a class="nav-link" href="{{route('prestation')}}">Nouvelle facture </a></li>
                <li><a class="nav-link" href="{{route('liste-des-prestations')}}">Liste factures prestation</a></li>
              </ul>
            </li>
			<li class="dropdown">
              <a href="#" class="nav-link has-dropdown"><i class="fas fa-balance-scale"></i><span>Caisse de fonction.</span></a>
              <ul class="dropdown-menu">
				<li><a class="nav-link" href="{{route('caisse')}}">Décaissement/Dépense</a></li>
				@if (session('user')->roles=="Gérant" || session('user')->roles=="Admin")
                <li><a class="nav-link" href="{{route('typededepense')}}">Type de dépense</a></li>
                <li><a class="nav-link" href="{{route('stock')}}">Situation finance/stock</a></li>
				@endif
				@if (session('user')->roles=="Admin" || session('user')->roles=="Gérant")
				<li><a class="nav-link" href="{{route('journal-de-caisse')}}">Caisse recette</a></li>
				<li><a class="nav-link" href="{{route('caisse-depense')}}">Caisse dépense</a></li>
				@endif
              </ul>
            </li>
			@if (session('user')->roles=="Gérant" || session('user')->roles=="Admin")
			<li class="dropdown" hidden>
              <a href="#" class="nav-link has-dropdown"><i class="fas fa-shopping-bag"></i><span>Matière premières</span></a>
              <ul class="dropdown-menu">
				<li><a class="nav-link" href="{{route('nouvelle-matiere')}}">Nouveau</a></li>
				<li><a class="nav-link" href="{{route('appro-matiere')}}">Approvisionnement</a></li>
				<li><a class="nav-link" href="{{route('retourappromatiere')}}">Renvoi de stock</a></li>
				<li><a class="nav-link" href="{{route('liste-des-matieres')}}">Stock matières prem.</a></li>
              </ul>
            </li>
			<li class="dropdown" hidden>
              <a href="#" class="nav-link has-dropdown"><i class="fas fa-shopping-bag"></i><span>Emballage</span></a>
              <ul class="dropdown-menu">
				<li><a class="nav-link" href="{{route('nouvel-emballage')}}">Nouveau/Liste</a></li>
				<li><a class="nav-link" href="{{route('inventaire-emballage')}}">Inventaire</a></li>
				<li><a class="nav-link" href="{{route('appro-emballage')}}">Approvisionnement</a></li>
				<li><a class="nav-link" href="{{route('liste-emballage')}}">Stock emballage</a></li>
				<li><a class="nav-link" href="{{route('retourapproemballage')}}">Renvoi de stock</a></li>
              </ul>
            </li>
			<li class="dropdown" hidden>
              <a href="#" class="nav-link has-dropdown"><i class="fas fa-shopping-bag"></i><span>Production</span></a>
              <ul class="dropdown-menu">
				<li><a class="nav-link" href="{{route('production')}}">Nouveau/Liste</a></li>
              </ul>
            </li>
			@endif
			<li class="dropdown" hidden>
              <a href="#" class="nav-link has-dropdown"><i class="fas fa-shopping-basket"></i><span>Imprimables</span></a>
              <ul class="dropdown-menu">
                <li><a class="nav-link" href="{{route('liste-des-ventes-de-la-journee')}}">Par magasin</a></li>
                <li><a class="nav-link" href="{{route('creance')}}">Créances</a></li>
				<li><a class="nav-link" href="{{route('liste_des_ventes_client')}}">Facture client</a></li> 
				<li><a class="nav-link" href="{{route('billetage')}}">Billetage journée</a></li> 
              </ul>
            </li>
			@endif
			<li class="dropdown">
              <a href="#" class="nav-link has-dropdown"><i class="fas fa-shopping-bag"></i><span>Destockage</span></a>
              <ul class="dropdown-menu">
				<li><a class="nav-link" href="{{route('nouveau-destockage')}}">Nouveau/Liste</a></li>
              </ul>
            </li>
			 <br>
          </ul>
        </aside>
      </div>
      <!-- Main Content -->
      <div class="main-content">
        <section class="section">
			@yield('content')
        </section>
      </div>
      <footer class="main-footer">
        <div class="footer-left">
          Copyright &copy; 2022. Tous droits reservés.<div class="bullet"></div> Développé par <a target="_blank" href="https://kbe-technologies.com" style="color:yellow;">KBE TECHNOLOGIES</a>
        </div>
        <div class="footer-right">
        </div>
      </footer>
    </div>
  </div>
  <!-- General JS Scripts -->
  <script src="{{asset('assets/js/app.min.js')}}"></script>
  <!-- JS Libraies -->
  <!-- Page Specific JS File -->
  <!-- Template JS File -->
  <script src="{{asset('assets/js/scripts.js')}}"></script>
  <!-- Custom JS File -->
  <script src="{{asset('assets/js/custom.js')}}"></script>
  <script src="{{asset('toastr/toastr.min.js')}}"></script>
    <!-- JS Libraies -->
  <script src="{{asset('assets/bundles/datatables/datatables.min.js')}}"></script>
  <script src="{{asset('assets/bundles/datatables/DataTables-1.10.16/js/dataTables.bootstrap4.min.js')}}"></script>
  <script src="{{asset('assets/bundles/apexcharts/apexcharts.min.js')}}"></script>
  <!-- Page Specific JS File -->
  <script src="{{asset('assets/js/page/datatables.js')}}"></script>
    <script src="{{asset('assets/bundles/select2/dist/js/select2.full.min.js')}}"></script>
  <script src="{{asset('assets/bundles/jquery-selectric/jquery.selectric.min.js')}}"></script>
  <!-- JS Libraies -->
  <script src="{{asset('assets/bundles/prism/prism.js')}}"></script>
  <script type="text/javascript">
  //<![CDATA[
  calInit("calendarMain", "", "champ_date", "jsCalendar", "day", "selectedDay");
  calInit("calendarMain2", "", "champ_date2", "jsCalendar", "day", "selectedDay");
  calInit("calendarMain3", "", "champ_date3", "jsCalendar", "day", "selectedDay");
  calInit("calendarMain4", "", "champ_date4", "jsCalendar", "day", "selectedDay");
  calInit("calendarMain5", "", "champ_date5", "jsCalendar", "day", "selectedDay");
  calInit("calendarMain6", "", "champ_date6", "jsCalendar", "day", "selectedDay");
  //]]>
</script>
  @stack('scripts')
</body>


<!-- Mirrored from www.radixtouch.in/templates/logicswave/ality/source/light/ by HTTrack Website Copier/3.x [XR&CO'2014], Wed, 02 Sep 2020 20:03:28 GMT -->
</html>