id); $output = '

' . $event->event_name . ' - Küchenübersicht


'; $startDate = \DateTime::createFromFormat('Y-m-d', $event->startdatum); $endDate = \DateTime::createFromFormat('Y-m-d', $event->enddatum); $output.='

' . '' . '' . '' . '' . '' . '' . '' . '' . '' . '' . '' . ''; for ($curDate = $startDate; $curDate->getTimestamp() <= $endDate->getTimestamp(); $curDate->modify('+1 day')) { $vegetarischEssen = EatingRequest::send($participantList,'vegetarisch', $curDate); $veganEssen = EatingRequest::send($participantList,'vegan', $curDate); $output .= ''; $output .= ''; $output .= ''; $output .= ''; $output .= ''; $output .= ''; $output .= ''; $output .= ''; $output .= ''; } $output .= '
DatumFrühstückMittagAbend
vegetarischveganvegetarischveganvegetarischvegan
' . $curDate->format('d.m.Y') . '' . $vegetarischEssen['1'] . '' . $veganEssen['1'] . '' . $vegetarischEssen['2'] . '' . $veganEssen['2'] . '' . $vegetarischEssen['3'] . '' . $veganEssen['3'] . '
'; kompass_create_pdf($output,$event->event_name . ' Küchenübersicht.pdf', 'landscape'); } }