@extends('themes.basic.business.layouts.app') @section('container', 'dashboard-container-xxl') @section('title', d_trans('Dashboard')) @section('header_title', d_trans('Dashboard')) @section('breadcrumbs', Breadcrumbs::render('business.dashboard')) @section('content')
{{ d_trans('Average Rating') }}
{{ $currentBusiness->avg_ratings }} {{ $currentBusiness->avg_ratings }}
{{ d_trans('Total Reviews') }}
{{ number_format($currentBusiness->total_reviews) }}
@if (authBusinessOwner()->isAdminOfCurrentBusiness())
{{ d_trans('Total Visitors') }}
{{ numberFormat($currentBusiness->total_views) }}
@endif
{{ d_trans('Reviews Statistics') }}
@include('themes.basic.business.partials.period-select', [ 'select_date' => $currentBusiness->created_at, 'select_key' => 'reviews_date', ])
{{ d_trans('Latest Reviews') }}
@if ($latestReviews->count() > 0) @else @include('themes.basic.business.partials.empty') @endif
@if (authBusinessOwner()->isAdminOfCurrentBusiness())
{{ d_trans('Views Statistics') }}
@include('themes.basic.business.partials.period-select', [ 'select_date' => $currentBusiness->created_at, 'select_key' => 'views_date', ])
@endif
@push('top_scripts') @endpush @push('scripts_libs') @endpush @endsection