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

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

{{ $usersWithoutPurchases }}

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

{{ $teachersWithoutClass }}

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

{{ $featuredClasses }}

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

{{ $activeDiscounts }}

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

@if(!empty($getNetProfitStatistics))
@if($getNetProfitStatistics['todayIncome']['grow_percent']['status'] == 'up') @else @endif {{ $getNetProfitStatistics['todayIncome']['grow_percent']['percent'] }}
{{ handlePrice($getNetProfitStatistics['todayIncome']['amount']) }}
{{trans('admin/main.today_income')}}
@if($getNetProfitStatistics['weekIncome']['grow_percent']['status'] == 'up') @else @endif {{ $getNetProfitStatistics['weekIncome']['grow_percent']['percent'] }}
{{ handlePrice($getNetProfitStatistics['weekIncome']['amount']) }}
{{trans('admin/main.week_income')}}
@if($getNetProfitStatistics['monthIncome']['grow_percent']['status'] == 'up') @else @endif {{ $getNetProfitStatistics['monthIncome']['grow_percent']['percent'] }}
{{ handlePrice($getNetProfitStatistics['monthIncome']['amount']) }}
{{trans('admin/main.month_income')}}
@if($getNetProfitStatistics['yearIncome']['grow_percent']['status'] == 'up') @else @endif {{ $getNetProfitStatistics['yearIncome']['grow_percent']['percent'] }}
{{ handlePrice($getNetProfitStatistics['yearIncome']['amount']) }}
{{trans('admin/main.year_income')}}
@endif

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

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

@foreach($getTopSellingClasses as $getTopSellingClass) @endforeach
# {{trans('admin/main.name')}} {{trans('admin/main.sales')}} {{trans('admin/main.income')}}
{{ $getTopSellingClass->id }}
{{ $getTopSellingClass->title }}
{{ trans('webinars.'.$getTopSellingClass->type) }}
{{ $getTopSellingClass->sales_count }} {{ handlePrice($getTopSellingClass->sales_amount) }}

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

@foreach($getTopSellingAppointments as $getTopSellingAppointment) @endforeach
# {{trans('admin/main.consultant')}} {{trans('admin/main.sales')}} {{trans('admin/main.income')}}
{{ $getTopSellingAppointment->creator->id }} {{ $getTopSellingAppointment->creator->full_name }} {{ $getTopSellingAppointment->sales_count }} {{ handlePrice($getTopSellingAppointment->sales_amount) }}

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

@foreach($getTopSellingTeachers as $getTopSellingTeacher) @endforeach
{{trans('admin/main.id')}} {{trans('admin/main.name')}} {{trans('admin/main.classes_durations')}} {{trans('admin/main.sales')}} {{trans('admin/main.income')}}
{{ $getTopSellingTeacher->id }} {{ $getTopSellingTeacher->full_name }} {{ convertMinutesToHourAndMinute($getTopSellingTeacher->classes_durations) }} Hours {{ $getTopSellingTeacher->sales_count }} {{ handlePrice($getTopSellingTeacher->sales_amount) }}

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

@foreach($getTopSellingOrganizations as $getTopSellingOrganization) @endforeach
{{trans('admin/main.id')}} {{trans('admin/main.name')}} {{trans('admin/main.classes_durations')}} {{trans('admin/main.sales')}} {{trans('admin/main.income')}}
{{ $getTopSellingOrganization->id }} {{ $getTopSellingOrganization->full_name }} {{ convertMinutesToHourAndMinute($getTopSellingOrganization->classes_durations) }} Hours {{ $getTopSellingOrganization->sales_count }} {{ handlePrice($getTopSellingOrganization->sales_amount) }}

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

@foreach($getMostActiveStudents as $getMostActiveStudent) @endforeach
# {{trans('admin/main.name')}} {{trans('admin/main.purchased_classes')}} {{trans('admin/main.reserved_appointments')}} {{trans('admin/main.total_purchased_amount')}}
{{ $getMostActiveStudent->id }} {{ $getMostActiveStudent->full_name }} {{ $getMostActiveStudent->purchased_classes }} {{ $getMostActiveStudent->reserved_appointments }} {{ handlePrice($getMostActiveStudent->total_cost) }}
@endsection @push('scripts_bottom') @endpush