summaryrefslogtreecommitdiff
path: root/includes/view/PublicDashboard_view.php
blob: 6fa40ed42221c0fac5eea93ce14f03db5a4aa222 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<?php

/**
 * Public dashboard (formerly known as angel news hub)
 */
function public_dashboard_view($stats)
{
    return page([
        div('first', [
            div('col-xs-3 text-center', [
                _('Angels needed in the next 3 hrs'),
                heading($stats['needed-3-hours'], 1)
            ]),
            div('col-xs-3 text-center', [
                _('Angels needed for nightshifts'),
                heading($stats['needed-night'], 1)
            ]),
            div('col-xs-3 text-center', [
                _('Angels currently working'),
                heading($stats['angels-working'], 1)
            ]),
            div('col-xs-3 text-center', [
                _('Hours to be worked'),
                heading($stats['hours-to-work'], 1)
            ]),
            '<script>$(function(){setTimeout(function(){window.location.reload();}, 60000)})</script>'
        ])
    ]);
}

?>