<?php $__env->startSection('title'); ?>
Administrator
<?php $__env->stopSection(); ?>

<?php $__env->startPush('before-script'); ?>

<?php if(session('status')): ?>
<?php if (isset($component)) { $__componentOriginal6bb91b748cddfa526a1e6a6c5efd3ee0dde567e5 = $component; } ?>
<?php $component = $__env->getContainer()->make(App\View\Components\Sweetalertsession::class, ['tipe' => ''.e(session('tipe')).'','status' => ''.e(session('status')).'']); ?>
<?php $component->withName('sweetalertsession'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php $component->withAttributes([]); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal6bb91b748cddfa526a1e6a6c5efd3ee0dde567e5)): ?>
<?php $component = $__componentOriginal6bb91b748cddfa526a1e6a6c5efd3ee0dde567e5; ?>
<?php unset($__componentOriginal6bb91b748cddfa526a1e6a6c5efd3ee0dde567e5); ?>
<?php endif; ?>
<?php endif; ?>
<?php $__env->stopPush(); ?>


<?php $__env->startSection('content'); ?>
<section class="section">
    <div class="section-header">
        <h1><?php echo $__env->yieldContent('title'); ?></h1>
        <div class="section-header-breadcrumb">
            <div class="breadcrumb-item active"><a href="<?php echo e(route('dashboard')); ?>">Dashboard</a></div>
            
            <div class="breadcrumb-item"><?php echo $__env->yieldContent('title'); ?></div>
        </div>
    </div>

    <div class="section-body">
        <div class="card">
            <div class="card-body">


                        <form action="<?php echo e(route('users.cari')); ?>" method="GET">
                            <div class="d-flex bd-highlight mb-3 align-items-center">

                                <div class="p-2 bd-highlight">
                            

                            <input type="text" class="babeng babeng-select  ml-0" name="cari">
                                </div>

                                <div class="p-2 bd-highlight">
                                <input class="btn btn-info ml-1 mt-2 mt-sm-0" type="submit" id="babeng-submit"
                                    value="Cari">
                                </div>

                            <div class="ml-auto p-2 bd-highlight">
                                <?php if (isset($component)) { $__componentOriginal5d28130fb0ac04e020fac49559d0ba25a897e294 = $component; } ?>
<?php $component = $__env->getContainer()->make(App\View\Components\ButtonCreate::class, ['link' => ''.e(route('users.create')).'']); ?>
<?php $component->withName('button-create'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php $component->withAttributes([]); ?> <?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal5d28130fb0ac04e020fac49559d0ba25a897e294)): ?>
<?php $component = $__componentOriginal5d28130fb0ac04e020fac49559d0ba25a897e294; ?>
<?php unset($__componentOriginal5d28130fb0ac04e020fac49559d0ba25a897e294); ?>
<?php endif; ?>

                            
                        </form>

                    </div>
                </div>

                <?php if (isset($component)) { $__componentOriginal7f6fe7bbf5512b742c0bcffa8025ccbaf91ac921 = $component; } ?>
<?php $component = $__env->getContainer()->make(App\View\Components\Jsmultidel::class, ['link' => ''.e(route('users.multidel')).'']); ?>
<?php $component->withName('jsmultidel'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php $component->withAttributes([]); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal7f6fe7bbf5512b742c0bcffa8025ccbaf91ac921)): ?>
<?php $component = $__componentOriginal7f6fe7bbf5512b742c0bcffa8025ccbaf91ac921; ?>
<?php unset($__componentOriginal7f6fe7bbf5512b742c0bcffa8025ccbaf91ac921); ?>
<?php endif; ?>

                <?php if($datas->count()>0): ?>
                    <?php if (isset($component)) { $__componentOriginalbea8fd2875612672ec60fa7e39941fa4202cfa75 = $component; } ?>
<?php $component = $__env->getContainer()->make(App\View\Components\Jsdatatable::class, []); ?>
<?php $component->withName('jsdatatable'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php $component->withAttributes([]); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalbea8fd2875612672ec60fa7e39941fa4202cfa75)): ?>
<?php $component = $__componentOriginalbea8fd2875612672ec60fa7e39941fa4202cfa75; ?>
<?php unset($__componentOriginalbea8fd2875612672ec60fa7e39941fa4202cfa75); ?>
<?php endif; ?>
                <?php endif; ?>

                <table id="example" class="table table-striped table-bordered mt-1 table-sm" style="width:100%">
                    <thead>
                        <tr style="background-color: #F1F1F1">
                            <th class="text-center py-2 babeng-min-row"> <input type="checkbox" id="chkCheckAll"> All</th>
                            <th >Nama</th>
                            <th>Email</th>
                            <th  class="text-center">Aksi</th>
                        </tr>
                    </thead>
                    <tbody>
                        <?php $__empty_1 = true; $__currentLoopData = $datas; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $data): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>
                        <tr id="sid<?php echo e($data->id); ?>">
                                <td class="text-center">
                                    <input type="checkbox" name="ids" class="checkBoxClass " value="<?php echo e($data->id); ?>">
                                    <?php echo e(((($loop->index)+1)+(($datas->currentPage()-1)*$datas->perPage()))); ?></td>
                                <td>
                                    <?php echo e(Str::limit($data->name,25,' ...')); ?>

                                </td>
                                <td><?php echo e(Str::limit($data->email,25,' ...')); ?></td>

                                <td class="text-center babeng-min-row">
                                    
                                    <?php if (isset($component)) { $__componentOriginal34b5d51f7a1b7ab9ae1b8f802c9849485a148be0 = $component; } ?>
<?php $component = $__env->getContainer()->make(App\View\Components\ButtonEdit::class, ['link' => '/admin/'.e($pages).'/'.e($data->id).'']); ?>
<?php $component->withName('button-edit'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php $component->withAttributes([]); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal34b5d51f7a1b7ab9ae1b8f802c9849485a148be0)): ?>
<?php $component = $__componentOriginal34b5d51f7a1b7ab9ae1b8f802c9849485a148be0; ?>
<?php unset($__componentOriginal34b5d51f7a1b7ab9ae1b8f802c9849485a148be0); ?>
<?php endif; ?>
                                    <?php if (isset($component)) { $__componentOriginalc82eaddaef5db682d36356a1ab70f5eabde644c5 = $component; } ?>
<?php $component = $__env->getContainer()->make(App\View\Components\ButtonDelete::class, ['link' => '/admin/'.e($pages).'/'.e($data->id).'']); ?>
<?php $component->withName('button-delete'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php $component->withAttributes([]); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalc82eaddaef5db682d36356a1ab70f5eabde644c5)): ?>
<?php $component = $__componentOriginalc82eaddaef5db682d36356a1ab70f5eabde644c5; ?>
<?php unset($__componentOriginalc82eaddaef5db682d36356a1ab70f5eabde644c5); ?>
<?php endif; ?>
                                </td>
                            </tr>
                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?>
                            <tr>
                                <td colspan="5" class="text-center">Data tidak ditemukan</td>
                            </tr>
                        <?php endif; ?>
                    </tbody>
                </table>

<?php
$cari=$request->cari;
$tapel_nama=$request->tapel_nama;
$kelas_nama=$request->kelas_nama;
?>

<div class="d-flex justify-content-between flex-row-reverse mt-3">
    <div >

<?php echo e($datas->onEachSide(1)
//   ->appends(['cari'=>$cari])
//   ->appends(['tapel_nama'=>$tapel_nama])
//   ->appends(['kelas_nama'=>$kelas_nama])
  ->links()); ?>

    </div>

<div>
<a href="#" class="btn btn-sm  btn-danger mb-2" id="deleteAllSelectedRecord"
            onclick="return  confirm('Anda yakin menghapus data ini? Y/N')"  data-toggle="tooltip" data-placement="top" title="Hapus Terpilih">
            <i class="fas fa-trash-alt mr-2"></i> Hapus Terpilih</i>
        </a></div></div>
            </div>
        </div>
    </div>
</section>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('layouts.default', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH C:\Xampp 8.2\htdocs\sim\resources\views/pages/admin/users/index.blade.php ENDPATH**/ ?>