@if($dataType->slug == 'user-verifies')
@foreach($dataType->editRows as $row)
@if($row->field == 'files' && $dataTypeContent->{$row->field})
@foreach(json_decode($dataTypeContent->{$row->field}) as $row)
@include('vendor.voyager.partials.voyager-file-preview-box', ['asset' => $row])
@endforeach
@endif
@endforeach
@endif
@if (count($errors) > 0)
@foreach ($errors->all() as $error)
- {{ $error }}
@endforeach
@endif
@php
$dataTypeRows = $dataType->{($edit ? 'editRows' : 'addRows' )};
@endphp
@foreach($dataTypeRows as $row)
@php
$display_options = $row->details->display ?? NULL;
if ($dataTypeContent->{$row->field.'_'.($edit ? 'edit' : 'add')}) {
$dataTypeContent->{$row->field} = $dataTypeContent->{$row->field.'_'.($edit ? 'edit' : 'add')};
}
@endphp
@if (isset($row->details->legend) && isset($row->details->legend->text))
@endif
id)){{ "id=$display_options->id" }}@endif>
{{ $row->slugify }}
@include('voyager::multilingual.input-hidden-bread-edit-add')
@if (isset($row->details->view))
@include($row->details->view, ['row' => $row, 'dataType' => $dataType, 'dataTypeContent' => $dataTypeContent, 'content' => $dataTypeContent->{$row->field}, 'action' => ($edit ? 'edit' : 'add'), 'view' => ($edit ? 'edit' : 'add'), 'options' => $row->details])
@elseif ($row->type == 'relationship')
@include('vendor.voyager.bread.relationship', ['options' => $row->details])
@else
{!! app('voyager')->formField($row, $dataType, $dataTypeContent) !!}
@endif
@foreach (app('voyager')->afterFormFields($row, $dataType, $dataTypeContent) as $after)
{!! $after->handle($row, $dataType, $dataTypeContent) !!}
@endforeach
@if ($errors->has($row->field))
@foreach ($errors->get($row->field) as $error)
{{ $error }}
@endforeach
@endif
@endforeach