|
@@ -32,12 +32,13 @@ class AppointmentController extends Controller
|
|
$events = [];
|
|
$events = [];
|
|
foreach ($appointments as $appointment) {
|
|
foreach ($appointments as $appointment) {
|
|
$events[] = [
|
|
$events[] = [
|
|
- "title" => '[' . $appointment->pro->initials() . '] ' . $appointment->client->displayName(),
|
|
|
|
|
|
+ "title" => '(' . $appointment->pro->initials() . ') ' . $appointment->client->displayName(),
|
|
"appointmentUid" => $appointment->uid,
|
|
"appointmentUid" => $appointment->uid,
|
|
"clientUid" => $appointment->client->uid,
|
|
"clientUid" => $appointment->client->uid,
|
|
"proUid" => $appointment->pro->uid,
|
|
"proUid" => $appointment->pro->uid,
|
|
- "start" => $this->convertToTimezone($appointment->start_time, $timeZone), // TODO: convert to $timeZone
|
|
|
|
- "end" => $this->convertToTimezone($appointment->end_time, $timeZone), // TODO: convert to $timeZone
|
|
|
|
|
|
+ "start" => $this->convertToTimezone($appointment->start_time, $timeZone),
|
|
|
|
+ "end" => $this->convertToTimezone($appointment->end_time, $timeZone),
|
|
|
|
+ "editable" => true
|
|
];
|
|
];
|
|
}
|
|
}
|
|
return json_encode($events);
|
|
return json_encode($events);
|