<?php $__env->startSection('icerik'); ?>
    <div class="container mt-4 mb-4">
        <h3><i class="fa fa-calendar-check-o text-success"></i> Kiralama Tarihleri</h3>
        <form action="/arac-kirala" method="post" id="formx">
            <input type="hidden" name="arac" value="<?php echo e($request->id); ?>">
            <?php echo csrf_field(); ?>
        <div class="row">
            <div class="col-lg-4">
                Teslim Tarihi
                <input type="date" name="alinma" <?php if(isset($request->alinma)): ?> value="<?php echo e($request->alinma); ?>" <?php else: ?> value="<?php echo e(date('Y-m-d')); ?>" <?php endif; ?> required class="form-control">
                Teslim Yeri
                <input type="text" name="alinmayeri" value="<?php echo e($ayar['adres']); ?>"  class="form-control" >
            </div>
            <div class="col-lg-4">
                İade Tarihi
                <input type="date" name="birakilma" <?php if(isset($request->birakilma)): ?> value="<?php echo e($request->birakilma); ?>" <?php else: ?> value="<?php echo e(date('Y-m-d', strtotime('+7 days'))); ?>" <?php endif; ?>  required class="form-control">
                İade Yeri
                <input type="text" name="birkilmayeri" class="form-control" value="<?php echo e($ayar['adres']); ?>" >
            </div>
            <div class="col-lg-4"><br>
                <button class="btn-lg btn-main p-3" style="height: 80%; width: 100%;"><i class="fa fa-chevron-right"></i> <br> İleri </button>
            </div>
        </div>
        </form>

    </div>
    <?php if(isset($request->alinma)): ?>
        <?php if(isset($request->birakilma)): ?>
            <script>
                document.getElementById('formx').submit();





            </script>

        <?php endif; ?>
    <?php endif; ?>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('master', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH C:\laragon\www\transferpro2\resources\views/kiralamatarihsec.blade.php ENDPATH**/ ?>