@foreach($dataType->readRows as $row)
@endif @endforeach
{{ $row->display_name }}
@if($row->type == "image")
@elseif($row->type == 'multiple_images')
@if(json_decode($dataTypeContent->{$row->field}))
@foreach(json_decode($dataTypeContent->{$row->field}) as $file)
@endforeach
@else
@endif
@elseif($row->type == 'relationship')
@include('voyager::formfields.relationship', ['view' => 'read', 'options' => $row->details])
@elseif($row->type == 'select_dropdown' && property_exists($row->details, 'options') &&
!empty($row->details->options->{$dataTypeContent->{$row->field}})
)
@elseif($row->type == 'select_multiple')
@if(property_exists($row->details, 'relationship'))
@foreach(json_decode($dataTypeContent->{$row->field}) as $item)
{{ $item->{$row->field} }}
@endforeach
@elseif(property_exists($row->details, 'options'))
@if (count(json_decode($dataTypeContent->{$row->field})) > 0)
@foreach(json_decode($dataTypeContent->{$row->field}) as $item)
@if (@$row->details->options->{$item})
{{ $row->details->options->{$item} . (!$loop->last ? ', ' : '') }}
@endif
@endforeach
@else
{{ __('voyager::generic.none') }}
@endif
@endif
@elseif($row->type == 'date' || $row->type == 'timestamp')
{{ property_exists($row->details, 'format') ? \Carbon\Carbon::parse($dataTypeContent->{$row->field})->formatLocalized($row->details->format) : $dataTypeContent->{$row->field} }}
@elseif($row->type == 'checkbox')
@if(property_exists($row->details, 'on') && property_exists($row->details, 'off'))
@if($dataTypeContent->{$row->field})
{{ $row->details->on }}
@else
{{ $row->details->off }}
@endif
@else
{{ $dataTypeContent->{$row->field} }}
@endif
@elseif($row->type == 'color')
{{ $dataTypeContent->{$row->field} }}
@elseif($row->type == 'coordinates')
@include('voyager::partials.coordinates')
@elseif($row->type == 'rich_text_box')
@include('voyager::multilingual.input-hidden-bread-read')
@endforeach @else {{ __('voyager::generic.download') }} @endif @else @include('voyager::multilingual.input-hidden-bread-read')
@if(!$loop->last)
{!! $dataTypeContent->{$row->field} !!}
@elseif($row->type == 'file') @if(json_decode($dataTypeContent->{$row->field})) @foreach(json_decode($dataTypeContent->{$row->field}) as $file) {{ $file->original_name ?: '' }}@endforeach @else {{ __('voyager::generic.download') }} @endif @else @include('voyager::multilingual.input-hidden-bread-read')
{{ $dataTypeContent->{$row->field} }}
@endif@endif @endforeach