@extends('layouts.instructor') @section('breadcrumb')

Hey, {{auth::user()->instructor ? auth::user()->instructor->name : '' }} student

@endsection @section('content')
{{__('app.earning')}} ({{__('app.this_month')}})
@if(get_currency_placement() == 'after') {{ @$total_earning }} {{ get_currency_symbol() }} @else {{ get_currency_symbol() }} {{ @$total_earning }} @endif
{{__('app.total_enroll')}} ({{__('app.this_month')}})
{{ @$total_enroll ?? 0 }}
{{__('app.best_selling_course')}}
{{ Str::limit(@$best_selling_course->course->title, 25) }}
{{__('app.recently_added_courses')}}
View all
@foreach($recentCourses as $recentCourse)
img
{{ Str::limit($recentCourse->title, 25) }}

{{ @$recentCourse->orderItems->Count() }} {{__('app.enroll')}}

@endforeach
@php $rankLevel = true @endphp @foreach(@$levels as $level) @if($level->earning <= $grand_total_earning && $level->earning <= $grand_total_enroll)
img
{{ $level->name }}

{{__('app.earning')}}

@if(get_currency_placement() == 'after') {{ $level->earning }} {{ get_currency_symbol() }} @else {{ get_currency_symbol() }} {{ $level->earning }} @endif

{{__('app.student')}}

{{ $level->student }}

@php $level_serial_no = $level->serial_no + 1; $rankLevel = false; break; @endphp @endif @endforeach @php if ($rankLevel){ $next_level = \App\Models\RankingLevel::where('serial_no', 1)->first(); } else { $next_level = \App\Models\RankingLevel::where('serial_no', @$level_serial_no)->first(); } @endphp
img
{{ @$next_level->name }}

{{__('app.earning')}}

@if(get_currency_placement() == 'after') {{ @$next_level->earning }} {{ get_currency_symbol() }} @else {{ get_currency_symbol() }} {{ @$next_level->earning }} @endif

{{__('app.student')}}

{{ @$next_level->student }}

{{__('app.upload_your_course_today')}}
{{__('app.upload_course')}}
{{__('app.sale_statistics')}}
@endsection @push('style') @endpush @push('script') @endpush