@if ($isServerSide)
@endif
@if ($isServerSide)
| @endif @foreach($dataType->browseRows as $row) | @if ($isServerSide && in_array($row->field, $sortableColumns)) @endif {{ $row->getTranslatedAttribute('display_name') }} @if ($isServerSide) @if ($row->isCurrentSortField($orderBy)) @if ($sortOrder == 'asc') @else @endif @endif @endif | @endforeach{{ __('voyager::generic.actions') }} |
|---|---|---|
| @endif @foreach($dataType->browseRows as $row) @php if ($data->{$row->field.'_browse'}) { $data->{$row->field} = $data->{$row->field.'_browse'}; } @endphp |
@if (isset($row->details->view_browse))
@include($row->details->view_browse, ['row' => $row, 'dataType' => $dataType, 'dataTypeContent' => $dataTypeContent, 'content' => $data->{$row->field}, 'view' => 'browse', 'options' => $row->details])
@elseif (isset($row->details->view))
@include($row->details->view, ['row' => $row, 'dataType' => $dataType, 'dataTypeContent' => $dataTypeContent, 'content' => $data->{$row->field}, 'action' => 'browse', 'view' => 'browse', 'options' => $row->details])
@elseif($row->field == 'avatar' || $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 (!empty(json_decode($data->{$row->field})))
@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 == 'date' || $row->type == 'timestamp')
@if ( property_exists($row->details, 'format') && !is_null($data->{$row->field}) )
{{ \Carbon\Carbon::parse($data->{$row->field})->formatLocalized($row->details->format) }}
@else
{{ $data->{$row->field} }}
@endif
@else
@include('voyager::multilingual.input-hidden-bread-browse')
{{ $data->{$row->field} }}
@endif
|
@endforeach
@foreach($actions as $action) @if (!method_exists($action, 'massAction')) @include('voyager::bread.partials.actions', ['action' => $action]) @endif @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,
'showSoftDeleted' => $showSoftDeleted,
])->links() }}
@endif
@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 (!empty(json_decode($data->{$row->field})))
@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 == 'date' || $row->type == 'timestamp')
@if ( property_exists($row->details, 'format') && !is_null($data->{$row->field}) )
{{ \Carbon\Carbon::parse($data->{$row->field})->formatLocalized($row->details->format) }}
@else
{{ $data->{$row->field} }}
@endif
@else
@include('voyager::multilingual.input-hidden-bread-browse')