@extends('layouts.vendor.app') @section('title',translate('messages.dashboard')) @section('content')
@if(\App\CentralLogics\Helpers::employee_module_permission_check('dashboard')) @if ( Session::get('stock_out_reminder_close_btn') !== true && isset($out_out_count) && $out_out_count > 99 ) @elseif ( Session::get('stock_out_reminder_close_btn') !== true && isset($out_out_count) && $out_out_count <= 99 && $out_out_count > 1 ) @elseif ( Session::get('stock_out_reminder_close_btn') !== true && isset($out_out_count) && $out_out_count == 1 && isset($food)) @endif

{{translate('order_statistics')}}

@include('vendor-views.partials._dashboard-order-stats',['data'=>$data])

{{ translate('Want_to_get_highlighted?') }}

{{ translate('Create_ads_to_get_highlighted_on_the_app_and_web_browser') }}

{{ translate('Create_Ads') }}

{{translate('messages.yearly_statistics')}}

@php($amount=array_sum($earning)) {{translate('messages.commission_given')}} : {{\App\CentralLogics\Helpers::format_currency(array_sum($commission))}} {{translate('messages.total_earning')}} : {{\App\CentralLogics\Helpers::format_currency(array_sum($earning))}}
{{ \App\CentralLogics\Helpers::currency_symbol() }}({{translate('messages.currency')}})
@include('vendor-views.partials._top-selling-foods',['top_sell'=>$data['top_sell']])
@include('vendor-views.partials._most-rated-foods',['most_rated_foods'=>$data['most_rated_foods']])
@else @endif
@endsection @push('script') @endpush @push('script_2') @endpush