<?php
    if(count($this->messages) > 0)
    {
        echo "
            <div class=\"section message\">
                <div class=\"row\">
                    <div class=\"small-12 columns\">";
                        foreach($this->messages as $message)
                        {
                            echo "<p>".$message."</p>";
                        }
                        echo "
                    </div>
                </div>
            </div>
        ";
    }
?>
<div class="section info">
        <?php
        echo "
            <div class=\"row\">
                <div class='small-12 columns text-center'>
                    <h2>Time submitted this week</h2>
                    <p>".$this->week['start']['month']." ".$this->week['start']['day']." ".$this->week['year']." to ".$this->week['end']['month']." ".$this->week['end']['day']." ".$this->week['year']."</p>
                </div>
                <div class='small-12 columns text-center'>
                    <h2>".$this->week['total']."</h2>
                </div>
            </div>
        ";

        echo "</div>";
        echo "<div class='section'>";

        if($this->timesheet->totals['Total Time'] > 0)
        {
            echo "
            <div class=\"row\">
                <div class=\"small-12 columns\">
                    <h2>".date('F')." ".date('Y')." <small> Hours</small></h2>
                </div>
            </div>";
        }

        foreach($this->timesheet->totals as $key=>$value)
        {
            if($value > 0)
            {
                echo "
                    <div class='row'>
                        <div class='small-6 columns'>
                            <h4>$key</h4>
                        </div>
                        <div class='small-6 columns'>
                            <h4>$value</>
                        </div>
                    </div>
                ";
            }
        }
        ?>
    </div>
</div>