
<?php $__env->startSection('title', $slider->title); ?>

<?php echo $__env->make('slider::sidebar', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>

<?php $__env->startSection('foot_hook'); ?>
@parent
<script>

    CKEDITOR.replace('value', {
        filebrowserUploadUrl: '/component/slider/uploader',
        height: '400px'
    });

</script>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('assets.form.ckeditor', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>

<?php $__env->startSection('_content'); ?>

<h1 class="title"><?php echo $slider->title; ?> - Düzenle <a  data-toggle="modal" data-target="#confirm-delete" class="pull-right btn-xs btn-danger btn"><i class="fa fa-trash-o"></i> Slider Sil</a></h1>

<?php echo Former::open_for_files()->method('POST')->action(URL::to('component/slider/edit/'.$slider->id)); ?>

<?php echo Former::text('title')->label('Başlık')->placeholder('Başlık')->value($slider->title); ?>

<div class="form-group">
    <img src="<?php echo asset('modules/slider/slider/'.$slider->background); ?>" height="200"> <br>	<img src="<?php echo asset('modules/slider/slider/'.$slider->background2); ?>" height="200">
</div>

<div class="form-group">
    <label for="title" class="control-label">Resim 1</label>
    <input type="file" id="background" name="background" multiple accept="image/*">
</div>
<div class="form-group">    <label for="title" class="control-label">Resim 2</label>    <input type="file" id="background2" name="background2" multiple accept="image/*"></div>


<div class="form-group">
    <textarea id="value" name="value" class="form-control">
        <?php echo $slider->content; ?>
    </textarea>
</div>

<button type="submit" class="btn btn-danger">Değişiklikleri Kaydet</button>

<?php echo Former::close(); ?>


<div class="modal fade" id="confirm-delete" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content">

            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
                <h4 class="modal-title" id="myModalLabel">Silmeyi Onaylıyormusun ?</h4>
            </div>

            <div class="modal-body">
                <p>İşleme devam edilsin mi?</p>
            </div>

            <div class="modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal">Hayır</button>
                <a href="<?php echo URL::to('component/slider/delete/'.$slider->id); ?>" class="btn btn-danger danger">Sil</a>
            </div>
        </div>
    </div>
</div>


<?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.wrap', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>