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

    <div class="pagetitle">
        <div class="filter" style="max-width: 300px; float: right">
            <form action="musteriler?aksiyon=arama" method="get">
                <div class="input-group">
                    <input type="text" name="kelime" class="form-control" placeholder="isim ile ara" value="<?php echo e($request->kelime); ?>">
                    <button type="submit" class="btn btn-sm btn-success"><i class="bx bx-search"></i> Bul</button>
                    <div style="width: 30px"></div>
                </div>
            </form>
        </div>
        <h1>Müşteriler</h1>
        <nav>
            <ol class="breadcrumb">
                <li class="breadcrumb-item"><a href="/">Site</a></li>
                <li class="breadcrumb-item active">Müşteriler</li>
            </ol>
        </nav>

    </div><!-- End Page Title -->


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



                <div class="card-body">
                    <h5 class="card-title">Müşteriler <span>/Hepsi</span></h5>


                    <table class="table table-hover">
                        <tr class="fw-bold">
                            <td>Id</td>
                            <td>İsim</td>
                            <td>E-mail</td>
                            <td>Telefon</td>

                            <td>Pasif Yap</td>
                            <td>Ödemeleri Göster</td>
                            <td>Talepleri Göster</td>
                            <td>Düzenle</td>
                            <td>Sil</td>
                        </tr>

                        <?php $__currentLoopData = $musteri; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                            <tr>
                                <td><?php echo e($item->id); ?></td>
                                <td><?php echo e($item->name); ?></td>
                                <td><?php echo e($item->email); ?></td>
                                <td><?php echo e($item->telefon); ?></td>
                                <td><?php if($item->aktif==1): ?> <a href="musteridurum?id=<?php echo e($item->id); ?>&durum=0" class="btn btn-sm btn-outline-warning"><i class="bi bi-trash2-fill"></i> Pasif Yap</a>
                                    <?php else: ?> <a href="musteridurum?id=<?php echo e($item->id); ?>&durum=1" class="btn btn-sm btn-outline-success"><i class="bi bi-check"></i> Aktif Yap</a> <?php endif; ?> </td>
                                <td><a href="/admin/transfer-talepleri?user=<?php echo e($item->id); ?>" class="btn btn-outline-info btn-sm"><i class="bi bi-bank2"></i> Transfer Talepleri</a></td>
                                <td><a href="/admin/kiralama-talepleri?user=<?php echo e($item->id); ?>" class="btn btn-outline-primary btn-sm"><i class="bi bi-ticket-perforated"></i> Kiralama Talepleri</a></td>

                                    <td><a href="musteriduzenle?id=<?php echo e($item->id); ?>" class="btn btn-sm btn-primary"><i class="bi bi-pencil"></i> Düzenle</a></td>
                                <td><div onclick="silmi('musterisil?id=<?php echo e($item->id); ?>')" 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>

    <style>
        .card-body { width: 100%; overflow-x: scroll; overflow-y: auto;}
    </style>
<?php $__env->stopSection(); ?>
<?php $__env->startSection('title','Müşteriler'); ?>

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