@if ($isServerSide)
@endif
@if ($isServerSide)
@endif | {{ "tipo" }} | @foreach($dataType->browseRows as $row) {{-- ADDING FILTERS --}} @if(!in_array($row->getAttribute('field'), $filter))@if ($isServerSide) @endif {{ $row->getTranslatedAttribute('display_name') }} @if ($isServerSide) @if ($row->isCurrentSortField($orderBy)) @if ($sortOrder == 'asc') @else @endif @endif @endif | @endif @endforeach{{ __('voyager::generic.actions') }} |
---|---|---|---|
@endif |
@if($data->getAttribute('familia_padre') == null)
FAMILIA
@elseif($data->getAttribute('familia_padre') != null)
SUBFAMILIA
@endif
|
@foreach($dataType->browseRows as $row)
{{-- ADDING FILTERS --}}
@php
if($row->field == "precio") {
$data->precio = number_format($data->precio, 2, ',', '.');
}
@endphp
@if(!in_array($row->getAttribute('field'), $filter))
@php
if ($data->{$row->field.'_browse'}) {
$data->{$row->field} = $data->{$row->field.'_browse'};
}
@endphp
@if (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])
{{-- /* IMAGE */ --}}
@elseif($row->type == 'image')
{{ mb_strlen( $data->{$row->field} ) > 50 ? mb_substr($data->{$row->field}, 0, 50) . ' ...' : $data->{$row->field} }}
{{-- /* TEXT AREA */ --}}
@elseif($row->type == 'text_area')
@include('voyager::multilingual.input-hidden-bread-browse')
{{ mb_strlen( $data->{$row->field} ) > 50 ? mb_substr($data->{$row->field}, 0, 50) . ' ...' : $data->{$row->field} }}
{{-- /* FILE */ --}}
@elseif($row->type == 'file' && !empty($data->{$row->field}) )
@include('voyager::multilingual.input-hidden-bread-browse')
@if(json_decode($data->{$row->field}) !== null)
@foreach(json_decode($data->{$row->field}) as $file)
{{ $file->original_name ?: '' }}
@endforeach @else Download @endif {{-- /* RICH TEXT BOX */ --}} @elseif($row->type == 'rich_text_box') @include('voyager::multilingual.input-hidden-bread-browse') {!! mb_strlen( strip_tags($data->{$row->field}, '') ) > 50 ? mb_substr(strip_tags($data->{$row->field}, ''), 0, 50) . ' ...' : strip_tags($data->{$row->field}, '') !!}
{{-- /* COORDINATES */ --}}
@elseif($row->type == 'coordinates')
@include('voyager::partials.coordinates-static-image')
{{-- /* MULTIPLE IMAGES */ --}}
@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)
|
@endif
@endforeach
@foreach($actions as $action) @if (!method_exists($action, 'massAction')) @include('vendor.voyager.productos.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