@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'] !== '') {{$gets->text}} @else {{ __('course')}} @endif

{{ __('All Instructors') }}

@endif @if(isset($instructors))
@foreach($instructors as $inst)
@if($inst['user_img'] !== NULL && $inst['user_img'] !== '') @else course @endif
    • @php $url = URL::to('/').'/allinstructor/profile/'.$inst->id; @endphp

{{ $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 > 0 ? $course.' '.__('Courses') : __('No Courses') }}
  • {{ $followers }} {{ __('Follower') }}
  • {{ $followings }} {{ __('Following') }}
@endforeach
@endif @endsection