@extends('layouts.public') @section('title', $coach->user->fullName()) @section('content') بازگشت به لیست مربیان
@if($coach->photo_path) @else
{{ mb_substr($coach->user->first_name, 0, 1) }}
@endif

{{ $coach->user->fullName() }}

@if($coach->user->isOnline()) آنلاین @else آخرین بازدید: {{ verta($coach->user->last_seen_at)->format('Y/m/d H:i') }} @endif
{{ $coach->experience_years ?? 0 }}
سال سابقه
{{ $certificatesCount }}
مدرک تأیید‌شده
@if($coach->averageRating())
{{ $coach->averageRating() }}
{{ $coach->reviewsCount() }} نظر
@else
بدون امتیاز
@endif
@foreach($coach->goals as $goal) {{ $goal->title }} @endforeach

درباره مربی

{{ $coach->bio ?: 'توضیحی ثبت نشده است.' }}

سابقه کاری

{{ $coach->work_history ?: 'توضیحی ثبت نشده است.' }}

@if($coach->program_price)
قیمت پایه: {{ number_format($coach->program_price) }} تومان
@endif @auth @if(auth()->user()->isAthlete()) @php $athlete = auth()->user()->athlete; @endphp @if($athlete->hasActiveRelationshipWith($coach))
شما با این مربی همکاری فعال دارید. مشاهده جزئیات
@else
@csrf
@error('request')

{{ $message }}

@enderror @endif @endif @else برای درخواست برنامه وارد شوید @endauth
@if($coach->reviewsCount() > 0)

نظرات ورزشکاران ({{ $coach->reviewsCount() }})

@foreach($coach->approvedReviews()->with('coachRequest.athlete.user')->limit(10)->get() as $review)
{{ $review->coachRequest->athlete->user->fullName() }} @for($i = 1; $i <= 5; $i++) @endfor
@if($review->comment)

{{ $review->comment }}

@endif
{{ verta($review->created_at)->format('Y/m/d') }}
@endforeach
@endif @endsection