HEX
Server: Apache
System: Linux v38079.2is.nl 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64
User: democfellows (10015)
PHP: 8.1.34
Disabled: opcache_get_status
Upload Files
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>