@extends('layouts.app') @section('title', $user->name) @section('content') @php($profile = $user->instructorProfile)
{{ $user->name }}
{{ __('Instructor') }}

{{ $user->name }}

{{ optional($profile)->title ?: __('Instructor') }}

{{ trans_choice(':count course|:count courses', $stats['courses'], ['count' => $stats['courses']]) }} {{ trans_choice(':count student|:count students', $stats['students'], ['count' => number_format($stats['students'])]) }} {{ __(':rating rating', ['rating' => $stats['rating']]) }}
@if(optional($profile)->facebook)@endif @if(optional($profile)->linkedin)@endif @if(optional($profile)->youtube)@endif @if(optional($profile)->website)@endif
@if(optional($user->instructorProfile)->bio)
{{ __('About') }}

{{ __('About') }} {{ $user->name }}

{{ $user->instructorProfile->bio }}

@endif

{{ __('Courses by :name', ['name' => $user->name]) }}

@if($courses->isEmpty())
{{ __('No published courses yet') }}

{{ __('This instructor hasn\'t published any courses.') }}

@else
@foreach($courses as $course)
@include('partials.course-card', ['course' => $course])
@endforeach
@endif
@endsection