@extends('admin.layouts.master') @section('title', 'Instructor Dashboard - Admin') @section('maincontent') @include('admin.layouts.topbar',$data) @if(Auth::User()->role == "instructor")

@php $course = App\Course::where('user_id', Auth::User()->id)->get(); if(count($course)>0){ echo count($course); } else{ echo "0"; } @endphp

{{__('Courses')}}

@php $cat = App\Order::where('instructor_id', Auth::User()->id)->get(); if(count($cat)>0){ echo count($cat); } else{ echo "0"; } @endphp

{{__('User Enrolled')}}

@php $question = App\Question::where('instructor_id', Auth::User()->id)->get(); if(count($question)>0){ echo count($question); } else{ echo "0"; } @endphp

{{__('Total Question')}}

@php $answer = App\Answer::all(); if(count($answer)>0){ echo count($answer); } else{ echo "0"; } @endphp

{{__('Total Answer')}}

@php $answer = App\Course::where('user_id', Auth::User()->id)->where('status', '1')->where('featured', '1')->get(); if(count($answer)>0){ echo count($answer); } else{ echo "0"; } @endphp

{{__('Featured Courses')}}

@php $answer = App\Blog::where('user_id', Auth::User()->id)->where('status', '1')->get(); if(count($answer)>0){ echo count($answer); } else{ echo "0"; } @endphp

{{__('Blog')}}

@if(isset($zoom_enable) && $zoom_enable == 1)

@php $answer = App\Meeting::where('user_id', Auth::User()->id)->get(); if(count($answer)>0){ echo count($answer); } else{ echo "0"; } @endphp

{{__('Zoom Meeting')}}

@endif @if(isset($gsetting) && $gsetting->bbl_enable == 1)

@php $answer = App\BBL::where('instructor_id', Auth::User()->id)->where('is_ended', '0')->get(); if(count($answer)>0){ echo count($answer); } else{ echo "0"; } @endphp

{{__('Big Blue Meeting')}}

@endif
{{__('Total Orders in 2021')}}
{{__('Monthly Instructor Payout')}}
@endif @endsection @section('script') @endsection