@if(!is_null($order->rating))
Rating
{{ star_rating($order->rating->number) }}

Comment

{{ $order->rating->comment }}

@else @if($order->customer_id == auth()->user()->id) Rate our service @endif @endif