
<?php $__env->startSection('subtitle'); ?>
Edit Attachment <?php echo $attachment -> name; ?>
<?php $__env->stopSection(); ?>

<?php $__env->startSection('content'); ?>

<div class="row">
    <div class="col-lg-12">
        <h1><?php echo $attachment -> name; ?> <small>Edit</small></h1>
        <ol class="breadcrumb">
            <li>
                <i class="fa fa-dashboard"></i>
                <a href="<?php echo route('adminDashboard'); ?>">
                    Dashboard
                </a>
            </li>
            <li>
                <i class="icon-file-alt"></i>
                <a href="<?php echo route('admin.game.index'); ?>">
                    Games
                </a>
            </li>
            <li>
                <i class="icon-file-alt"></i>
                <a href="<?php echo action('GameController@show', array('id' => $game -> id)); ?>">
                    <?php echo $game -> id; ?>
                </a>
            </li>
            <li>
                <i class="icon-file-alt"></i>
                <a href="#">
                    <?php echo $attachment -> name; ?>
                </a>
            </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('AttachmentController@update', array('id' => $game -> id, 'attachmentID' => $attachment -> id)), 'class' => 'form-horizontal', 'files' => true)); ?>
            <fieldset>
                <div class="form-group">
                    <div class="col-lg-12">
                        <?php echo Form::text('name', $attachment -> name, array('class' => 'form-control input-lg', 'placeholder' => 'Game Name', 'required' => '')); ?>
                    </div>
                </div>
                <div class="form-group">
                    <div class="col-lg-12">
                        <?php echo Form::text('slot', $attachment -> slot, array('class' => 'form-control input-lg', 'placeholder' => 'Attachment Slot Number', 'required' => '')); ?>
                    </div>
                </div>
                <div class="form-group">
                    <?php if ($attachment -> thumb_url): ?>
                    <div class="col-lg-2">
                        <img src="<?php echo asset($attachment -> thumb_url); ?>" alt="<?php echo $attachment -> name; ?>" />
                        <a href="<?php echo action('AttachmentController@removeImage', array('id' => $game -> id, 'attachmentID' => $attachment -> id)); ?>" class="btn btn-danger">
                            <span class="glyphicon glyphicon-trash"></span>
                        </a>
                    </div>
                    <?php endif; ?>
                    <div class="col-lg-10">
                        <?php echo Form::label('image', 'Upload Image: ', array('class' => 'control-label')); ?>
                        <?php echo Form::file('image', '', array('class' => 'form-control input-lg')); ?>
                    </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(); ?>