@extends('front-cms.layouts.main') @section('main-section')

{{ $tutorpd->headline }}

Subjects
@foreach ($subjects as $subject) @endforeach
About {{ $tutorpd->name }}

{{ $tutorpd->goal }}

{{ $tutorpd->detail_1 }}

Qualification

{{ $tutorpd->qualification }}

Certification

{{ $tutorpd->certification }}

Recent Review
{{-- Loop to display the average number of stars --}} @if (isset($averagereview->avg_rating)) @for ($i = 1; $i <= round($averagereview->avg_rating); $i++) @endfor @else {{-- Display no stars if no average rating is available --}} @endif {{-- Show the average rating and review count --}} {{ $averagereview->avg_rating ?? '0' }} ({{ $averagecount ?? '0' }} reviews)
@foreach ($reviews->take(10) as $review)
{{ $review->student_name }}
{{-- Loop to display the number of stars based on rating --}} @for ($i = 1; $i <= $review->ratings; $i++) @endfor {{-- Display the numeric value of the rating --}} {{ $review->ratings }}

{{ $review->name }}

@endforeach
Introduction Video

Skills
@foreach (explode(',', $tutorpd->keywords) as $keyword) @endforeach

{{ $tutorpd->name }}

{{-- Loop to display the average number of stars --}} @if (isset($averagereview->avg_rating)) @for ($i = 1; $i <= round($averagereview->avg_rating); $i++) @endfor @else {{-- Display no stars if no average rating is available --}} @endif {{-- Show the average rating and review count --}} {{ $averagereview->avg_rating ?? '0' }} ({{ $averagecount ?? '0' }} reviews)
Hourly rate: £{{ $tutorpd->rateperhour }}
Experience: {{ $tutorpd->experience }}
Other tutors in {{ $primarysubjects->subject_name }}
@endsection