@extends('layouts.default') @push('title', get_phrase('Tutor Booking')) @push('meta')@endpush @push('css')@endpush @section('content') @php use Illuminate\Support\Str; @endphp {{ get_phrase('Home') }} {{ get_phrase('Tutor Details') }} @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') }} Send Message Schedules About Reviews {{ get_phrase('Book a schedule') }} {{ get_phrase('Filter') }} @include('frontend.default.tutor_booking.schedules_tab') @include('frontend.default.tutor_booking.about') @include('frontend.default.tutor_booking.reviews') @endsection @push('js') @endpush
{{ number_format($averageRating, 1) }}
{{ $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') }}