<?php $__env->startPush("head"); ?>
    <title>İlan Ekle - <?php echo e(config('ayarlar.baslik')); ?></title>
    <meta name="description" content="Seri ilanınızı ücretsiz bir şekilde ekleyerek seri ilanlarda yerinizi alın. <?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">İlan Ekle</span></h1>
            <div class="breadcrumb">
                <a href="<?php echo e(url('/')); ?>">Ana Sayfa</a>
                <span></span> İlan Ekle
            </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('ilan.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="İlan başlığını yazınız." value="<?php echo e(old('baslik')); ?>">
                        </div>
                        <div class="form-group">
                            <label for="kategori">Kategori</label>
                            <select name="kategori" id="kategori" required 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">İlan Görseli</label>
                            <input type="file" class="form-control-file" id="resim" name="resim">
                        </div>
                        <div class="form-group">
                            <label for="isim">İsim</label>
                            <input type="text" class="form-control" name="isim" id="isim" required value="<?php echo e(old('isim')); ?>">
                        </div>
                        <div class="form-group">
                            <label for="telefon">Telefon</label>
                            <input type="text" class="form-control" name="telefon" id="telefon" required value="<?php echo e(old('telefon')); ?>">
                        </div>
                        <div class="form-group">
                            <label for="fiyat">Fiyat</label>
                            <input type="text" class="form-control" name="fiyat" id="fiyat" value="<?php echo e(old('fiyat')); ?>">
                        </div>
                        <div class="form-group">
                            <label for="email">E-Posta</label>
                            <input type="email" class="form-control" name="email" id="email" value="<?php echo e(old('email')); ?>">
                        </div>
                        <div class="form-group">
                            <label for="sehir">Şehir</label>
                            <select name="sehir" id="sehir" required class="form-control">
                                <?php if($sehirler): ?>
                                    <?php $__currentLoopData = $sehirler; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $sehirx): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                        <option value="<?php echo e($sehirx->id); ?>"><?php echo e($sehirx->il_adi); ?></option>
                                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                <?php endif; ?>
                            </select>
                        </div>
                        <div class="form-group">
                            <label for="detay">Detay</label>
                            <textarea class="form-control msg-box" name="detay" id="detay" rows="5" 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/ilanEkle.blade.php ENDPATH**/ ?>