<?php
    $trendStatus = !empty($get['trendStatus']) ? urldecode($get['trendStatus']) : '';
?>

<div class="filter-status">
    <button class="filter-by-status status-new <?php echo !empty($trendStatus) && $trendStatus === 'new' ? 'active' : ''; ?>" data-status="new">🟢 New</button>
    <button class="filter-by-status status-improved <?php echo !empty($trendStatus) && $trendStatus === 'gained' ? 'active' : ''; ?>" data-status="gained">🔼 Improved</button>
    <button class="filter-by-status status-down <?php echo !empty($trendStatus) && $trendStatus === 'dropped' ? 'active' : ''; ?>" data-status="dropped">🔻 Going Down</button>
</div>