@extends('admin.layouts.master') @section('title', 'Dashboard - Instructor') @section('body') @if(Auth::User()->role == "instructor")

{{ __('adminstaticword.Dashboard') }} {{ __('adminstaticword.Instructor') }}

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

{{ __('adminstaticword.Course') }}

{{ __('adminstaticword.Moreinfo') }}

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

{{ __('adminstaticword.User') }} {{ __('adminstaticword.Enrolled') }}

{{ __('adminstaticword.Moreinfo') }}

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

{{ __('adminstaticword.Total') }} {{ __('adminstaticword.Question') }}

{{ __('adminstaticword.Moreinfo') }}

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

{{ __('adminstaticword.Total') }} {{ __('adminstaticword.Answer') }}

{{ __('adminstaticword.Moreinfo') }}
@endif @endsection