@extends('admin.layouts.app') @push('libraries_top') @endpush @section('content')

{{trans('admin/main.welcome')}}, {{ $authUser->full_name }}!

@can('admin_general_dashboard_quick_access_links') @endcan @can('admin_clear_cache')

 

@include('admin.includes.delete_button',[ 'url' => getAdminPanelUrl().'/clear-cache', 'btnClass' => 'btn btn-outline-white btn-lg btn-icon icon-left mt-2 w-100', 'btnText' => trans('admin/main.clear_all_cache'), 'hideDefaultClass' => true ])
@endcan
@can('admin_general_dashboard_daily_sales_statistics') @if(!empty($dailySalesTypeStatistics))
{{trans('admin/main.daily_sales_type_statistics')}}
{{ $dailySalesTypeStatistics['webinarsSales'] }}
{{trans('admin/main.live_class')}}
{{ $dailySalesTypeStatistics['courseSales'] }}
{{trans('admin/main.course')}}
{{ $dailySalesTypeStatistics['appointmentSales'] }}
{{trans('admin/main.appointment')}}

{{trans('admin/main.today_sales')}}

{{ $dailySalesTypeStatistics['allSales'] }}
@endif @endcan
@can('admin_general_dashboard_income_statistics') @if(!empty($getIncomeStatistics))
{{trans('admin/main.income_statistics')}}
{{ handlePrice($getIncomeStatistics['todaySales']) }}
{{trans('admin/main.today')}}
{{ handlePrice($getIncomeStatistics['monthSales']) }}
{{trans('admin/main.this_month')}}
{{ handlePrice($getIncomeStatistics['yearSales']) }}
{{trans('admin/main.this_year')}}

{{trans('admin/main.total_incomes')}}

{{ handlePrice($getIncomeStatistics['totalSales']) }}
@endif @endcan
@can('admin_general_dashboard_total_sales_statistics') @if(!empty($getTotalSalesStatistics))
{{trans('admin/main.salescount')}}
{{ $getTotalSalesStatistics['todaySales'] }}
{{trans('admin/main.today')}}
{{ $getTotalSalesStatistics['monthSales'] }}
{{trans('admin/main.this_month')}}
{{ $getTotalSalesStatistics['yearSales'] }}
{{trans('admin/main.this_year')}}

{{trans('admin/main.total_sales')}}

{{ $getTotalSalesStatistics['totalSales'] }}
@endif @endcan
@can('admin_general_dashboard_new_sales') @endcan @can('admin_general_dashboard_new_comments') @endcan @can('admin_general_dashboard_new_tickets') @endcan @can('admin_general_dashboard_new_reviews') @endcan
@can('admin_general_dashboard_sales_statistics_chart')

{{trans('admin/main.sales_statistics')}}

@if(!empty($getMonthAndYearSalesChartStatistics))
@if($getMonthAndYearSalesChartStatistics['todaySales']['grow_percent']['status'] == 'up') @else @endif {{ $getMonthAndYearSalesChartStatistics['todaySales']['grow_percent']['percent'] }}
{{ handlePrice($getMonthAndYearSalesChartStatistics['todaySales']['amount']) }}
{{trans('admin/main.today_sales')}}
@if($getMonthAndYearSalesChartStatistics['weekSales']['grow_percent']['status'] == 'up') @else @endif {{ $getMonthAndYearSalesChartStatistics['weekSales']['grow_percent']['percent'] }}
{{ handlePrice($getMonthAndYearSalesChartStatistics['weekSales']['amount']) }}
{{trans('admin/main.week_sales')}}
@if($getMonthAndYearSalesChartStatistics['monthSales']['grow_percent']['status'] == 'up') @else @endif {{ $getMonthAndYearSalesChartStatistics['monthSales']['grow_percent']['percent'] }}
{{ handlePrice($getMonthAndYearSalesChartStatistics['monthSales']['amount']) }}
{{trans('admin/main.month_sales')}}
@if($getMonthAndYearSalesChartStatistics['yearSales']['grow_percent']['status'] == 'up') @else @endif {{ $getMonthAndYearSalesChartStatistics['yearSales']['grow_percent']['percent'] }}
{{ handlePrice($getMonthAndYearSalesChartStatistics['yearSales']['amount']) }}
{{trans('admin/main.year_sales')}}
@endif
@endcan @can('admin_general_dashboard_recent_comments')

{{trans('admin/main.recent_comments')}}

    @foreach($recentComments as $recentComment)
  • avatar
    {{ dateTimeFormat($recentComment->created_at, 'j M Y | H:i') }}
    {{ $recentComment->user->full_name }}
    {{ truncate($recentComment->comment, 150) }}
  • @endforeach
@endcan
@can('admin_general_dashboard_recent_tickets') @if(!empty($recentTickets)) @endif @endcan @can('admin_general_dashboard_recent_webinars') @if(!empty($recentWebinars)) @endif @endcan @can('admin_general_dashboard_recent_courses') @if(!empty($recentCourses)) @endif @endcan
@can('admin_general_dashboard_users_statistics_chart')

{{trans('admin/main.new_registration_statistics')}}

{{--Views --}}
@endcan
@endsection @push('scripts_bottom') @endpush