36 lines
1.3 KiB
PHP
36 lines
1.3 KiB
PHP
<form <?php echo $attributes; ?>>
|
|
<div class="box-body fields-group">
|
|
|
|
<?php $__currentLoopData = $fields; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $field): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
|
|
<?php echo $field->render(); ?>
|
|
|
|
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
|
|
|
|
</div>
|
|
|
|
<?php if($method != 'GET'): ?>
|
|
<input type="hidden" name="_token" value="<?php echo e(csrf_token()); ?>">
|
|
<?php endif; ?>
|
|
|
|
<!-- /.box-body -->
|
|
<?php if(count($buttons) > 0): ?>
|
|
<div class="box-footer">
|
|
<div class="col-md-<?php echo e($width['label']); ?>"></div>
|
|
|
|
<div class="col-md-<?php echo e($width['field']); ?>">
|
|
<?php if(in_array('reset', $buttons)): ?>
|
|
<div class="btn-group pull-left">
|
|
<button type="reset" class="btn btn-warning pull-right"><?php echo e(trans('admin.reset')); ?></button>
|
|
</div>
|
|
<?php endif; ?>
|
|
|
|
<?php if(in_array('submit', $buttons)): ?>
|
|
<div class="btn-group pull-right">
|
|
<button type="submit" class="btn btn-info pull-right"><?php echo e(trans('admin.submit')); ?></button>
|
|
</div>
|
|
<?php endif; ?>
|
|
</div>
|
|
</div>
|
|
<?php endif; ?>
|
|
</form>
|