Add the unique stay period in the list
Co-authored-by: Name <sumit201@webkul.in>
This commit is contained in:
@@ -58,8 +58,8 @@
|
||||
background: #666;
|
||||
color: #fff;
|
||||
border-radius: 50%;
|
||||
min-width: 24px;
|
||||
height: 24px;
|
||||
width: 18px;
|
||||
height: 18px;
|
||||
font-size: 11px;
|
||||
font-weight: bold;
|
||||
padding: 0 4px;
|
||||
|
||||
@@ -393,12 +393,12 @@ class AdminOrdersControllerCore extends AdminController
|
||||
}
|
||||
|
||||
$output = implode('<br>', $datesDisplay);
|
||||
$totalRooms = array_sum(array_column($formatted, 'count'));
|
||||
$uniqueStayPeriods = count($formatted);
|
||||
|
||||
if ($totalRooms > 1) {
|
||||
if ($uniqueStayPeriods > 1) {
|
||||
$output .= ' <span class="qlo-stay-period-badge qlo-stay-period-tip" data-stay-tip="'
|
||||
.htmlspecialchars(json_encode($formatted)).'">+'
|
||||
.($totalRooms - 1).'</span>';
|
||||
.($uniqueStayPeriods - 1).'</span>';
|
||||
}
|
||||
return $output;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user