diff --git a/site/config/routes/month-dates.php b/site/config/routes/month-dates.php index f4a285f..c844038 100644 --- a/site/config/routes/month-dates.php +++ b/site/config/routes/month-dates.php @@ -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 ]); } } diff --git a/site/snippets/calendar-strip.php b/site/snippets/calendar-strip.php index e4905bf..061f56c 100644 --- a/site/snippets/calendar-strip.php +++ b/site/snippets/calendar-strip.php @@ -9,6 +9,7 @@ targetSessions: [], open: false, today: dayjs().format('DD-MM-YYYY'), + stockThreshold: , get monthName() { return dayjs().month(this.monthNumb).format('MMMM'); @@ -76,16 +77,20 @@
- + + +