@extends('layouts.vendor.app') @section('title',translate('messages.dashboard')) @section('content')
@if(auth('vendor')->check())

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

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

{{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