
<?php \Laravel\Section::start('content'); ?>

   <h1>Registration</h1>
	<?php echo  render('common.registration_errors') ; ?>
	<?php echo  Form::open('registration/create', 'POST') ; ?>
	<div id="tabs">
		<ul>
			<li><a href="#tabs-1">Personal data</a></li>
			<li><a href="#tabs-2">Coordinates</a></li>
			<li><a href="#tabs-3">Membership</a></li>
		</ul>
		<div id="tabs-1">
			<p>
			   <?php echo  Form::label('name', 'Name:') ; ?> <br/>
			   <?php echo  Form::text('name', Input::old('name')) ; ?>
			</p>
			<p>
			   <?php echo  Form::label('surname', 'Surname:') ; ?> <br/>
			   <?php echo  Form::text('surname', Input::old('surname')) ; ?>
			</p>
			 <p>
			   <?php echo  Form::label('birthday', 'Date of birth:') ; ?> <br/>
			   <?php echo  Form::date('birthday', Input::old('birthday')) ; ?>
			</p>
			<p>
			   <?php echo  Form::label('language', 'Language:') ; ?> <br/>
			   <?php echo  Form::text('language', Input::old('language')) ; ?>
			</p>
		</div>
		<div id="tabs-2">
			<p>
			   <?php echo  Form::label('email', 'e-mail:') ; ?> <br/>
			   <?php echo  Form::email('email', Input::old('email')) ; ?>
			<p>
			   <?php echo  Form::label('office', 'Office:') ; ?> <br/>
			   <?php echo  Form::text('office', Input::old('office')) ; ?><br/>
			   <?php echo  Form::label('off_phone', 'Office phone:') ; ?> <br/>
			   <?php echo  Form::text('off_phone', Input::old('off_phone')) ; ?>
			</p>
			<p>
			   <?php echo  Form::label('address', 'Address:') ; ?> <br/>
			   <?php echo  Form::text('address', Input::old('address')) ; ?><br/>
			   <?php echo  Form::label('pcode', 'Postal code:') ; ?> <br/>
			   <?php echo  Form::text('pcode', Input::old('pcode')) ; ?>
			</p>
			<p>
			   <?php echo  Form::label('phone', 'Phone:') ; ?> <br/>
			   <?php echo  Form::text('phone', Input::old('phone')) ; ?>
			</p>
			<p>
			   <?php echo  Form::label('mobile', 'Mobile:') ; ?> <br/>
			   <?php echo  Form::text('mobile', Input::old('mobile')) ; ?>
			</p>
		</div>
		<div id="tabs-3">
			<div id="radio">
			<table>
				<tr>
					<td><?php echo  Form::label('membership', 'Membership type:') ; ?> </td>
					<td><input type="radio" id="membership1" name="membership" value="F" checked="checked" /><label for="membership1">Full (100€)</label>
						<input type="radio" id="membership2" name="membership" value="P" /><label for="membership2">Partial (25€)</label></td>
				</tr>
				<tr>
					<td><?php echo  Form::label('membership', 'Playing in our teams:') ; ?> 
					<td><input type="radio" id="competition1" name="competition" value="N" checked="checked" /><label for="competition1">No</label>
						<input type="radio" id="competition2" name="competition" value="P" /><label for="competition2">Player</label>
						<input type="radio" id="competition3" name="competition" value="S" /><label for="competition3">Substitute</label></td>
				</tr>
			</table>
			</div>
		</div>
	</div>
	<p>
	   <?php echo  Form::submit('add registration' , array( 'class' => 'button')) ; ?>
	</p>
   <?php echo  Form::close() ; ?>
<?php \Laravel\Section::stop(); ?>


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