home calendar-strip - manage bookable stock

This commit is contained in:
isUnknown 2024-09-03 16:45:34 +02:00
parent adff8b9ab7
commit f35c74047d
2 changed files with 13 additions and 6 deletions

View file

@ -72,6 +72,7 @@ return [
$eventDateId = explode('/', $session->{'@id'});
$eventDateId = $eventDateId[count($eventDateId) - 1];
$ticketingUrl = option('ticketingUrl') . 'event/' . $mapadoEvent->slug . '?eventDate=' . $eventDateId;
$bookableStock = $session->notInStockContingentBookableStock;
if (isset($session->endDate) && !$duration) {
$endTime = substr($session->endDate, 11 , 5);
@ -85,7 +86,8 @@ return [
"duration" => $duration,
"place" => $event->place()->value(),
"eventUrl" => $event->url(),
"ticketingUrl" => $ticketingUrl
"ticketingUrl" => $ticketingUrl,
"bookableStock" => $bookableStock
]);
}
}