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

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

@can('admin_general_dashboard_quick_access_links')

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

@can('admin_webinar_comments') {{trans('admin/main.comments')}} @endcan @can('admin_supports_list') {{trans('admin/main.tickets')}} @endcan @can('admin_webinar_reports') {{trans('admin/main.reports')}} @endcan
@endcan @can('admin_clear_cache')

 

@include('admin.includes.delete_button',[ 'url' => '/admin/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')}}
{{ addCurrencyToPrice(handlePriceFormat($getIncomeStatistics['todaySales'])) }}
{{trans('admin/main.today')}}
{{ addCurrencyToPrice(handlePriceFormat($getIncomeStatistics['monthSales'])) }}
{{trans('admin/main.this_month')}}
{{ addCurrencyToPrice(handlePriceFormat($getIncomeStatistics['yearSales'])) }}
{{trans('admin/main.this_year')}}

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

{{ addCurrencyToPrice(handlePriceFormat($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_tickets') @endcan @can('admin_general_dashboard_new_reviews') @endcan @can('admin_general_dashboard_new_comments') @endcan @can('admin_general_dashboard_new_comments') @endcan
@can('admin_general_dashboard_recent_course_comments')

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

    @foreach($recentComments as $recentComment)
  • avatar
    {{ dateTimeFormat($recentComment->created_at, 'j M Y | H:i') }}
    {{ isset( $recentComment->user) ? $recentComment->user->full_name : '-' }}
    {{ (!empty($recentComment->replies->last())) ? trans('admin/main.replyed_by').$recentComment->replies->last()->user->full_name : trans('admin/main.no_reply_yet') }}
    {!! truncate($recentComment->comment, 150) !!}
  • @endforeach
@endcan @can('admin_general_dashboard_recent_file_comments')

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

    @foreach($recentFileComments as $recentComment)
  • avatar
    {{ dateTimeFormat($recentComment->created_at, 'j M Y | H:i') }}
    {{ isset( $recentComment->user) ? $recentComment->user->full_name : '-' }}
    {{ (!empty($recentComment->replies->last())) ? trans('admin/main.replyed_by').$recentComment->replies->last()->user->full_name : trans('admin/main.no_reply_yet') }}
    {!! 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_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'] }}
{{ addCurrencyToPrice(handlePriceFormat($getMonthAndYearSalesChartStatistics['todaySales']['amount'])) }}
{{trans('admin/main.today_sales')}}
@if($getMonthAndYearSalesChartStatistics['weekSales']['grow_percent']['status'] == 'up') @else @endif {{ $getMonthAndYearSalesChartStatistics['weekSales']['grow_percent']['percent'] }}
{{ addCurrencyToPrice(handlePriceFormat($getMonthAndYearSalesChartStatistics['weekSales']['amount'])) }}
{{trans('admin/main.week_sales')}}
@if($getMonthAndYearSalesChartStatistics['monthSales']['grow_percent']['status'] == 'up') @else @endif {{ $getMonthAndYearSalesChartStatistics['monthSales']['grow_percent']['percent'] }}
{{ addCurrencyToPrice(handlePriceFormat($getMonthAndYearSalesChartStatistics['monthSales']['amount'])) }}
{{trans('admin/main.month_sales')}}
@if($getMonthAndYearSalesChartStatistics['yearSales']['grow_percent']['status'] == 'up') @else @endif {{ $getMonthAndYearSalesChartStatistics['yearSales']['grow_percent']['percent'] }}
{{ addCurrencyToPrice(handlePriceFormat($getMonthAndYearSalesChartStatistics['yearSales']['amount'])) }}
{{trans('admin/main.year_sales')}}
@endif
@endcan @can('admin_general_dashboard_users_statistics_chart')

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

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