@extends('layouts.app') @section('content')
@include('inc.breadcrumb', [ 'breadcrumb_items' => [ __('messages.Home') => 'active', ], ])
@if (date('a') == 'am') @if (app()->getLocale() == 'ar') صباح الخير يا {{ auth()->user()->name }} @else Good morning, {{ auth()->user()->name }} @endif @else @if (app()->getLocale() == 'ar') مساء الخير يا {{ auth()->user()->name }} @else Good evening, {{ auth()->user()->name }} @endif @endif 😍

JOD {{ $counts['total_orders'] }}

المبيعات

JOD {{ $counts['month_orders'] }}

المبيعات في الشهر

{{ $counts['subscribes_count'] }}

الاشتراكات

{{ $counts['students_count'] }}

الطلاب

{{ $counts['teachers_count'] }}

المدرسين

{{ $counts['courses_count'] }}

الدورات

{{ $sales_chart['sales'] }}
المبيعات اخر شهر
{{ $sales_chart['message'] }}
اكثر الدورات اشتراك
@if($course_chart['count'] > 0)
@for ($i = 0; $i < $course_chart['count']; $i++)

{{ $course_chart['top_courses'][$i]->title }}

{{ number_format(($course_chart['top_courses'][$i]->subscribes_count / $course_chart['total_subscribes']) * 100, 2) }}%
@endfor
@else
@endif
Top Instructors
@foreach ($teacher_data as $teacher) @endforeach
المدرسين الدورات
Avatar
{{ $teacher->name }}
{{ $teacher->teacherDetail?->subject ? $teacher->teacherDetail?->subject : '' }}
Avatar

{{ $teacher->courses_count }}

احصائيات المبيعات {{ date('Y') }}

الاحصائيات لسنة {{ date('Y') }}

@endsection @section('script') @include('home_charts.course_chart') @endsection