@extends($layout_path) @section('title', $app_setting['name'] . ' | ' . __('Dashboard')) @section('header-title')

{{ __('Welcome Back') }}, {{ auth()->user()?->name ?? 'User Name' }}

@endsection @section('header-sub-title')

{{ __('Monitor your business analytics and statistics') }}.

@endsection @section('content')
{{ $active_course_count }}
{{ __('Active courses') }}
icon
{{ $enrollment_count }}
{{ __('Total Course Enrollments') }}
icon
{{ $student_count }}
{{ __('Total Students') }}
icon
{{ $instructor_count }}
{{ __('Total Instructors') }}
icon
{{ currency($transaction_amount) }}
{{ __('Total Transaction Amount') }}
icon
{{ $review_count }}
{{ __('Total submitted reviews') }}
icon

{{ __('Course & User Statistics') }}

0

{{ __('Course Sele Overview') }}

{{ $total_users_count }}

{{ __('New User Overview') }}

{{ __('Top Selling Course') }} ( {{ __('Latest') }} {{ $popular_courses->count() }} )

{{ __('View All Courses') }}
@forelse ($popular_courses as $course) @empty @endforelse
{{ __('ID') }} {{ __('Course') }} {{ __('Category') }} {{ __('Views') }} {{ __('Price') }} {{ __('Instructor') }} {{ __('Action') }}
#{{ generateID($course->id) }} {{ $course->category?->title }} {{ $course->view_count }} {{ currency($course->price && $course->regular_price ? $course->price : $course->regular_price) }} {{ $course->instructor->user->name }} {{ __('View Course') }} {{ __('Edit Course') }} {{ __('Delete Course') }}
{{ __('No data Available') }}

{{ __('Top') }} {{ $topStudents?->count() }} {{ __('Student') }}

@forelse ($topStudents as $student)
avatar
{{ $student?->name }}
{{ $student?->email }}

{{ __('Buy Courses') }} : {{ $student?->enrollments_count }}

@empty
avatar
{{ __('No Students Found') }}!
5hBzU@example.com

{{ __('Total Courses') }} : 0

icon icon icon
@endforelse

{{ __('Top') }} {{ $topInstructors?->count() }} {{ __('Instructor') }}

@forelse ($topInstructors as $instructor)
avatar
{{ $instructor?->user?->name }}
@php $rating = $instructor?->rating_avg; $rating = number_format($rating, 1); @endphp @for ($index = 0; $index < 5; $index++) @if ($rating > $index) @else @endif @endfor {{ number_format($instructor?->rating_avg, 1) }} ({{ $instructor?->reviews_count }})

{{ __('Total Courses') }} : {{ $instructor?->courses_count }}

@empty
avatar
{{ __('No Instructor Found') }}!
0.0 (0)

{{ __('Buy Courses') }} : 0

icon icon icon
@endforelse
@endsection @push('scripts') @endpush