home calendar-strip - manage bookable stock
This commit is contained in:
parent
adff8b9ab7
commit
f35c74047d
2 changed files with 13 additions and 6 deletions
|
|
@ -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
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue