@php $home = new \App\Http\Controllers\HomeController(); use Illuminate\Http\Request; $request = Request::capture(); $startDate = $request->startDay ? $request->startDay : date('Y-01-01'); $endDate = $request->endDay ? $request->endDay : date('Y-12-31'); $chart = $home->chart_vente($startDate, $endDate); $chart2 = $home->chart_achat($startDate, $endDate); $privilegecheck = new \App\Users_controle(); $check_privilege = $privilegecheck->has_privilege( \Illuminate\Support\Facades\Session::get('user')['id'], 'producteur', ); @endphp @extends('dashboard._blank') @section('sidebar') @include('dashboard._sidebar') @endsection @section('content') @if ($check_privilege)
{{-- Home slider --}} @include('dashboard.Boutique/Components/admin/home-slider')
@if ($total_boutique < 1)

Tableau de bord

@endif
@include('dashboard.Boutique/Components/admin/statistique-filter') @include('dashboard.Boutique.Components/admin/panel-statistique',[ 'articleProducteur'=>$articleProducteur, 'article_merchant'=>$article_merchant, 'producerPercentage'=>$producerPercentage, 'total_commande'=>$total_commande ])
@else
{{-- Slider --}} @include('dashboard.Boutique.Components/merchant/home-slider')
{{-- Bouton Toutes les boutiques --}} @include('dashboard.Boutique.Components/common/btn-all-boutique') {{-- Bouton de retrait --}} @include('dashboard.Boutique.Components/common/btn-retrait', [ 'portefeuilles'=>$portefeuilles, 'total_boutique'=>$total_boutique ]) {{-- Faq --}} @include('dashboard.Boutique.Components/common/faq')
{{-- Demarrer l'aventure --}} @include('dashboard.Boutique.Components/common/demarrer-aventure',[ 'total_boutique'=>$total_boutique ]) {{-- Identite utilisateur --}} @include('dashboard.Boutique.Components/common/user-should-be-identify')
{{-- Code de Parrainage --}} @include('dashboard.Boutique.Components/common/code-parrainage',[ 'code'=>$code ]) @include('dashboard.Boutique.Components.merchant.panel-marketer',[ 'marketers'=>$marketers ])

STATISTIQUES GENERALES

{{-- Filter Panel For Statistique --}} @include('dashboard.Boutique.Components.merchant.statistique-filter') {{-- List des portefeuilles par devise --}} @include('dashboard.Boutique.Components.common.list-portefeuille',[ 'portefeuilles'=>$portefeuilles ]) {{-- Panel Statistique --}} @include('dashboard.Boutique.Components.merchant.panel-statistique',[ 'total_articles_activer'=>$total_articles_activer, 'total_achat'=>$total_achat, 'total_vente'=>$total_vente, 'total_shipping'=>$total_shipping, 'total_commande'=>$total_commande, 'total_boutique'=>$total_boutique ]) @include('dashboard.Boutique.Components.merchant.rapport-vente-achat')
{{-- Last Added Product --}} @include('dashboard.Boutique.Components.common.recent-added-product', [ 'articles_lists'=>$articles_lists ]) {{-- Product added to Favorite --}} @include('dashboard.Boutique.Components.common.favorite-product',[ 'favoris_article'=>$favoris_article ]) {{-- Recent visited boutique --}} @include('dashboard.Boutique.Components.common.recent-visited-boutique',[ 'boutiques'=>$boutiques ]) {{-- Favorite market --}} @include('dashboard.Boutique.Components.common.favorite-boutique',[ 'favoris_boutique'=>$favoris_boutique ])
@include('dashboard.Boutique.Components.common.description-modal') {{-- Demande de Retrait --}} @if (\Illuminate\Support\Facades\Session::get('user')['doc_validated']) @include('dashboard.paiement_box.retrait') @endif @endif @endsection @section('script') @endsection