<?php \Laravel\Section::start('content'); ?>
	<div><h1>Το Μητρώο του ομίλου</h1></div>
	<div class="table">
	<table id="tb_grid" class="grid">
		<thead>
			<tr>
				<th width="80px"></th>
				<th>Α.Μ.</th>
				<th>όνομα</th>
				<th>email</th>
				<th>τηλέφωνο 1</th>
				<th>τηλέφωνο 2</th>
				<th>κινητό</th>
				<th>διεύθυνση</th>
				<th>ημ. γενν.</th>
			</tr>
		</thead>
		<tfoot>
			<tr>
				<th colspan="9">
					<?php echo  Form::open('person/new', 'GET') ; ?>
					<?php echo  Form::submit('προσθήκη νέου προσώπου' , array( 'class' => 'button')) ; ?>
					<?php echo  Form::close() ; ?>
				</th>
			</tr>
		</tfoot>
		<tbody>
		<?php foreach($persons as $person): ?>
			<tr>
				<td><?php echo  HTML::link_to_route('person' , '', array($person->id), array( 'class'=>'show', 'alt'=>'show', 'title'=>'show details')) ; ?>
					<?php echo  HTML::link_to_route('edit_person' , '', array($person->id), array( 'class'=>'upd', 'alt'=>'upd', 'title'=>'update')) ; ?>
					<?php echo  HTML::link_to_route('confirm_person' , '', array($person->id), array( 'class'=>'del', 'alt'=>'del', 'title'=>'delete')) ; ?></td>
				<td><?php echo  substr('00000' . $person->id, -5) ; ?></td>
				<td><?php echo  $person->person_surname . ' ' . $person->person_name ; ?></td>
				<td><?php echo  HTML::mailto($person->person_email,$person->person_email); ?></td>
				<td><?php echo  $person->person_phone; ?></td>
				<td><?php echo  $person->person_phone_off; ?></td>
				<td><?php echo  $person->person_mobile; ?></td>
				<td><?php echo  $person->person_address ; ?><br/><?php echo  $person->person_pcode ; ?></td>
				<td><?php echo  $person->person_birthday; ?></td>
			</tr>
		<?php endforeach; ?>
		</tbody>
	</table>
	</div>
<?php \Laravel\Section::stop(); ?>





<?php echo view('layouts.grid')->with(get_defined_vars())->render(); ?>