@extends('website.layout.master') @section('content') @if (session()->has('alert'))
@endif

{{$data?$data->firstname:''}} {{$data?$data->lastname:''}}

@if ($data->user && $data->user->rating) @for($i = 1; $i <= $data->user->rating; $i++) @endfor @endif @if($data->user && $data->user->rating > 0) {{$data && $data->user?$data->user->rating:''}} @endif

Description

{{$data?$data->description:''}}

Lorem, ipsum dolor.

@if($data->user && $data->user->rating > 0)
@if ($round_number > 0) {{$round_number}} @endif
    @if ($data->user && $data->user->rating) @for($i = 1; $i <= $data->user->rating; $i++) @endfor @endif

Total Reviews: {{$totalNumberOfReviews}}

@if($ratingPercentages > 0) @foreach($ratingPercentages as $index => $percentage)
{{ $index + 1 }}
{{ $numberOfRatings[$index]}} ratings
@endforeach @endif
@endif
@if(isset($student_reviews)) @foreach($student_reviews as $review)
anonymous @php $date = isset($review->created_at) ? date('d-M-y', strtotime($review->created_at)) : ''; @endphp {{$date}}
    @if ($review->rating) @for($i = 1; $i <= $review->rating; $i++) @endfor @endif
{{$review?$review->description:''}}
@endforeach @endif
@endsection