@php $widthColumn=0; $openRow = false; @endphp @if( isset($mode) == 'table' )
| {{$input['label']}} | @endif @endforeach
|---|
|
@else
@if( isset($input['label']) && $input['label'])@endif
@endif
@switch( $input['type'] )
@case('text')
{!!Form::text($input['name'], $input['value'], $more)!!}
@break
@case('number')
{!!Form::number($input['name'], $input['value'], $more)!!}
@break
@case('email')
{!!Form::email($input['name'], $input['value'], $more)!!}
@break
@case('date')
{!!Form::date($input['name'], \Carbon\Carbon::now(),$more)!!}
@break
@case('textarea')
{!!Form::textarea($input['name'], $input['value'], $more )!!}
@break
@case('file')
{!!Form::file($input['name'])!!}
@break
@case('select')
@php
$options = [];
if(!isset($input['placeholder'])) {
$options = ['' => ''];
}
foreach( $input['options'] as $o ){
$options[$o->value] = $o->text;
}
@endphp
{!!Form::select($input['name'], $options, $input['value'], $more )!!}
@break
@case('radio')
@php
$options = [];
if(!isset($input['placeholder'])) {
$options = ['' => ''];
}
foreach( $input['options'] as $o ){
$options[$o['value']] = $o['text'];
}
@endphp
{!!Form::select($input['name'], $options, $input['value'], $more )!!}
@break
@endswitch
@if( isset($mode) == 'table' )
|
@else