<?php \Laravel\Section::start('content'); ?>
	<h1>Edit player's data </h1>
	<?php echo  render('common.player_errors') ; ?>
	
	<?php echo  Form::open('player/update', 'PUT') ; ?>
	<table>
		<tr><th align="right">Season</th><th> : </th><td><?php echo  $player->season_name ; ?></td></tr>
		<tr><th align="right">Club member</th><th> : </th><td><?php echo  $player->person_name . ' ' . $player->person_surname ; ?></td></tr>
		<tr><th align="right">Federation player</th><th> : </th><td></td></tr>
		<tr><th align="right">Team</th><th> : </th><td><?php echo  Form::select('team_id', $team_options, $player->team_id) ; ?></td></tr>
	</table>	
   <?php echo  Form::hidden('player_id', $player->player_id) ; ?>
   <?php echo  Form::hidden('person_id', $player->person_id) ; ?>
   <?php echo  Form::hidden('season_id', $player->season_id) ; ?>
	<p>
   <?php echo  Form::submit('save' , array( 'class' => 'button')) ; ?>
	</p>
   <?php echo  Form::close() ; ?>
<?php \Laravel\Section::stop(); ?>


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