<?php $__env->startSection('content'); ?>
	<h2><?php echo $title; ?></h2>
	
	<?php if($errors->has()): ?>
		<div class="alert alert-danger">
		<?php foreach ($errors->all() as $row): ?>
	      <div><?php echo $row; ?></div>
	  	<?php endforeach; ?>
	  	</div>
	<?php endif; ?>
	
	
	<?php echo Form::model($broker, $method, array('class' => 'form-horizontal')); ?>		
		<div class="form-group">
    		<label for="input-brokerage" class="col-lg-2 control-label">Brokerage Co.</label>
    		<div class="col-lg-10"> <?php echo Form::select('brokerage_id', $brokerages, null, array('id' => 'input-brokerage', 'class' => 'form-control')); ?> 		</div>
  		</div> 
  		<div class="form-group">
    		<label for="input-fullname" class="col-lg-2 control-label">Full name *</label>
    		<div class="col-lg-10"> <?php echo Form::text('fullname', null, array('id' => 'input-fullname', 'placeholder' => 'Full name', 'required' => 'true', 'class' => 'form-control')); ?>   </div>  		
  		</div>
  		<div class="form-group">
    		<label for="input-email" class="col-lg-2 control-label">Email address</label>
    		<div class="col-lg-10">
    			<?php echo Form::text('email', null, array('id' => 'input-email', 'placeholder' => 'Email address', 'class' => 'form-control')); ?>   
    		</div>  		
  		</div>
  		<div class="form-group">
    		<label for="input-phone" class="col-lg-2 control-label">Office Phone</label>
    		<div class="col-lg-10">
    			<?php echo Form::text('phone', null, array('id' => 'input-phone', 'placeholder' => 'Phone', 'class' => 'form-control')); ?>   
    		</div>  		
  		</div>
  		<div class="form-group">
    		<label for="input-cell" class="col-lg-2 control-label">Cell Phone</label>
    		<div class="col-lg-10">
    			<?php echo Form::text('cell', null, array('id' => 'input-cell', 'placeholder' => 'Cell Phone', 'class' => 'form-control')); ?>   
    		</div>  		
  		</div>
  		<div class="form-group">
    		<label for="input-website" class="col-lg-2 control-label">Website</label>
    		<div class="col-lg-10">
    			<?php echo Form::text('website', null, array('id' => 'input-website', 'placeholder' => 'Website', 'class' => 'form-control')); ?>   
    		</div>  		
  		</div>  		
  		<div class="form-group">
    		<label for="input-logo" class="col-lg-2 control-label">Picture</label>     		
     		<div class="col-lg-10"> 
     			<?php if(isset($broker) && $broker->picture !=''): ?>
     				<p><img src="<?php echo Image::url($broker->picture, 'brokers'); ?>" style="max-width:300px;" />  <label><?php echo Form::checkbox('picture_delete', 1); ?> Delete</label></p>
     				<strong>Upload new logo, if you want to replace existing one.</strong> <br />
     			<?php endif; ?>
     			<?php echo Form::file('picture', array('id' => 'input-picture', 'placeholder' => 'Picture')); ?>  
     		</div>
  		</div>		
  		<div class="form-group">
    		<label for="input-description" class="col-lg-2 control-label">Bio</label>    
    		<div class="col-lg-10"> 		
     		<?php echo Form::textarea('bio', null, array('id' => 'input-description', 'placeholder' => 'Bio', 'class' => 'form-control', 'rows' => 10)); ?>
     		</div>  
  		</div>  
  		<div class="form-group">
  			<button class="col-lg-offset-2 btn btn-primary">Save</button>
  			<a href="<?php echo URL::route('admin.rental-brokers.index'); ?>" class="btn btn-link">Cancel</a>
  		</div>
  		
	<?php echo Form::close(); ?>
	
<?php $__env->stopSection(); ?>