complete calendar strip sessions informations
This commit is contained in:
parent
7c4e5d52b8
commit
450fac4e5e
4 changed files with 28 additions and 16 deletions
|
|
@ -56,8 +56,6 @@ return [
|
|||
$request = createMapadoEventRequest($event);
|
||||
$mapadoEvent = fetchMapadoEvent($request);
|
||||
|
||||
$duration = null;
|
||||
|
||||
$sessionsToSave = [];
|
||||
|
||||
foreach ($mapadoEvent->eventDateList as $session) {
|
||||
|
|
@ -73,17 +71,13 @@ return [
|
|||
$ticketingUrl = option('ticketingUrl') . 'event/' . $mapadoEvent->slug . '?eventDate=' . $eventDateId;
|
||||
$bookableStock = $session->notInStockContingentBookableStock;
|
||||
|
||||
if (isset($session->endDate) && !$duration) {
|
||||
$endTime = substr($session->endDate, 11 , 5);
|
||||
$duration = getTimeDifference($startTime, $endTime);
|
||||
}
|
||||
|
||||
$calendar[$sessionMonth][$sessionDay]['sessions'][] = array_merge($eventInfos, [
|
||||
"color" => $event->color()->value(),
|
||||
"day" => $sessionDay,
|
||||
"time" => str_replace(':', 'h', $startTime),
|
||||
"duration" => $duration,
|
||||
"duration" => $event->duration()->value(),
|
||||
"place" => $event->place()->value(),
|
||||
"public" => $event->public()->value(),
|
||||
"eventUrl" => $event->url(),
|
||||
"ticketingUrl" => $ticketingUrl,
|
||||
"bookableStock" => $bookableStock,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue