<?php $__env->startPush("head"); ?>
    <title>Haber Gönder - <?php echo e(config('ayarlar.baslik')); ?></title>
    <meta name="description" content="Paylaşmak istediğiniz size özel haberleri bize gönderin. Site yöneticisi kontrolü sonrasında haberleriniz yayında olsun. <?php echo e(config('ayarlar.baslik')); ?>" />
<?php $__env->stopPush(); ?>
<?php $__env->startSection("content"); ?>
    <section>
        <div class="archive-header text-center mb-30">
            <h1><span class="font-weight-ultra">Haber Gönder</span></h1>
            <div class="breadcrumb">
                <a href="<?php echo e(url('/')); ?>">Ana Sayfa</a>
                <span></span> Haber Gönder
            </div>
        </div>
    </section>
    <section class="pt-30 pb-30 bg-white box-shadow mt-15 mb-30">
        <div class="container">
            <div class="row">
                <div class="col-md-12">
                    <?php if($errors->any()): ?>
                        <div class="alert alert-danger">
                            <?php $__currentLoopData = $errors->all(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $error): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                <p class="mb-0"><?php echo e($error); ?></p>
                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                        </div>
                    <?php endif; ?>
                    <?php if((\Session::has('success'))): ?>
                        <div class='alert alert-success'><?php echo e(\Session::get('success')); ?></div>
                    <?php endif; ?>
                    <form action="<?php echo e(route('haber.gonder')); ?>" method="post" enctype="multipart/form-data">
                        <?php echo csrf_field(); ?>
                        <div class="form-group">
                            <label for="baslik">Başlık</label>
                            <input type="text" class="form-control" required name="baslik" id="baslik" placeholder="Haber başlığı yazınız." value="<?php echo e(old('baslik')); ?>">
                        </div>
                        <div class="form-group">
                            <label for="kategori">Kategori</label>
                            <select name="kategori" id="kategori" class="form-control">
                                <?php if($kategoriler): ?>
                                    <?php $__currentLoopData = $kategoriler; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $kategori): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                        <option value="<?php echo e($kategori->id); ?>"><?php echo e($kategori->baslik); ?></option>
                                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                <?php endif; ?>
                            </select>
                        </div>
                        <div class="form-group">
                            <label for="resim">Haber Görseli</label>
                            <input type="file" class="form-control-file" id="resim" name="resim">
                        </div>
                        <div class="form-group">
                            <label for="metadesc">Özet</label>
                            <textarea class="form-control msg-box" name="metadesc" id="metadesc" rows="2"><?php echo e(old('metadesc')); ?></textarea>
                        </div>
                        <div class="form-group">
                            <label for="detay">Detay</label>
                            <textarea class="form-control msg-box" name="detay" id="detay" rows="10" required><?php echo e(old('detay')); ?></textarea>
                        </div>
                        <button type="submit" class="btn btn-primary">Gönder</button>
                    </form>
                </div>
            </div>
        </div>
    </section>
<?php $__env->stopSection(); ?>

<?php $__env->startPush("customJs"); ?>
<?php $__env->stopPush(); ?>

<?php $__env->startPush("customCss"); ?>
<?php $__env->stopPush(); ?>

<?php echo $__env->make('frontend.'.$temaadi.'.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/yeniistik/public_html/resources/views/frontend/tema9/haberEkle.blade.php ENDPATH**/ ?>