|
if ($room->bookingPlanVisibleForUser($current_user)): ?>
$booking_plan_params = [];
if (isset($time_intervals[0]) && $time_intervals[0]['begin']) {
$booking_plan_params = [
'defaultDate' => date('Y-m-d', $time_intervals[0]['begin'])
];
}
?>
= htmlReady($room->name) ?>
else: ?>
= htmlReady($room->name) ?>
endif ?>
= tooltipIcon($room->room_type) ?>
– = htmlReady(sprintf('%d Sitzplätze', $room->seats)) ?>
if (!empty($underload)) : ?>
[= htmlReady($underload) ?>%]
endif ?>
|
if (!empty($time_intervals) && count($time_intervals) > 1) : ?>
id] <= 0.0 ? 'disabled="disabled"' : '' ?>>
if ($room_availability_share[$room->id] >= 1.0) : ?>
= Icon::create('check-circle', Icon::ROLE_STATUS_GREEN)->asImg(['class' => 'text-bottom']) ?>
elseif ($room_availability_share[$room->id] <= 0.0) : ?>
= Icon::create('decline-circle', Icon::ROLE_STATUS_RED)->asImg(['class' => 'text-bottom']) ?>
else : ?>
= Icon::create('exclaim-circle', Icon::ROLE_STATUS_YELLOW)->asImg(['class' => 'text-bottom']) ?>
= tooltipIcon(sprintf(
_('%u von %u Terminen nicht verfügbar'),
$unavailable_dates[$room->id],
$amount_of_dates[$room->id]
)) ?>
endif ?>
|
endif ?>
foreach ($time_intervals as $metadate_id => $data): ?>
if (($data['metadate'] instanceof SeminarCycleDate)) : ?>
$availability = $metadate_availability_share[$room->id][$metadate_id];
$range_index = 'SeminarCycleDate' . '_' . $metadate_id;
$room_radio_name = 'selected_rooms[' . $range_index . ']';
?>
= ($availability > 0 && isset($selected_rooms[$range_index]) && $selected_rooms[$range_index] == $room->id)
? 'checked'
: ''?>>
if ($availability >= 1.0) : ?>
= Icon::create('check-circle', Icon::ROLE_STATUS_GREEN)->asImg(['class' => 'text-bottom']) ?>
elseif ($availability <= 0.0) : ?>
= Icon::create('decline-circle', Icon::ROLE_STATUS_RED)->asImg(['class' => 'text-bottom']) ?>
else : ?>
= Icon::create('exclaim-circle', Icon::ROLE_STATUS_YELLOW)->asImg(['class' => 'text-bottom']) ?>
= tooltipIcon(sprintf(
_('%u von %u Terminen nicht verfügbar'),
$unavailable_metadate_dates[$room->id][$metadate_id],
$amount_of_metadate_dates[$room->id][$metadate_id]
)) ?>
endif ?>
$stats = 0; array_walk($data['intervals'], function($item, $key, $room_id) use (&$stats) {
if (in_array($room_id, $item['booked_rooms'])) {
$stats++;
}
}, $room->id) ?>
if ($stats > 0) : ?>
= tooltipIcon(sprintf(
_('%s von %s Terminen sind in diesem Raum'),
$stats, count($data['intervals'])
));
?>
endif ?>
|
else : ?>
$i = 0 ?>
foreach($data['intervals'] as $interval) : ?>
$available = !empty($room_availability[$room->id][$metadate_id][$i]);
$range_index = $interval['range'] . '_' . $interval['range_id'];
$room_radio_name = 'selected_rooms[' . $range_index . ']';
?>
if ($available || (!empty($interval['booked_rooms']) && in_array($room->id, $interval['booked_rooms']))): ?>
id
|| (!empty($interval['booked_rooms']) && in_array($room->id, $interval['booked_rooms'])))
? 'checked="checked"'
: ''?>>
= Icon::create('check-circle', Icon::ROLE_STATUS_GREEN)->asImg(['class' => 'text-bottom']) ?>
else: ?>
= Icon::create('decline-circle', Icon::ROLE_STATUS_RED)->asImg(['class' => 'text-bottom']) ?>
endif ?>
|
$i++ ?>
endforeach ?>
endif ?>
endforeach ?>