@if (count($errors) > 0)
@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))
id)){{ "id=$display_options->id" }}@endif>
{{ $row->slugify }}
@if($row->field == "phone")
@elseif($row->field == "gendar")
@elseif($row->field == "birthdate")
@elseif($row->field == "weight")
@elseif($row->field == "disability_type")
@elseif($row->field == "relative_number")
@elseif($row->field == "user_belongsto_country_relationship")
@elseif($row->field == "national_id")
@elseif($row->field == "qualification")
@elseif($row->field == "specialization")
@elseif($row->field == "field_experience")
@elseif($row->field == "experience_years")
@elseif($row->field == "cv")
@elseif($row->field == "attachs")
@elseif($row->field == "iban")
@elseif($row->field == "wallet")
@elseif($row->field == "rate")
@elseif($row->field == "device_token")
@else
@endif
@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')
@if($row->field == 'user_belongsto_role_relationship')
@include('voyager::formfields.relationship', ['options' => $row->details])
@elseif($row->field == 'user_belongsto_country_relationship')
@include('voyager::formfields.relationship', ['options' => $row->details])
@else
@include('voyager::formfields.relationship', ['options' => $row->details])
@endif
@else
@if($row->field == 'phone')
{!! app('voyager')->formField($row, $dataType, $dataTypeContent) !!}
@elseif($row->field == 'gendar')
{!! app('voyager')->formField($row, $dataType, $dataTypeContent) !!}
@elseif($row->field == 'birthdate')
{!! app('voyager')->formField($row, $dataType, $dataTypeContent) !!}
@elseif($row->field == 'weight')
{!! app('voyager')->formField($row, $dataType, $dataTypeContent) !!}
@elseif($row->field == 'disability_type')
{!! app('voyager')->formField($row, $dataType, $dataTypeContent) !!}
@elseif($row->field == 'relative_number')
{!! app('voyager')->formField($row, $dataType, $dataTypeContent) !!}
@elseif($row->field == 'national_id')
{!! app('voyager')->formField($row, $dataType, $dataTypeContent) !!}
@elseif($row->field == 'qualification')
{!! app('voyager')->formField($row, $dataType, $dataTypeContent) !!}
@elseif($row->field == 'specialization')
{!! app('voyager')->formField($row, $dataType, $dataTypeContent) !!}
@elseif($row->field == 'field_experience')
{!! app('voyager')->formField($row, $dataType, $dataTypeContent) !!}
@elseif($row->field == 'experience_years')
{!! app('voyager')->formField($row, $dataType, $dataTypeContent) !!}
@elseif($row->field == 'cv')
{!! app('voyager')->formField($row, $dataType, $dataTypeContent) !!}
@elseif($row->field == 'attachs')
{!! app('voyager')->formField($row, $dataType, $dataTypeContent) !!}
@elseif($row->field == 'iban')
{!! app('voyager')->formField($row, $dataType, $dataTypeContent) !!}
@elseif($row->field == 'wallet')
{!! app('voyager')->formField($row, $dataType, $dataTypeContent) !!}
@elseif($row->field == 'rate')
{!! app('voyager')->formField($row, $dataType, $dataTypeContent) !!}
@elseif($row->field == 'device_token')
{!! app('voyager')->formField($row, $dataType, $dataTypeContent) !!}
@else
{!! app('voyager')->formField($row, $dataType, $dataTypeContent) !!}
@endif
@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