@extends('layouts.default') @push('title', get_phrase('Tutor Booking')) @push('meta')@endpush @push('css')@endpush @section('content') @php use Illuminate\Support\Str; @endphp
tutor
@php // Get reviews for the specified tutor $reviews = App\Models\TutorReview::where('tutor_id', $tutor_details->id)->get(); $averageRating = $reviews->avg('rating'); @endphp

{{ number_format($averageRating, 1) }}

{{ $tutor_details->name }}

{{ $tutor_details->email }}

{{ $tutor_details->about }}

  • {{ total_schedule_by_tutor_id($tutor_details->id).' '.get_phrase('Live schedule') }}

  • {{ total_booked_schedule_by_tutor_id($tutor_details->id).' '.get_phrase('Booked schedule') }}

  • {{ total_review_by_tutor_id($tutor_details->id).' '.get_phrase('Reviews') }}

{{ get_phrase('Book a schedule') }}

@include('frontend.default.tutor_booking.schedules_tab')
@include('frontend.default.tutor_booking.about')
@include('frontend.default.tutor_booking.reviews')
@endsection @push('js') @endpush