@php $course = App\Course::where('user_id', Auth::User()->id)->get(); if(count($course)>0){ echo count($course); } else{ echo "0"; } @endphp
{{ __('adminstaticword.Course') }}
@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') }}
@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') }}
@php $answer = App\Answer::all(); if(count($answer)>0){ echo count($answer); } else{ echo "0"; } @endphp
{{ __('adminstaticword.Total') }} {{ __('adminstaticword.Answer') }}