$value = date_add(date_create(array_values($dateArray)[0]), date_interval_create_from_date_string('3 days'));
    $total = $total + User::countAppt($value->format('Y-m-d'));
    /*echo $value->format('Y-m-d');
      echo 'Appointment Count: ';
      echo $total;
      echo '<br>';
      echo 'Date is : ';*/
    $dateArray = Reports::getDay($value->format('Y-m-d'));
    $value = date_add(date_create(array_values($dateArray)[0]), date_interval_create_from_date_string('4 days'));
    $total = $total + User::countAppt($value->format('Y-m-d'));
    /*echo $value->format('Y-m-d');
      echo 'Appointment Count: ';
      echo $total;
      echo '<br>';
      echo 'Date is : ';*/
    $dateArray = Reports::getDay($value->format('Y-m-d'));
    $value = date_add(date_create(array_values($dateArray)[0]), date_interval_create_from_date_string('5 days'));
    $total = $total + User::countAppt($value->format('Y-m-d'));
    /*echo $value->format('Y-m-d');
      echo 'Appointment Count: ';
      echo $total;*/
    echo '<br>';
    echo 'Week Total Appointments: ';
    echo $total;
    echo '<br>';
    echo '<br>';
}
?>


 <!-- jQuery -->