{{-- Ratings Box Component --}} {{-- Required variables: - $offer: The offer object to get ratings for --}} @php // جلب تقييم صاحب المشروع للمستقل $ownerToFreelancerRating = \App\Models\Rating::where('offer_id', $offer->id) ->where('rating_type', \App\Models\Rating::TYPE_OWNER_TO_FREELANCER) ->first(); // جلب تقييم المستقل لصاحب المشروع $freelancerToOwnerRating = \App\Models\Rating::where('offer_id', $offer->id) ->where('rating_type', \App\Models\Rating::TYPE_FREELANCER_TO_OWNER) ->first(); $projectShareUrl = route('project.details', [$offer->project->id, createProjectSlug($offer->project->title)]); @endphp @if($ownerToFreelancerRating || $freelancerToOwnerRating)
@endif
{{ $ownerToFreelancerRating->comment }}