
<?php $__env->startSection('title', 'Yeni Haber'); ?>


<?php $__env->startSection('foot_hook'); ?>
@parent
<script>

    CKEDITOR.replace('value', {
        filebrowserUploadUrl: '/component/news/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">Yeni Haber Oluştur</h1>

<?php echo Former::open_for_files()->method('POST')->action(URL::to('component/news/create')); ?>

<?php echo Former::text('title')->label('Başlık')->placeholder('Başlık')->required(true); ?>

<div class="form-group">
    <label for="title" class="control-label">Kapak Resmi</label>
    <input type="file" id="cover" name="cover" multiple accept="image/*">
</div>

<div class="form-group">
    <textarea id="value" name="value" class="form-control">
        <?php echo Input::old('value'); ?>
    </textarea>
</div>

<button type="submit" class="btn btn-danger">Oluştur</button>

<?php echo Former::close(); ?>

<?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.wrap', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>