diff --git a/resources/views/report/kehadiran-pdf.blade.php b/resources/views/report/kehadiran-pdf.blade.php index 2c10aed..7a624a4 100644 --- a/resources/views/report/kehadiran-pdf.blade.php +++ b/resources/views/report/kehadiran-pdf.blade.php @@ -44,9 +44,17 @@ {{-- @endif --}} @endforeach - Peratus Kehadiran - {{ ($totalkehadiranAll / $votes) * 100 }}% + Peratus Kehadiran + + + @php + $percentage = $votes > 0 ? number_format(($totalkehadiranAll / $votes) * 100, 2) : '0.00'; + echo $percentage . '%'; + @endphp + + +