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/view.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">';
				
				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">';	
					
					
					echo '<form class="default-form" action="'. $router->pathFor("admin.customer.patch",["id" => $customer->getId() ]) .'" method="post" enctype="multipart/form-data">';
						echo '<h3>'. $customer->companyName() .'</h3>';
				
						foreach($data["fields"] as $field)
						{	
							$value = $customer->getValue( $field->getName() );							
							$field->setValue( $value ); 
							
							
							echo $field->getInput();
						}
						
						echo '<br />';
						echo '<input type="hidden" name="_METHOD" value="PATCH"/>';
						echo '<button type="submit" class="button hollow primary">Opslaan</button>';
					echo '</form>';
					
					
					echo '</div>';
				echo '</div>';
				
			
				
				
			echo '</div>';
		echo '</div>';
	echo '</div>';
	
	
	/*
 	 * Footer
	 */
	require_once __DIR__ . '/../inc/footer.inc.php';

	
?>