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/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>