Feuerwehr-eppingen/storage/framework/views/23b0aecc410997c6007a66bcd700e387c273ef14.php

31 lines
1.0 KiB
PHP

<div class="form-group">
<label><?php echo e($label); ?></label>
<div class="form-check row <?php echo e($errors->has($name) ? ' has-error' : ''); ?>">
<?php $__currentLoopData = $models; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $m): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<?php
if(isset($m->label))
{
$modelLabel = $m->label;
}
else
{
$modelLabel = ucfirst($m->name);
}
$checkedValue = null;
if(isset($checked) && $wizard)
{
$checkedValue = $checked;
}
?>
<?php if(count($models) >= 1 && !isset($model)): ?>
<?php echo e(Form::checkbox($name.'[]', $m->id, true)); ?>
<?php else: ?>
<?php echo e(Form::checkbox($name.'[]', $m->id, $checkedValue, ['id' => $m->name])); ?>
<?php endif; ?>
<?php echo e(Form::label($m->name, $modelLabel)); ?><br>
<small class="text-danger"><?php echo e($errors->first($name)); ?></small>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
</div>
</div>