@php use Illuminate\Support\Facades\Auth; @endphp @extends('backend.master') @php $table_name='course_enrolleds'; $role_id =Auth::user()->role_id; @endphp @section('table') {{$table_name}} @stop @section('mainContent') {!! generateBreadcrumb() !!} {{__('courses.Advanced Filter')}} @if($role_id==1) {{__('courses.Instructor')}} {{__('common.Select')}} {{__('courses.Instructor')}} @foreach($instructors as $instructor) id?'selected':''}} value="{{$instructor->id}}">{{@$instructor->name}} @endforeach @endif {{__('courses.Month')}} {{__('common.Select')}} {{__('courses.Month')}} @php $formattedMonthArray = array( "1" => "January", "2" => "February", "3" => "March", "4" => "April", "5" => "May", "6" => "June", "7" => "July", "8" => "August", "9" => "September", "10" => "October", "11" => "November", "12" => "December", ); @endphp @foreach($formattedMonthArray as $key=>$month) {{trans('data.data_'.$month)}} @endforeach {{__('courses.Year')}} @php $starting_year =date('Y'); $ending_year = date('Y', strtotime('-10 year')); $yearArray = range($starting_year,$ending_year); $current_year = date('Y'); foreach ($yearArray as $year) { echo ''.translatedNumber($year).''; } @endphp {{-- @if($role_id!=1) @endif --}} {{__('courses.Filter')}} {{__('courses.Instructor')}} {{__('courses.Revenue')}} {{__('report.Purchase ID')}} {{__('courses.Course Title')}} {{__('courses.Enrollment')}} {{__('certificate.Date')}} {{__('courses.Instructor')}} {{__('courses.Purchase')}} {{__('courses.By')}} {{__('courses.Purchase')}} {{__('courses.Price')}} {{__('courses.Instructor')}} {{__('courses.Revenue')}} @if(isModuleActive('Subscription')) @foreach($subscriptions as $subscription) S-{{@$subscription['checkout_id']+1000}} Subscription - {{@$subscription['plan']}} {{ showDate(@$subscription['date'] ) }} {{@$subscription->instructor}} {{getPriceFormat($subscription['price'])}} @endforeach @endif @foreach($enrolls as $enroll) C-{{@$enroll->id+1000}} {{@$enroll->course->title}} {{ showDate(@$enroll->created_at ) }} {{@$enroll->course->user->name}} {{@$enroll->user->name}} {{getPriceFormat($enroll->purchase_price)}} {{getPriceFormat($enroll->reveune)}} @endforeach @endsection @push('scripts') @endpush