<?php $__env->startSection('page-css'); ?>
    <link rel="stylesheet" href="<?php echo e(asset('assets/styles/vendor/datatables.min.css')); ?>">
    <link rel="stylesheet" href="<?php echo e(asset('assets/styles/vendor/toastr.css')); ?>">
<?php $__env->stopSection(); ?>

<?php $__env->startSection('main-content'); ?>
    <div class="breadcrumb">
        <h1>لیست ادمین ها</h1>
        <ul>
            <li>لیست ادمین ها</li>
        </ul>
    </div>
    <div class="separator-breadcrumb border-top"></div>
    <div class="row mb-4">
        <div class="col-md-12 mb-4">
            <div class="card text-left">
                <div class="card-body">
                    <div class="d-flex justify-content-between">
                        <h4 class="card-title mb-3">لیست ادمین ها</h4>
                        <a href="<?php echo e(route('admins.create')); ?>" class="btn btn-primary">
                            افزودن ادمین جدید
                        </a>
                    </div>
                    <p>از ستون تنظیمات میتوانید پیام ها را حذف یا ویرایش کنید.</p>
                    <div class="table-responsive">
                        <table id="admins_datatable" class="display table table-striped table-borderless border yajra-datatable"
                               style="width:100%">
                            <thead>
                            <tr>
                                <th>No</th>
                                <th>نام</th>
                                <th>ایمیل</th>
                                <th>دسترسی</th>
                                <th>تنظیمات</th>
                            </tr>
                            </thead>
                            <tbody>
                            </tbody>
                        </table>
                    </div>
                </div>
            </div>
        </div>
        <!-- end of col -->
    </div>
    <!-- end of row -->
<?php $__env->stopSection(); ?>

<?php $__env->startSection('page-js'); ?>
    <script type="text/javascript">
        $(function () {
            var table = $('#admins_datatable').DataTable({
                processing: true,
                serverSide: true,
                ajax: "<?php echo e(route('admins.list')); ?>",
                columns: [
                    {data: 'DT_RowIndex', name: 'DT_RowIndex'},
                    {data: 'name', name: 'name'},
                    {data: 'email', name: 'email'},
                    {data: 'permissions', name: 'permissions'},
                    {data: 'Actions', name: 'Actions', orderable: false, searchable: false},
                ]
            });

        });
    </script>
    <script src="<?php echo e(asset('assets/js/vendor/datatables.min.js')); ?>"></script>
    
<?php $__env->stopSection(); ?>

<?php $__env->startSection('bottom-js'); ?>
    <script src="<?php echo e(asset('assets/js/vendor/toastr.min.js')); ?>"></script>
    <?php echo Brian2694\Toastr\Facades\Toastr::message(); ?>

<?php $__env->stopSection(); ?>

<?php echo $__env->make('layouts.master', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH D:\xampp\htdocs\gullmanager\resources\views/Admins/index.blade.php ENDPATH**/ ?>