@extends('layouts.app') @section('admin_title') {{__('Dashboard')}} @endsection @section('content') @if(!auth()->user()->hasRole('driver')) @include('layouts.headers.cards.general') @else @include('layouts.headers.cards.driver') @endif @if( (auth()->user()->hasRole('admin')&&config('app.isft')) || (auth()->user()->hasRole('owner')&&in_array("drivers", config('global.modules',[]))) )
@include('drivers.map')
@endif @if(!auth()->user()->hasRole('driver'))
{{ __('Overview') }}

{{ __('Sales value') }}

@if(count($salesValue)>0)
@else

{{ __('No sales right now!') }}

@endif
{{ __('Performance') }}

{{ __('Total orders') }}

@if(count($salesValue)>0)
@else

{{ __('No orders right now!') }}

@endif
@if ($doWeHaveExpensesApp)
{{ __('Expenses') }} ( 30 {{ __('days') }} )

{{ __('By category') }}

@if(count($salesValue)>0)
@else

{{ __('No expenses right now!') }}

@endif
{{ __('Expenses') }} ( 30 {{ __('days') }} )

{{ __('By vendor') }}

@if(count($salesValue)>0)
@else

{{ __('No expenses right now!') }}

@endif
@endif @if(auth()->user()->hasRole('owner')&&config('settings.enable_pricing'))

@include("plans.info",['planAttribute'=> auth()->user()->restorant->getPlanAttribute(),'showLinkToPlans'=>true]) @endif @include('layouts.footers.auth')
@endif @endsection @section('topjs') @endsection @push('js') @if( (auth()->user()->hasRole('admin')&&config('app.isft')) || (auth()->user()->hasRole('owner')&&in_array("drivers", config('global.modules',[]))) )