From e9c238a92260079b2549b3c5f54d307119fc9886 Mon Sep 17 00:00:00 2001 From: ro Date: Sun, 14 Apr 2024 15:04:36 -0600 Subject: [PATCH] updated rating display rating percentages where showing long decimal ranges, so a quick tweak as added to make them clean whole numbers. --- resources/views/front/index.blade.php | 10 ++++++++-- resources/views/front/listing.blade.php | 2 +- resources/views/front/location.blade.php | 2 +- 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/resources/views/front/index.blade.php b/resources/views/front/index.blade.php index 3ff664a..efce5ad 100644 --- a/resources/views/front/index.blade.php +++ b/resources/views/front/index.blade.php @@ -17,8 +17,11 @@

Found {{count($results)}} results for {{$terms}}

@foreach($results as $item) + @php + $rating = floor(($item->actions_count / $sources)*100); + @endphp - {{($item->actions_count / $sources)*100}}% + {{$rating}}%