@php $testimonialContent = getContent('testimonial.content', true); $testimonialElements = getContent('testimonial.element', null, false, true); @endphp

{{ __(@$testimonialContent->data_values->heading) }}

@foreach ($testimonialElements as $item)
@php $rating = @$item->data_values->rating; $noRating = 5 - $rating; @endphp @for ($i = 1; $i <= $rating; $i++) @endfor @for ($i = 1; $i <= $noRating; $i++) @endfor

{{ __(@$item->data_values->review) }}

@lang('client')

{{ __(@$item->data_values->name) }}

{{ __(@$item->data_values->designation) }}
@endforeach