';
}
echo "| " . $order->primary_key . " | ";
echo "" . $order->contact->name . " | ";
echo "" . $order->event . " | ";
echo "" . date_format(new \DateTime($order->order_schedule[0]->date_start), 'd.m.Y') . " " . getTimeFromSeconds($order->order_schedule[0]->time_start) . " | ";
echo "" . date_format(new \DateTime($order->order_schedule[0]->date_end), 'd.m.Y') . " " . getTimeFromSeconds($order->order_schedule[0]->time_end) . " | ";
echo "" . $order->sum_net . " (" . $order->sum_gro . ") | ";
echo "
";
}
function getTimeFromSeconds(string $timestring) {
$hours = floor($timestring / 3600);
$mins = floor($timestring / 60 % 60);
$secs = floor($timestring % 60);
$timeFormat = sprintf('%02d:%02d', $hours, $mins);
return $timeFormat;
}
?>