modify('first day of this month')->format('Y-m-d'); $endDate = $date->modify('last day of this month')->format('Y-m-d'); $datesInMonth = []; $period = new DatePeriod( new DateTime($startDate), new DateInterval('P1D'), (new DateTime($endDate))->modify('+1 day') ); foreach ($period as $day) { $datesInMonth[] = $day->format('Y-m-d'); } ?>
$row): ?> format('Y-m-d'); $currentDate = date('Y-m-d'); if ($date === $currentDate) { echo 'style="background: #cef0ad;"'; } ?> > $column): ?>
Total Diesel
format('d-m-Y'); ?> style="padding: 5px;"> style="padding: 5px;">