{{ @$data['title'] }}
@csrf {{-- dynamic attributes --}} @if (@$data['attributes']) @foreach (@$data['attributes'] as $key => $attribute)
{{ @$attribute['label'] }} @if (@$attribute['required'])
*
@endif
@if (@$attribute['type'] == 'text')
@elseif (@$attribute['type'] == 'select')
@foreach (@$attribute['options'] as $option)
@endforeach
@elseif (@$attribute['type'] == 'number')
@elseif (@$attribute['type'] == 'date')
@elseif (@$attribute['type'] == 'file')
@elseif (@$attribute['type'] == 'checkbox')
{{ @$attribute['label'] }}
@elseif (@$attribute['type'] == 'textarea')
{{ @$data['edit'] ? $data['edit']->$key : old($key) }}
@endif
@endforeach @endif
{{ @$data['button'] }}
Loading...
Please wait...