Add the unique stay period in the list

Co-authored-by: Name <sumit201@webkul.in>
This commit is contained in:
aradhana kumari
2026-07-07 18:59:21 +05:30
parent 8f73503ade
commit 89efc194ea
2 changed files with 5 additions and 5 deletions

View File

@@ -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;

View File

@@ -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;
}