@php
$rating = $review->rating_for_communication; // Example rating value from your database
$fullStars = floor($rating); // Number of full stars
$halfStar = ceil($rating) - $fullStars; // Check if there's a half star
// Generate empty stars for the remaining space
$emptyStars = 5 - $fullStars - $halfStar;
@endphp
@for($i=0;$i<$fullStars;$i++)
@endfor
@if($halfStar>0)
@endif
@for ($i = 0; $i < $emptyStars; $i++)
@endfor
{{--
{{ $review->rating_for_work_progress }}
--}}
@php
$rating = $review->rating_for_work_progress; // Example rating value from your database
$fullStars = floor($rating); // Number of full stars
$halfStar = ceil($rating) - $fullStars; // Check if there's a half star
// Generate empty stars for the remaining space
$emptyStars = 5 - $fullStars - $halfStar;
@endphp
@for($i=0;$i<$fullStars;$i++)
@endfor
@if($halfStar>0)
@endif
@for ($i = 0; $i < $emptyStars; $i++)
@endfor
{{--
{{ $review->rating_for_recommendation }}
--}}
@php
$rating = $review->rating_for_recommendation; // Example rating value from your database
$fullStars = floor($rating); // Number of full stars
$halfStar = ceil($rating) - $fullStars; // Check if there's a half star
// Generate empty stars for the remaining space
$emptyStars = 5 - $fullStars - $halfStar;
@endphp
@for($i=0;$i<$fullStars;$i++)