@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 @endif {{ __('My Courses') }} @endif @if($instructors['user_img'] !== NULL && $instructors['user_img'] !== '') @else @endif {{ $instructors->fname }} {{ $instructors->lname }} {{ $instructors->role }} {{ $instructors->mobile }} {{ $instructors->email }} @php $followers = App\Followers::where('user_id', '!=', $instructors->id)->where('follower_id', $instructors->id)->count(); $followings = App\Followers::where('user_id', $instructors->id)->where('follower_id','!=', $instructors->id)->count(); $course = App\Course::where('user_id', $instructors->id)->count(); @endphp {{ $course }} {{ __('Courses') }} {{ $followers }} {{ __('Follower') }} {{ $followings }} {{ __('Following') }} @auth @php $follow = App\Followers::where('follower_id', $user->id)->first(); @endphp @if($follow == NULL) {{ csrf_field() }} Follow @else {{ csrf_field() }} Unfollow @endif @endauth {{ __('About me') }} {{ __('Explore Courses') }} {!! $instructors['detail'] !!} @if(isset($courses)) @foreach($courses as $c) @if($c->status == 1) @if($c['preview_image'] !== NULL && $c['preview_image'] !== '') @else @endif @if(optional($c->user)['user_img'] !== NULL && optional($c->user)['user_img'] !== '') @else @endif {{ str_limit($c->title, $limit = 30, $end = '...') }} By {{ optional($c->user)['fname'] }}
{{ $instructors->role }}