@if(empty($isLoadPage))
@include('skeletons.tutor-list')
@else
@include('skeletons.tutor-list')
@if($tutors->isNotEmpty())
@foreach ($tutors as $tutor) @php $tutorInfo['name'] = $tutor->profile->full_name; $tutorInfo['id'] = $tutor?->id; if (!empty($tutor->profile->image) && Storage::disk(getStorageDisk())->exists($tutor->profile->image)) { $tutorInfo['image'] = resizedImage($tutor->profile->image, 36, 36); } else { $tutorInfo['image'] = setting('_general.default_avatar_for_user') ? url(Storage::url(setting('_general.default_avatar_for_user')[0]['path'])) : resizedImage('placeholder.png', 36, 36); } @endphp
@if(!empty($tutor->profile->intro_video)) @elseif(!empty($tutor->profile->image) && Storage::disk(getStorageDisk())->exists($tutor->profile->image)) {{$tutor->profile->full_name}} @else {{ $tutor->profile->full_name }} @endif
@if(!empty($tutor->profile->image) && Storage::disk(getStorageDisk())->exists($tutor->profile->image)) {{$tutor->profile->full_name}} @else {{ $tutor->profile->full_name }} @endif $tutor->is_online])>

{{ $tutor->profile->full_name }} @if($tutor?->profile?->verified_at) @endif @if(!empty($tutor?->address?->country?->short_code)) @endif

@if($tutor->profile->tagline) {{ $tutor->profile->tagline }} @endif
{{ __('tutor.session_fee') }} {{ formatAmount($tutor->min_price) }}/{{ __('tutor.session') }}
  • {{ number_format($tutor->avg_rating, 1) }}/5.0 ({{ $tutor->total_reviews == 1 ? __('general.review_count') : __('general.reviews_count', ['count' => $tutor->total_reviews] ) }})
  • {{$tutor->active_students}} {{ $tutor->active_students == '1' ? __('tutor.active_student') : __('tutor.active_students') }}
  • {{$tutor->subjects->sum('sessions')}} {{ $tutor->subjects->sum('sessions') == 1 ? __('tutor.session') : __('tutor.sessions') }}
  • {{ __('tutor.language_know') }}
@if(!empty($tutor->profile->description))
@php $fullDescription = strip_tags($tutor->profile->description); $shortDescription = Str::limit($fullDescription, 220, preserveWords: true); @endphp @if (Str::length($fullDescription) > 220)
{!! $shortDescription !!}
@else
{!! $fullDescription !!}
@endif
@endif
@endforeach
{{ $tutors->links('pagination.pagination', data:['scrollTo'=>false]) }}
@else
no record
{{ __('general.not_found') }} {{ __('general.not_found_desc') }}
@endif
@endif @include('livewire.pages.tutor.action.message')
@push('scripts') @endpush