@extends('theme.master') @section('title', "$user->fname") @section('content') @include('admin.message') {{ __('frontstaticword.Aboutme') }} @if($user['user_img'] != null || $user['user_img'] !='') @else @endif @if($user->linkedin_url != NULL) {{ __('frontstaticword.LinkedIn') }} @endif @if($user->twitter_url != NULL) {{ __('frontstaticword.Twitter') }} @endif @if($user->fb_url != NULL) {{ __('frontstaticword.Facebook') }} @endif @if($user->youtube_url != NULL) {{ __('frontstaticword.Youtube') }} @endif {{-- {{ __('frontstaticword.Instructor') }} --}} {{ $user['fname'] }} @if(Auth::check()) @else @endif {{-- 不秀 email @auth {{ $user['email'] }} @endauth --}} {{-- 隱藏學生 {{ __('frontstaticword.Totalstudents') }} @php $data = App\Order::where('instructor_id', $user->id)->get(); if(count($data)>0){ echo count($data); } else{ echo "0"; } @endphp --}} @foreach ($tag as $category_id => $category_name) {{$category_name}} @endforeach @if($user['detail'] != NULL) {!! $user['detail'] !!} 查看更多 @endif {{ $user['fname'] }}{{ __('frontstaticword.AllClass') }} (@php $data = App\Course::where('user_id', $user->id)->where('status', 1)->get(); if(count($data)>0){ echo count($data); } else{ echo "0"; } @endphp) @foreach($course as $c) @if($c->status == 1) @php $url = $c->video_enable ? route('user.course.show',['id' => $c->id ]) : '#'; @endphp @if(Auth::check()) @else @endif @if($c['preview_image'] !== NULL && $c['preview_image'] !== '') @else @endif {{ str_limit($c->title, $limit = 30, $end = '...') }} {{ $c->user['fname'] }} {{ date('Y m/d', strtotime($c['created_at'])) }} {{--
{{ $c->user['fname'] }}