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

    <div class="pagetitle">
        <h1>Transfer Aracı Düzenle - <?php echo e($arac->isim."-".$arac->model); ?></h1>
        <nav>
            <ol class="breadcrumb">
                <li class="breadcrumb-item"><a href="/">Site</a></li>
                <li class="breadcrumb-item active">Transfer Aracı Düzenle</li>
            </ol>
        </nav>
    </div><!-- End Page Title -->


    <section class="section dashboard">
        <div class="row">
            <div class="col-lg-6">
                <div class="card">
                    <div class="card-header"><i class="bx bx-plus-circle"></i> Araç Ekle</div>
                    <div class="card-body">

                        <form action="taracduzenle" class="arala" method="post" enctype="multipart/form-data">
                            <?php echo csrf_field(); ?>
                            <input type="hidden" name="id" value="<?php echo e($request->id); ?>" id="">
                            Araç Adı
                            <input required required type="text" class="form-control" name="isim" value="<?php echo e($arac->isim); ?>"> Araç Tipi
                            <select name="tip" class="form-select" id="">
                                <option value="<?php echo e($arac->tip); ?>" selected hidden><?php echo e($arac->tip); ?></option>
                                <?php $__currentLoopData = $aracTipleri; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                    <option value="<?php echo e($item); ?>"><?php echo e($item); ?></option>
                                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>

                            </select>
                            Model Yılı
                            <input required type="number" class="form-control" name="model" value="<?php echo e($arac->model); ?>">
                            Yakıt
                            <select name="yakit" class="form-select" id="">
                                <option value="<?php echo e($arac->yakit); ?>" selected hidden=""><?php echo e($arac->yakit); ?></option>
                                <?php $__currentLoopData = $yakit; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                    <option value="<?php echo e($item); ?>"><?php echo e($item); ?></option>
                                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                            </select>Çekiş
                            <select name="cekis" class="form-select" id="">
                                <option value="<?php echo e($arac->cekis); ?>" selected hidden><?php echo e($arac->cekis); ?></option>
                                <?php $__currentLoopData = $cekis; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                    <option value="<?php echo e($item); ?>"><?php echo e($item); ?></option>
                                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                            </select>

                            Yolcu Sayısı
                            <input required type="number" class="form-control" name="yolcu" value="<?php echo e($arac->yolcu); ?>">
                            Bagaj Sayısı
                            <input required type="number" class="form-control" name="bagaj" value="<?php echo e($arac->bagaj); ?>">
                            Kapı Sayısı
                            <input required type="number" class="form-control" name="kapi" value="<?php echo e($arac->bagaj); ?>">

                            Araç Fotoğrafı <span>*yenisi yüklenmezse eskisi kalır</span>
                            <input  type="file" name="img" class="form-control" accept="image/*">

                            Açılış Ücreti
                            <input required type="text" name="acilis" value="<?php echo e($arac->acilis); ?>" class="form-control">
                            KM Ücreti
                            <input required type="text" name="km" value="<?php echo e($arac->km); ?>" class="form-control">

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

                        </form>

                    </div>
                </div>
            </div>
            <div class="col-lg-6">
                <div class="card">
                    <div class="card-header"><i class="bx bx-camera"></i> Araç Fotoğrafı</div>
                    <div class="card-body">
                        <img src="/<?php echo e($arac->img); ?>" style="width: 100%;" alt="">
                    </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','Transfer Aracı Düzenle '. $arac->isim); ?>

<?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/taracduzenle.blade.php ENDPATH**/ ?>