File size: 361 Bytes
52d9fb0
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
@props([
    'style' => 1,
    'value' => 0,
    'total_review' => 0
])

<div class="rating-list">
    @php echo displayRating($value) @endphp

    @if ($style === 1)
        <span class="rating-list__rating"> ({{ getAmount($value, 1) }}) </span>
    @elseif($style == 2)
        <span class="rating-list__rating">({{ $total_review }})</span>
    @endif
</div>