@extends('theme.master') @section('title', "$user->fname") @section('content') @include('admin.message') @php $gets = App\Breadcum::first(); @endphp @if(isset($gets)) @if($gets['img'] !== NULL && $gets['img'] !== '') @else @endif {{ __('Instructor')}} @endif @include('sweetalert::alert') {{ $user['fname'] }} {{ $user['lname'] }} @auth {{ $user['email'] }} @endauth {{ __('Totalstudents') }} @php $data = App\Order::where('instructor_id', $user->id)->count(); if($data > 0){ echo $data; } else{ echo "0"; } @endphp @if($user->fb_url != NULL) @endif @if($user->linkedin_url != NULL) @endif @if($user->twitter_url != NULL) @endif @if($user->youtube_url != NULL) @endif @if($user['user_img'] != null || $user['user_img'] !='') @else @endif {{ $user['fname'] }} {{ $user['lname'] }} @php $followers = App\Followers::where('user_id', '!=', $user->id)->where('follower_id', $user->id)->count(); $followings = App\Followers::where('user_id', $user->id)->where('follower_id','!=', $user->id)->count(); @endphp {{ $followers }} {{__('Followers')}} {{ $followings }} {{__('Following')}} @php $year = Carbon\Carbon::parse($user->created_at)->year; $course_count = App\Course::where('user_id', $user->id)->count(); @endphp @if($course_count >= 5) @endif @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') }} {{ __('MyCourses') }} {{__('Badges')}} {!! $user['detail'] !!} @foreach($course 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'] }}