@auth
@php
$data = App\Models\AssociateReview::where([
['associate_id', $id->id],
['user_id', auth()->user()->id],
])->first();
@endphp
@if (!isset($data))
{{-- @else --}}
{{--
@endif
@endauth
Add a Review
Review Submitted
--}} @endif @if (count($reviews) > 0)
Reviews
@foreach ($reviews as $review)
{{$review->user->name ?? 'Anonymous User'}}: {{$review['review']}}
@endforeach