@extends('layouts.front') @section('title', $instructor->user->name . ' — ' . getSiteName()) @section('content')
{{ $instructor->user->name }}
{{ __('front.instructors.profile') }}

{{ $instructor->user->name }}

@if($instructor->user->title || $instructor->specialty)
{{ $instructor->user->title }}@if($instructor->user->title && $instructor->specialty) · @endif{{ optional($instructor->specialty)->name }}
@endif @if($instructor->user->bio)

{{ $instructor->user->bio }}

@endif
{{ $coursesCount }}{{ __('front.instructors.courses') }}
{{ $instructor->ratings_avg_rating ? number_format($instructor->ratings_avg_rating, 1) : '—' }}{{ __('front.instructors.rating') }}
{{ number_format($studentsCount) }}{{ __('front.instructors.students') }}
{{ number_format($instructor->ratings_count) }}{{ __('front.instructors.reviews') }}
{{ __('front.instructors.tab_courses') }}
{{ __('front.instructors.tab_about') }}
@forelse($courses as $course)
@if($course->getImage())
{{ $course->title }}
@else
@endif
@if($course->category){{ $course->category->name }}@endif

{{ $course->title }}

EGP {{ number_format($course->price) }}
{{ __('front.instructors.view') }}
@empty

{{ __('front.instructors.no_courses') }}

@endforelse
@if($courses->hasPages())
@if($courses->onFirstPage()) ‹ @else ‹ @endif @foreach(range(1, $courses->lastPage()) as $page) {{ $page }} @endforeach @if($courses->hasMorePages()) › @else › @endif
@endif

{{ __('front.instructors.biography') }}

@if($instructor->user->bio)

{{ $instructor->user->bio }}

@else

{{ __('front.instructors.no_bio') }}

@endif
@endsection