@if (!empty($field['type']) && $field['type'] == 'checkbox')
{$field['name']} : null) == 1 ? 'checked' : '' }}> {{ !empty($field['label']) ? $field['label'] : title_case(str_replace('_', ' ', snake_case($field['name']))) }}
@elseif (!empty($field['type']) && $field['type'] == 'radio') @foreach ($field['options'] as $key => $option)
{$field['name']} : null) == $option['value'] ? 'selected' : '' }}> {{ $option['text'] }}
@endforeach @else
{{ !empty($field['label']) ? $field['label'] : title_case(str_replace('_', ' ', snake_case($field['name']))) }}{{ !empty($field['required']) ? '*' : '' }}
@endif @if ($errors->has($field['name']))
{{ $errors->first($field['name']) }}
@endif