<?php $__env->startSection('content'); ?>
	<?php echo HTML::style('css/ui/jquery-ui-1.10.3.custom.min.css'); ?>
	<?php $__env->startSection('scripts'); ?>
    	<script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.10.3/jquery-ui.min.js"></script>  
		<script type="text/javascript">
            $(function() {
          		$("#date").datepicker();
            });
        </script>
    <?php $__env->stopSection(); ?>
	<p class="head_inner_nav">
        <a href="<?php echo URL::to('admin/press'); ?>">Press</a><span>></span><?php echo $title; ?>
    </p> 
	<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($press, $method); ?>
    	<div class="form-group">
  			<button class="btn btn-primary">Save</button>
  			<a href="<?php echo URL::to('admin/press'); ?>" class="btn btn-link">Cancel</a>
  		</div>
		<div class="form-group">
    		<label for="input-category" class="control-label">Category</label>
    		<?php echo Form::select('category_id', $categories, null, array('id' => 'input-category', 'required' => 'true', 'class' => 'form-control')); ?> 		
  		</div>
  		<div class="form-group">
    		<label for="input-title" class="control-label">Title</label>
    		<?php echo Form::text('title', null, array('id' => 'input-title', 'placeholder' => 'Title', 'required' => 'true', 'class' => 'form-control')); ?>     		
  		</div>
       	<div class="form-group">
    		<label for="date" class="control-label">Date</label>     		
     		<?php echo Form::text('created_at', $date, array('id' => 'date', 'placeholder' => 'Date', 'class' => 'form-control')); ?> 
  		</div>
  		<div class="form-group">
    		<label for="redactor" class="control-label">Content</label>     		
     		<?php echo Form::textarea('content', null, array('id' => 'redactor', 'placeholder' => 'Content', 'required' => 'true', 'class' => 'form-control')); ?>  
  		</div>  
       	<div class="form-group">
            <label for="input-position" class="control-label">Position</label>
            <?php echo Form::text('position', null, array('id' => 'input-position', 'placeholder' => 'Position', 'class' => 'form-control')); ?>     		
        </div>  		
  		<div class="form-group">
    		<label for="input-is_active" class="control-label">Is active</label>
    		<?php echo Form::select('is_active', array('1' => 'Yes', '0' => 'No'), null, array('id' => 'input-is_active', 'class' => 'form-control')); ?>     		
  		</div>
  		<div class="form-group">
  			<button class="btn btn-primary">Save</button>
  			<a href="<?php echo URL::to('admin/press'); ?>" class="btn btn-link">Cancel</a>
  		</div>
	<?php echo Form::close(); ?>
	
<?php $__env->stopSection(); ?>