        <div class="col-12 grid-margin stretch-card mt-3">
            <div class="card">
                <div class="card-body">
                    <h4 class="card-title">Unit</h4>
                    <div class="row">
                        <div class="col-12">
                            <div class="form-group row">
                                <?php
                                    $roleUnit = isset($role) ? $role->units->pluck('id','id') : []; 
                                ?>                                
                                <?php $__empty_1 = true; $__currentLoopData = $units; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $index => $groupUnits): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>
                                    <div class="col-md-4">
                                        <div class="card border-primary">
                                            <div class="card-header">
                                                <div class="">
                                                    <label class="form-check-label">
                                                        <input type="checkbox" onclick="checkAll(this,'.card')">
                                                        <?php echo e($index); ?>                                                        
                                                    </label>
                                                </div>                                            
                                            </div>
                                            <div class="card-body">
                                            <?php $__currentLoopData = $groupUnits; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $unit): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                                <div class="form-check">
                                                    <label class="form-check-label">
                                                        <input type="checkbox" name="units[]" <?php if(isset($roleUnit[$unit->id])): ?> checked <?php endif; ?> value="<?php echo e($unit->id); ?>" class="form-check-input">
                                                        <?php echo e($unit->nama); ?> ( <?php echo e($unit->divapp); ?><?php echo e($unit->unit); ?> )
                                                        <i class="input-helper"></i>
                                                    </label>
                                                </div>
                                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                            </div>
                                        </div>
                                    </div>
                                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?>
                                    ----
                                <?php endif; ?>                 
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>        <?php /**PATH /data/docker/laravel/starter/resources/views/base/roles/unit_fields.blade.php ENDPATH**/ ?>