@if ($isServerSide)
@endif
@if ($isServerSide)
@endcan @foreach($dataType->browseRows as $row) | @if ($isServerSide) @endif {{ $row->display_name }} @if ($isServerSide) @if ($row->isCurrentSortField($orderBy)) @if ($sortOrder == 'asc') @else @endif @endif @endif | @endforeach{{ __('voyager::generic.actions') }} |
---|---|---|
@endcan @foreach($dataType->browseRows as $row) |
@if($row->type == 'image')
@elseif($row->type == 'relationship')
@include('voyager::formfields.relationship', ['view' => 'browse','options' => $row->details])
@elseif($row->type == 'select_multiple')
@if(property_exists($row->details, 'relationship'))
@foreach($data->{$row->field} as $item)
{{ $item->{$row->field} }}
@endforeach
@elseif(property_exists($row->details, 'options'))
@if (count(json_decode($data->{$row->field})) > 0)
@foreach(json_decode($data->{$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 == 'select_dropdown' && property_exists($row->details, 'options'))
{!! isset($row->details->options->{$data->{$row->field}}) ? $row->details->options->{$data->{$row->field}} : '' !!}
@elseif($row->type == 'date' || $row->type == 'timestamp')
{{ property_exists($row->details, 'format') ? \Carbon\Carbon::parse($data->{$row->field})->formatLocalized($row->details->format) : $data->{$row->field} }}
@elseif($row->type == 'checkbox')
@if(property_exists($row->details, 'on') && property_exists($row->details, 'off'))
@if($data->{$row->field})
{{ $row->details->on }}
@else
{{ $row->details->off }}
@endif
@else
{{ $data->{$row->field} }}
@endif
@elseif($row->type == 'color')
{{ $data->{$row->field} }}
@elseif($row->type == 'text')
@include('voyager::multilingual.input-hidden-bread-browse')
{{ mb_strlen( $data->{$row->field} ) > 200 ? mb_substr($data->{$row->field}, 0, 200) . ' ...' : $data->{$row->field} }}
@elseif($row->type == 'text_area')
@include('voyager::multilingual.input-hidden-bread-browse')
{{ mb_strlen( $data->{$row->field} ) > 200 ? mb_substr($data->{$row->field}, 0, 200) . ' ...' : $data->{$row->field} }}
@elseif($row->type == 'file' && !empty($data->{$row->field}) )
@include('voyager::multilingual.input-hidden-bread-browse')
@if(json_decode($data->{$row->field}))
@foreach(json_decode($data->{$row->field}) as $file)
{{ $file->original_name ?: '' }}
@endforeach @else Download @endif @elseif($row->type == 'rich_text_box') @include('voyager::multilingual.input-hidden-bread-browse') {{ mb_strlen( strip_tags($data->{$row->field}, '') ) > 200 ? mb_substr(strip_tags($data->{$row->field}, ''), 0, 200) . ' ...' : strip_tags($data->{$row->field}, '') }}
@elseif($row->type == 'coordinates')
@include('voyager::partials.coordinates-static-image')
@elseif($row->type == 'multiple_images')
@php $images = json_decode($data->{$row->field}); @endphp
@if($images)
@php $images = array_slice($images, 0, 3); @endphp
@foreach($images as $image)
@endforeach
@endif
@else
@include('voyager::multilingual.input-hidden-bread-browse')
{{ $data->{$row->field} }}
@endif
|
@endforeach
@foreach(Voyager::actions() as $action) @include('voyager::bread.partials.actions', ['action' => $action]) @endforeach |
{{ trans_choice(
'voyager::generic.showing_entries', $dataTypeContent->total(), [
'from' => $dataTypeContent->firstItem(),
'to' => $dataTypeContent->lastItem(),
'all' => $dataTypeContent->total()
]) }}
{{ $dataTypeContent->appends([
's' => $search->value,
'filter' => $search->filter,
'key' => $search->key,
'order_by' => $orderBy,
'sort_order' => $sortOrder
])->links() }}
@endif