Try this PHP code:
$result = array();
foreach($data as $row) {
$date = $row['date'];
$employee = $row['employee'];
$client = $row['client'];
$event = $row['event'];
$result[$date][$client][$employee][] = $event;
}
I suppose you get $data
through a simple query before this code.