<?php $__env->startSection('icerik'); ?>
    <style>
        .mw200 {
            max-width: 200px;
        }
    </style>
    <div class="pagetitle">
        <h1>Kiralama Talepleri</h1>
        <nav>
            <ol class="breadcrumb">
                <li class="breadcrumb-item"><a href="/">Site</a></li>
                <li class="breadcrumb-item active">Kiralama Talepleri</li>
            </ol>
        </nav>
    </div><!-- End Page Title -->


    <section class="section dashboard">
        <div class="col-12">
            <div class="card">

                <div class="filter">
                    <a class="icon" href="#" data-bs-toggle="dropdown"><i class="bi bi-filter"></i> Filtrele</a>
                    <ul class="dropdown-menu dropdown-menu-end dropdown-menu-arrow">
                        <li class="dropdown-header text-start">
                            <h6>Durum</h6>
                        </li>

                        <li><a href="kiralama-talepleri" class="dropdown-item">Hepsi</a></li>
                        <?php $__currentLoopData = $durums; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                            <li><a class="dropdown-item <?php if($item->durum==$request->durum): ?> fw-bold <?php endif; ?>"
                                   href="kiralama-talepleri?durum=<?php echo e($item->durum); ?>"><?php echo e($item->durum); ?></a></li>
                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>

                    </ul>
                </div>

                <div class="card-body">
                    <h5 class="card-title">Talepler <span></span></h5>


                    <table class="table table-hover">
                        <tr class="fw-bold">
                            <td>Id</td>
                            <td>Müşteri</td>
                            <td>Araç</td>
                            <td>Alma</td>
                            <td>Bırakma</td>


                            <td>Durum</td>

                            <td>Sil</td>
                        </tr>

                        <?php $__currentLoopData = $kiralama; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                            <tr>
                                <td><?php echo e($item->kid); ?></td>
                                
                                <td><?php echo e(ucwords($item->name)); ?> <br> <?php echo e($item->telefon); ?></td>
                                <td><?php echo e($item->isim); ?></td>
                                <td class="mw200"><i
                                        class="bx bx-calendar"></i> <?php echo e(\Carbon\Carbon::createFromDate($item->alinma)->format('d/m/Y')); ?>

                                </td>
                                <td class="mw200"><i
                                        class="bx bx-calendar"></i> <?php echo e(\Carbon\Carbon::createFromDate($item->birakilma)->format('d/m/Y')); ?>

                                </td>


                                <td><?php echo e($item->durum); ?></td>


                                <td>
                                    <div onclick="silmi('/admin/ktalepsil?id=<?php echo e($item->kid); ?>')"
                                         class="btn btn-sm btn-danger"><i class="bi-trash bi"></i> Sil
                                    </div>
                                </td>


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


                </div>

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

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

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