@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')
{{ $activeCourseCount }}
{{ __('Active courses') }}
icon
{{ $totalEnrollmentsCount }}
{{ __('Total Course Enrollments') }}
icon
{{ $student_count }}
{{ __('Total Students') }}
icon
{{ $instructor_count }}
{{ __('Total Instructors') }}
icon
{{ currency($totalTransactionsAmount) }}
{{ __('Total Transaction Amount') }}
icon
{{ $totalReview }}
{{ __('Total submitted reviews') }} ({{ __('all courses') }})
icon

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

0

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

{{ __('Overview Chart') }}

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

{{ __('View All Courses') }}
@forelse ($topSaleCourse 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') }}
#{{ generateID($course->id) }}

{{ $course->title }}

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