@extends('layouts.partials.master') @section('title', 'Dashboard') @push('styles') @endpush @section('content') @include('layouts.components.alerts') @include('layouts.components.general-title', ['title' => 'Dashboard'])
@include('layouts.components.section-title', [ 'title' => 'Geral', 'withDateFilter' => true, 'route' => 'dashboard.indicators', ])
@include('dashboard.partials.donut-chart', ['title' => 'Novos comerciantes'])
@include('layouts.components.section-title', ['title' => 'Vendas'])
@include('dashboard.partials.line-chart', [ 'title' => 'Produtos adicionados ao carrinho', 'type' => 'cart', ])
@include('dashboard.partials.line-chart', [ 'title' => 'Produtos comprados no marketplace', 'type' => 'sell_products', ])
@include('dashboard.partials.bar-chart', [ 'title' => 'Produtos comprados no marketplace (por comerciante)', 'type' => 'products_per_merchant', ])
@include('dashboard.partials.bar-chart', [ 'title' => 'Serviços reservados no marketplace (por comerciante)', 'type' => 'services_per_merchant', ])
@include('dashboard.partials.bar-chart', [ 'title' => 'Nº de visitantes por estabelecimento', 'type' => 'visits_per_place', ])
@include('dashboard.partials.bar-chart', [ 'title' => 'Nº de pontos por cliente final', 'type' => 'points_per_user', ])
@endsection @push('scripts') @vite('resources/js/charts.js') @include('dashboard.partials.charts-configuration', [ 'newMerchants' => $newMerchants, 'logsCounts' => $logsCounts, 'chartDataProductsToCart' => $chartDataProductsToCart, 'chartDataProductsSold' => $chartDataProductsSold, 'chartDataProductsPerMerchant' => $chartDataProductsPerMerchant, 'chartDataPeoplePerPlace' => $chartDataPeoplePerPlace, 'chartDataServiceReservation' => $chartDataServiceReservation, 'chartDataPointsPerUser' => $chartDataPointsPerUser, ]) @endpush