@extends('theme.master') @section('title') @section('content') @include('admin.message') @php $gets = App\Breadcum::first(); @endphp @if(isset($gets))
@if($gets['img'] !== NULL && $gets['img'] !== '') @else {{ __('course')}} @endif

{{ __('All Instructors') }}

@endif @if(isset($instructors))
@foreach($instructors as $inst)
@if($inst['user_img'] !== NULL && $inst['user_img'] !== '') @else course @endif

{{ $inst->fname }} {{ $inst->lname }}

{{ $inst->role }}

@php $followers = App\Followers::where('user_id', '!=', $inst->id)->where('follower_id', $inst->id)->count(); $followings = App\Followers::where('user_id', $inst->id)->where('follower_id','!=', $inst->id)->count(); $course = App\Course::where('user_id', $inst->id)->count(); @endphp
  • {{ $course }} {{ __('Courses') }}
  • {{ $followers }} {{ __('Follower') }}
  • {{ $followings }} {{ __('Following') }}

@endforeach
@endif @endsection