
<?php $__env->startSection('breadcrumb-first', $breadcrumb->first); ?>
<?php $__env->startSection('breadcrumb-second', $breadcrumb->second); ?>
<?php $__env->startSection('button'); ?>
<a href="javascript:;" onclick="modal('add', 'Pengguna', '<?php echo e(url('admin/user/form')); ?>')" class="btn btn-custom btn-sm waves-effect waves-light">
	<i class="fa fa-plus fa-fw"></i> Tambah Pengguna
</a>
<a href="javascript:;" class="btn btn-custom btn-sm waves-effect waves-light" data-toggle="modal" data-target="#modal-filter">
	<i class="mdi mdi-filter me-1"></i> Filter User
</a>
<?php $__env->stopSection(); ?>
<?php $__env->startSection('content'); ?>
<div class="row">
	<div class="col-lg-12">
        <?php echo $__env->make('admin.user.filter', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
        <div class="card card-custom">
            <div class="card-body">
                <div class="table-responsive">
                    <?php echo $dataTable->table(['class' => 'table table-borderless table-hover mb-0'], false); ?>

                </div>
			</div>
		</div>
	</div>
</div>
<?php echo $dataTable->scripts(); ?>

<script>
    $(document).ready(function () {
        document.getElementById("data-table").children[0].className = "thead-light";
        $('#filter_form').on('submit', function(element) {
            element.preventDefault();
            $("#modal-filter").modal('hide');
            $('#preloader').fadeIn('slow');
            $.when(window.LaravelDataTables["data-table"].page.len($('#filter_row').val()).draw()).done(function() {
                $('#preloader').fadeOut('slow');
            });
        });
        $('#filter_form').on('reset', function(element) {
            $('[data-toggle="select2"], select, input, textarea').val(null).trigger('change');
            $('#filter_row').val('10').trigger('change');
            $("#modal-filter").modal('hide');
            $('#preloader').fadeIn('slow');
            $.when(window.LaravelDataTables["data-table"].page.len('10').draw()).done(function() {
                $('#preloader').fadeOut('slow');
            });
        });
    });
</script>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('admin.layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/glor5228/public_html/resources/views/admin/user/list.blade.php ENDPATH**/ ?>