File: /var/www/vhosts/creativefellows.nl/jhtaxatie.creativefellows.nl/views/taxation-values.php
<div class="row rapportages">
<div class="large-12 columns">
<h1 class="text-center">Waardebepaling taxaties</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="'. $taxation->pdfUrl() .'" class="add-new-item hide"></a>
<div class="small-2 large-1 columns">
<span class="icon">'. $taxation->getAcronym() .'</span>
</div>
<div class="small-10 large-3 columns">
<a href="'. $router->pathFor("taxation.view",["id" => $taxation->getId()]) .'" target="_blank">
<strong>'. $taxation->getCompany() .'</strong>
</a>
</div>
<div class="small-10 large-3 columns">
'. $taxation->getTruck() .'
</div>
<div class="small-10 large-1 columns">
'. $taxation->truckYear() .'
</div>
<div class="small-offset-2 small-4 medium-offset-0 large-1 columns">
'. $taxation->getTaxationValue(true) .'
</div>
<div class="small-3 large-2 columns text-right">
'. $taxation->getDate() .'
</div>
<div class="small-3 large-1 columns text-right">
<a href="'. $router->pathFor("taxation.approvevalue",["id" => $taxation->getId(), "value" => 1]) .'" class="taxation-approve accept"><i class="fa fa-check"></i></a>
<a href="'. $router->pathFor("taxation.approvevalue",["id" => $taxation->getId(), "value" => 2]) .'" class="taxation-approve decline"><i class="fa fa-times"></i></a>
</div>
</div>';
}
if(count($data["taxations"]) == 0 && strtolower($data["page"]) == "archive")
{
echo '<div class="row taxatie-row">
<div class="small-12 columns text-center">
<strong>Geen taxaties aanwezig</strong>
</div>
</div>';
}
/*
* Show pagination if exists
*/
if(isset($data["pagination"]) && $data["pagination"] > 1)
{
require_once "inc/pagination.php";
}
?>
</div>
</div>