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

    <div class="pagetitle">
        <h1>Ayarlar</h1>
        <nav>
            <ol class="breadcrumb">
                <li class="breadcrumb-item"><a href="/">Site</a></li>
                <li class="breadcrumb-item active">Ayarlar</li>
            </ol>
        </nav>
    </div><!-- End Page Title -->



    <section class="section dashboard">
        <div class="row">
            <div class="col-lg-12">
                <div class="card">
                    <div class="card-header"><i class="bx bx-plus-circle"></i> Ayarları Güncelle</div>
                    <div class="card-body">

                        <form action="ayarlar" class="arala" method="post" enctype="multipart/form-data">
                            <?php echo csrf_field(); ?>

                            <div class="row" style="display: flex">

                                <?php $__currentLoopData = $ayar; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                    <div class="col-lg-4">

                                        <?php if($item->deger==0 || $item->deger==1): ?>

                                            <div>
                                                <div><?php echo e($item->gorunen); ?></div>
                                                <div><select name="<?php echo e($item->id); ?>" id="" class="form-select">
                                                        <option value="1"  <?php if($item->deger=="1"): ?> selected <?php endif; ?>>Açık - Görünür</option>
                                                        <option value="0" <?php if($item->deger<>"1"): ?> selected <?php endif; ?>>Kapalı - Görünmez</option>
                                                    </select></div>
                                            </div>

                                        <?php else: ?>
                                            <span class="fw-semibold"> <?php echo e($item->gorunen); ?></span>
                                            <?php if(strlen($item->deger)>70): ?>
                                                <textarea cols="10" rows="3"
                                                          style="height: auto" class="form-control"
                                                          name="<?php echo e($item->id); ?>"><?php echo $item->deger; ?></textarea>
                                            <?php else: ?>
                                                <input type="text" name="<?php echo e($item->id); ?>" id=""
                                                       value="<?php echo e($item->deger); ?>" class="form-control">

                                            <?php endif; ?>
                                        <?php endif; ?>
                                    </div>
                                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                            </div>

                            <button class="btn btn-success"><i class="bx bxs-save"></i> Güncelle</button>

                        </form>

                    </div>
                </div>
            </div>


        </div>
    </section>

    <style>
        .arala * {
            margin-bottom: 5px;
            margin-top: 5px;
            clear: both
        }

        .arala span {
            font-size: 13px;
            color: darkgray
        }
    </style>

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

<?php echo $__env->make('panel.index', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/ucretsizscript/transferpro.ucretsizscript.net/resources/views/admin/ayar.blade.php ENDPATH**/ ?>