@props(['model', 'custom_fields' => [], 'extra_attributes' => []])
@if ($custom_fields->isNotEmpty())
@forelse ($custom_fields as $custom_field)
@if ($custom_field->type == 'Text')
@elseif ($custom_field->type == 'URL')
@elseif ($custom_field->type == 'Secret')
@elseif ($custom_field->type == 'Date')
@elseif ($custom_field->type == 'Textarea')
@elseif ($custom_field->type == 'Select')
@php
$options = $custom_field->optionsArray();
@endphp
@foreach ($options as $option)
@endforeach
@elseif ($custom_field->type == 'Checkbox')
@php
$options = $custom_field->optionsArray();
@endphp
@foreach ($options as $option)
@php
$id = str()->random();
@endphp
@endforeach
@elseif ($custom_field->type == 'Radio')
@php
$options = $custom_field->optionsArray();
@endphp
@foreach ($options as $option)
@php
$id = str()->random();
@endphp
@endforeach
@endif
@endforeach
@endif