@extends('layouts.app') @section('content')

{{ __('messages.dashboard') }}

{{ __('messages.total_orders') }}

{{$transactionCount}}

{{ __('messages.avg_sales_earnings') }}

{{$totalAmount}} AED

{{ __('messages.number_of_visits') }}

{{$visitorCount}}

{{ __('messages.course_listing') }}

{{ __('messages.add_course') }}

{{ count($courses) }} {{ __('messages.active_courses') }}

@if($courses->isEmpty()) @else @foreach($courses as $course) @endforeach @endif
{{ __('messages.no_courses_found') }}
Course Name
{{$course->title}}
Price
{{$course->price}}
Duration
{{$course->duration_days}}
Difficulty Level
{{$course->difficulty_level}}

{{ __('messages.top_selling_courses') }}

@if($topSellingCourses->isEmpty()) @else @foreach($topSellingCourses as $topcourse) @endforeach @endif
{{ __('messages.no_top_selling_courses_found') }}
Product
{{ $topcourse->title }}
{{ $topcourse->price }} AED
Price
{{ $topcourse->total_count }}
Total Sold
{{ number_format($topcourse->total_amount, 2) }} AED
Total Sales
@endsection