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/okaycolor.creativefellows.nl/views/admin/customer/list.php
<?php
	

	/*
 	 * Header
	 */
	require_once __DIR__ . '/../inc/header.inc.php';
	

	/*
 	 * Content
	 */
	echo '<div class="cell auto content">';
		echo '<div class="grid-x">';
			echo '<div class="cell small-12">';
				
				/*
				 * header + new item 
				 */
			
				echo '<div class="grid-x grid-padding-x medium-padding-collapse align-middle">';
			
					echo '<div class="cell small-8">';
						echo '<h2>Klanten</h2>';
					echo '</div>';
					echo '<div class="cell auto text-right">';
						echo '<a href="'. $router->pathFor("admin.customer.new") .'" class="button primary add-new">Nieuw</a>';
					echo '</div>';
			
				echo '</div>';
			
			
				echo '<div class="grid-x grid-padding-x block-white text-left">';
					echo '<div class="cell small-12 printgarden-table">';	
					
					/*
					 * Table headers 
					 */	
					echo '<div class="grid-x grid-padding-x thead">';
					
						echo '<div class="cell small-6 large-2">';
							echo '<div class="grid-x grid-padding-x align-middle">';
							
								echo '<div class="cell small-2 row-id">#</div>';
								echo '<div class="cell small auto">Naam</div>';
					
							echo '</div>';
						echo '</div>';
						
						echo '<div class="cell small-6 large-3">Bedrijfsnaam</div>';					
						echo '<div class="cell small-2 large-1 hide-for-small-only">Telefoon</div>';
						//echo '<div class="cell small-3 large-3 hide-for-small-only">Email</div>';
						echo '<div class="cell small-2 large-3 hide-for-small-only">Adres</div>';
						echo '<div class="cell small-2 large-1 hide-for-small-only">Postcode</div>';
						echo '<div class="cell small-2 large-2 hide-for-small-only">Plaats</div>';
					echo '</div>';
					
					foreach($data["customers"] as $i => $customer){
						
								
						echo '<div class="grid-x grid-padding-x item-row align-middle">';
										
							echo '<div class="cell small-6 large-2">';	
								echo '<div class="grid-x grid-padding-x align-middle">';
									
									echo '<div class="cell small-2 row-id">';	
										echo $customer->position();	
									echo '</div>';
								
									echo '<div class="cell small auto">';	
										echo '<a href="'. $router->pathFor("admin.customer.view",["id" => $customer->getId() ]) .'">'. $customer->user(0)->fullName() .'</a>';	
									echo '</div>';
							
								echo '</div>';
							echo '</div>';
							
							
							echo '<div class="cell small-6 large-3">';	
								echo '<a href="'. $router->pathFor("admin.customer.view",["id" => $customer->getId() ]) .'">'. $customer->companyName() .'</a>';
							echo '</div>';
							
							echo '<div class="cell small-6 large-1 hide-for-small-only">';	
								echo $customer->phone();
							echo '</div>';
													
							echo '<div class="cell small-3 large-3 hide-for-small-only">';	
								echo $customer->address();
							echo '</div>';
							
							echo '<div class="cell small-2 large-1 hide-for-small-only">';	
								echo $customer->zip();
							echo '</div>';
							
							echo '<div class="cell small-3 large-2 hide-for-small-only">';	
								echo $customer->city();
							echo '</div>';
													
						
						echo '</div>';
					}
					
					echo '</div>';
				echo '</div>';
				
				
				/*
				 * Show pagination if exists
				 */	
				require_once __DIR__ . '/../inc/pagination.inc.php';		
				
				
				
				
			echo '</div>';
		echo '</div>';
	echo '</div>';
	
	
	/*
 	 * Footer
	 */
	require_once __DIR__ . '/../inc/footer.inc.php';

	
?>