
<?php $__env->startSection('subtitle'); ?>
Edit Game <?php echo $game -> id; ?>
<?php $__env->stopSection(); ?>

<?php $__env->startSection('content'); ?>
<div class="row">
    <div class="col-lg-12">
        <h1>Game <small>Edit</small></h1>
        <ol class="breadcrumb">
            <li>
                <i class="fa fa-dashboard"></i> Dashboard
            </li>
            <li>
                <i class="icon-file-alt"></i> Game
            </li>
            <li class="active">
                <i class="icon-file-alt"></i> Edit
            </li>
        </ol>
    </div>
</div><!-- /.row -->

<div class="row">
    <div class="col-lg-7">
        <div class="well">
            <?php echo Form::open( array('url' => action('GameController@update', array('id' => $game -> id)), 'method' => 'PUT', 'class' => 'form-horizontal', 'files' => true)); ?>
            <fieldset>
                <legend>
                    <h2>Edit Game</h2>
                </legend>
                <div class="form-group">
                    <div class="col-lg-7">
                        <?php echo Form::text('id', $game -> id, array('class' => 'form-control input-lg', 'placeholder' => 'Game Name', 'required' => '')); ?>
                    </div>
					<div class="col-lg-5">
                        <?php echo Form::text('short_name', $game -> short_name, array('class' => 'form-control input-lg', 'placeholder' => 'Short Name')); ?>
                    </div>
                </div>
                <div class="form-group">
					<div class="col-lg-6">
                        <?php echo Form::select('theme_color', 
                            array('cyan' => 'Cyan', 'green' => 'Green', 'orange' => 'Orange', 'red' => 'Red', 'yellow' => 'Yellow'), 
                            $game -> theme_color, 
                            array('class' => 'form-control input-lg', 'placeholder' => 'Theme Color', 'required' => '')); ?>
                    </div>
                    <div class="col-lg-6">
                        <?php echo Form::text('live', $game -> live, array('class' => 'form-control input-lg', 'placeholder' => 'Live', 'required' => '')); ?>
                    </div>
                </div>
                <div class="form-group">
                    <div class="col-lg-12">
                        <?php echo Form::label('image', 'Upload Small Image (525 x 179 minimum): ', array('class' => 'control-label')); ?>
                        <?php echo Form::file('image', '', array('class' => 'form-control input-lg')); ?>
                        Current: <?php echo $game -> thumb_url; ?>
                    </div>
                </div>
                <div class="form-group">
                    <div class="col-lg-12">
                        <?php echo Form::label('header_image', 'Upload Header Image (1500 x 215 minimum): ', array('class' => 'control-label')); ?>
                        <?php echo Form::file('header_image', '', array('class' => 'form-control input-lg')); ?>
                        Current: <?php echo $game -> header_url; ?>
                    </div>
                </div>
                <div class="form-group">
                    <div class="col-lg-12">
                        <button type="submit" class="btn btn-primary">
                            Save
                        </button>
                    </div>
                </div>
            </fieldset>
            <?php echo Form::close(); ?>
        </div>
    </div>
</div>

<?php $__env->stopSection(); ?>
<?php echo $__env->make('admin.layout', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>