<div class="modal fade" id="modalTambahRole" tabindex="-1" aria-labelledby="modalTambahRoleLabel" aria-hidden="true">
    <div class="modal-dialog modal-xl">
        <form id="formTambahRole">
            <div class="modal-content">
                <div class="modal-header">
                    <h5 class="modal-title">Tambah Role</h5>
                    <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Tutup"></button>
                </div>
                <div class="modal-body">
                    <div class="row mb-3">
                        <div class="col-lg-4">
                            <label for="role" class="form-label">Nama Role</label>
                            <input type="text" name="role" id="role" required class="form-control"
                                placeholder=".....">
                        </div>
                        <div class="col-lg-3">
                            <label for="all_site" class="form-label d-block">All Site</label>
                            <div class="form-check">
                                <input type="checkbox" name="all_site" id="all_site" class="form-check-input"
                                    style="width:30px; height:30px;">
                                <label class="ms-2 mt-2 form-check-label" for="all_site">Aktifkan untuk semua
                                    site</label>
                            </div>
                        </div>
                        <div class="col-lg-5">
                            <label for="is_operator" class="form-label d-block">User Operator</label>
                            <div class="form-check">
                                <input type="checkbox" name="is_operator" id="is_operator" class="form-check-input"
                                    style="width:30px; height:30px;">
                                <label class="ms-2 mt-2 form-check-label" for="is_operator">
                                    Excavator dan Loader
                                </label>
                            </div>
                            <small class="text-muted d-block mt-1">
                                Kosongkan untuk semua type unit
                            </small>
                        </div>
                    </div>
                    <label for="akses" class="form-label fw-semibold mb-2">Akses</label>
                    <div class="table-responsive">
                        <table class="table table-striped  align-middle no-reset">
                            <thead>
                                <tr>
                                    <th rowspan="2" style="text-align: center; vertical-align: middle;">
                                        Nama Fitur
                                    </th>

                                    <th colspan="4" style="text-align: center">Akses</th>
                                </tr>
                                <tr>
                                    <th>
                                        <label
                                            style="display: flex; align-items: center; gap: 6px; justify-content: start;user-select: none">
                                            <input type="checkbox" name="create-all" style="width:20px; height:20px;">
                                            Create
                                        </label>
                                    </th>
                                    <th>
                                        <label
                                            style="display: flex; align-items: center; gap: 6px; justify-content: start;user-select: none">
                                            <input type="checkbox" name="read-all" style="width:20px; height:20px;">
                                            Read
                                        </label>
                                    </th>

                                    <th>
                                        <label
                                            style="display: flex; align-items: center; gap: 6px; justify-content: start;user-select: none">
                                            <input type="checkbox" name="update-all" style="width:20px; height:20px;">
                                            Update
                                        </label>
                                    </th>
                                    <th>
                                        <label
                                            style="display: flex; align-items: center; gap: 6px; justify-content: start;user-select: none">
                                            <input type="checkbox" name="delete-all" style="width:20px; height:20px;">
                                            Delete
                                        </label>
                                    </th>
                                </tr>
                            </thead>
                            <tbody>
                                <?php $__currentLoopData = $actionsFormat; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $name => $action): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                    <tr class="parent-menu " data-menu="<?php echo e($name); ?>">
                                        <td><strong><?php echo e($name); ?></strong></td>
                                        <td>
                                            <label
                                                style="display: flex; align-items: center; gap: 6px; justify-content: start;user-select: none">
                                                <input type="checkbox" name="create-all-menu"
                                                    style="width:20px; height:20px;">
                                                Create
                                            </label>
                                        </td>
                                        <td>
                                            <label
                                                style="display: flex; align-items: center; gap: 6px; justify-content: start;user-select: none">
                                                <input type="checkbox" name="read-all-menu"
                                                    style="width:20px; height:20px;">
                                                Read
                                            </label>
                                        </td>

                                        <td>
                                            <label
                                                style="display: flex; align-items: center; gap: 6px; justify-content: start;user-select: none">
                                                <input type="checkbox" name="update-all-menu"
                                                    style="width:20px; height:20px;">
                                                Update
                                            </label>
                                        </td>
                                        <td>
                                            <label
                                                style="display: flex; align-items: center; gap: 6px; justify-content: start;user-select: none">
                                                <input type="checkbox" name="delete-all-menu"
                                                    style="width:20px; height:20px;">
                                                Delete
                                            </label>
                                        </td>
                                    </tr>
                                    <?php $__currentLoopData = $action; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $val): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                        <tr class="parent-menu-item " data-menu="<?php echo e($name); ?>">
                                            <td><?php echo e($val->name); ?></td>
                                            <td><input type="checkbox" name="creates[]" value="<?php echo e($val->id); ?>"
                                                    style="width:20px; height:20px;"></td>
                                            <td><input type="checkbox" name="reads[]" value="<?php echo e($val->id); ?>"
                                                    style="width:20px; height:20px;"></td>
                                            <td><input type="checkbox" name="updates[]" value="<?php echo e($val->id); ?>"
                                                    style="width:20px; height:20px;"></td>
                                            <td><input type="checkbox" name="deletes[]" value="<?php echo e($val->id); ?>"
                                                    style="width:20px; height:20px;"></td>
                                        </tr>
                                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                            </tbody>
                        </table>
                    </div>
                </div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-light" data-bs-dismiss="modal">Tutup</button>
                    <button type="submit" class="btn btn-primary">Simpan</button>
                </div>
            </div>
        </form>
    </div>
</div>
<?php /**PATH /home/pmme2286/public_html/docu/vendor1/resources/views/master-data/role/modal/add.blade.php ENDPATH**/ ?>