'dark', 'High' => 'danger', 'Medium' => 'warning', 'Low' => 'info']; // One plain sentence on the state of the day, under the greeting $summary = 'It\'s ' . date('l, F j') . '.'; if ($my_tickets !== null) { $open = $my_tickets['total']; if ($open === 0) { $summary .= ' No open tickets are assigned to you.'; } else { $summary .= " You have $open open ticket" . ($open === 1 ? '' : 's'); $breached = $my_tickets['breached']; $summary .= $breached ? ', ' . ($breached === $open ? ($open === 1 ? 'and it is' : 'all') : "$breached of them") . ' past SLA.' : '.'; } } // Light text colours for the severity of each attention item $tone_text = ['danger' => 'text-danger-emphasis', 'warning' => 'text-warning-emphasis', 'info' => 'text-info-emphasis', 'secondary' => 'text-body', 'success' => 'text-success-emphasis']; ?>
= escapeHtml($summary) ?>
Lighter bars are expected: what's still owed on unpaid invoices, by due date, plus recurring invoices and expenses in the month they next run. Overdue invoices aren't counted.