<?php $__env->startSection('icerik'); ?>
    <style>
        .mw200 { max-width: 200px;}
    </style>
    <div class="pagetitle">
        <h1>Transfer Talepleri</h1>
        <nav>
            <ol class="breadcrumb">
                <li class="breadcrumb-item"><a href="/">Site</a></li>
                <li class="breadcrumb-item active">Transfer 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 class="dropdown-item" href="transfer-talepleri">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="transfer-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>Yön</td>
                            <td>Müşteri</td>
                            <td>Alınma</td>
                            <td >Bırakılma</td>

                            <td>KM</td>
                            <td>İş Emri</td>
                            <td>Durum</td>

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

                        <?php $__currentLoopData = $transfer; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                            <tr>
                                <td><?php echo e($item->talepid); ?></td>
                                <td><?php echo e($item->yon); ?></td>
                                <td><?php echo e(ucwords($item->name)); ?> <br> <?php echo e($item->telefon); ?></td>
                                <td class="mw200"><?php echo e($item->alinmanoktasi); ?> <br> <i class="bx bx-calendar"></i> <?php echo e(\Carbon\Carbon::createFromDate($item->alinmatarihi)->format('d/m/Y H:i')); ?></td>
                                <td class="mw200" ><?php echo e($item->birakilmanoktasi); ?> <br> <i class="bx bx-calendar"></i> <?php echo e(\Carbon\Carbon::createFromDate($item->birakilmatarihi)->format('d/m/Y H:i')); ?></td>
                             <td><?php echo e($item->distance); ?>Km</td>
                                <td><a target="_blank" href="is-emri?id=<?php echo e($item->talepid); ?>" class="btn btn-outline-info btn-sm"><i class="bi bi-map"></i> İş Emri Yazdır</a></td>
                                <td><?php echo e($item->durum); ?></td>


                                <td><div onclick="silmi('/admin/ttalepsil?id=<?php echo e($item->talepid); ?>')" class="btn btn-sm btn-danger"><i class="bi-trash bi"></i> İptal Et</div></td>


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


                </div>

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

<?php $__env->stopSection(); ?>
<?php $__env->startSection('title','Transfer 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/transfer.blade.php ENDPATH**/ ?>