@extends('admin.layouts.master') @section('title', 'Dashboard - Admin') @section('maincontent') @component('components.breadcumb',['' => 'active']) @slot('heading') {{ __('Dashboard') }} @endslot @endcomponent @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('scripts') @endsection