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

👋 {{ __('Welcome back') }}, {{ auth()->user()->name }}!

{{ __('Here’s a quick overview of your performance this month.') }}

{{--
{{ __('Total Students') }}

{{ $total_students }}

{{ __('Total Courses') }}

{{ $total_courses }}

{{ __('Total Enrollments') }}

{{ $total_enrollments }}

{{ __('Total Transactions') }}

{{ $app_setting['currency_symbol'] }} {{ $total_transactions }}

--}}
{{ $total_students }}
{{ __('Total Students') }}
{{ $total_courses }}
{{ __('Total Courses') }}
{{ $total_enrollments }}
{{ __('Total Enrollments') }}
{{ $app_setting['currency_symbol'] }} {{ $total_transactions }}
{{ __('Total Transactions') }}

{{ __('Revenue Statistics') }}

{{ __('Community Overview') }}

{{ __('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() }} {{ __('Faculty Member') }}

@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
{{-- /* Top Selling Courses */ --}}

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

{{ __('View All Courses') }}
@forelse ($topSaleCourses as $course) @php $total = 0; $transactions = $course->transactions->where('is_paid', 1); foreach ($transactions as $transaction) { $total += $transaction->payment_amount; } @endphp @empty @endforelse
{{ __('ID') }} {{ __('Course') }} {{ __('Category') }} {{ __('Views') }} {{ __('Sale Price') }} {{ __('Instructor') }} {{ __('Action') }}
#{{ $course->id }}

{{ $course->title }}

{{ $course->category?->title }} {{ $course->view_count }} {{ currency($total) }} {{ $course->instructor->user->name }}
{{ __('No Course Available') }}
@endsection @push('styles') @endpush @push('scripts') @endpush