File: /var/www/vhosts/creativefellows.nl/jhtaxatie.creativefellows.nl/views/dashboard.php
<div class="row rapportages">
<div class="large-12 columns">
<h1 class="text-center"><?php echo $data["header_lbl"]; ?></h1>
<?php
/*
* Create new taxation on dashboard
*/
if($data["page"] == "taxation")
{
echo '<div class="row taxatie-row new-item">';
echo '<div>';
echo '<a href="taxation/new" class="add-new-item">';
echo '<div class="small-2 large-1 columns">';
echo '<span class="icon secondary">+</span>';
echo '</div>';
echo '<div class="small-10 columns end align-middle">';
echo 'Nieuwe Taxatie';
echo '</div>';
echo '</a>';
echo '</div>';
echo '</div>';
}
/*
* Show all taxations in page
*/
foreach($data["taxations"] as $taxation)
{
echo '<div class="row taxatie-row">
<a href="'. $router->pathFor($data["action"].".view",["id" => $taxation->getId()]) .'" class="add-new-item">
<div class="small-2 large-1 columns">
<span class="icon '. $taxation->getTaxationStatusName() .'">'. $taxation->getAcronym() .'</span>
</div>
<div class="small-5 large-3 columns">
<strong>'. $taxation->getCompany() .'</strong>
</div>
<div class="small-5 large-2 columns">
'. $taxation->getTruck() .'
</div>
<div class="small-5 large-2 columns">
'. $taxation->getCity() .'
</div>
<div class="small-5 large-2 columns">
'. $taxation->sourceLabel() .'
</div>
<div class="small-5 large-2 columns text-right">
'. $taxation->getDate() .'
</div>
</a>
</div>';
}
/*
* No items found
*/
if(count($data["taxations"]) == 0 && strtolower($data["page"]) == "archive")
{
echo '<div class="row taxatie-row">';
echo '<div class="small-12 columns text-center">';
echo '<strong>Geen taxaties in archief</strong><br /> Taxaties ouder dan drie maanden kunnen via een zoekopdracht gezocht worden.';
echo '</div>';
echo '</div>';
}
/*
* Show pagination if exists
*/
if(isset($data["pagination"]) && $data["pagination"] > 1)
{
require_once "inc/pagination.php";
}
?>
</div>
</div>