Log 4168

$students_attendance = [
[“student” => #תלמיד#, “attendance” => #נוכחות בשיעור#],
// Add more student attendance data here if needed
];

$total_groups = count($students_attendance);
$attended_groups = 0;

foreach ($students_attendance as $group) {
if ($group[‘attendance’] !== “”) {
$attended_groups++;
}
}

if ($total_groups > 0) {
return round(($attended_groups / $total_groups) * 100, 2);
} else {
return “”;
}

Select the fields to be shown. Others will be hidden. Drag and drop to rearrange the order.
  • Image
  • SKU
  • Rating
  • Price
  • Stock
  • Availability
  • Add to cart
  • Description
  • Content
  • Weight
  • Dimensions
  • Additional information
  • Attributes
  • Custom attributes
  • Custom fields
Click outside to hide the comparison bar
Compare