@extends('voyager::master') @section('page_title', __('voyager::generic.viewing').' Usuarios') @section('page_header')

Usuarios

@can('add', app($dataType->model_name)) {{ __('voyager::generic.add_new') }} @endcan @can('delete', app($dataType->model_name)) @include('voyager::partials.bulk-delete') @endcan @can('edit', app($dataType->model_name)) @if(isset($dataType->order_column) && isset($dataType->order_display_column)) {{ __('voyager::bread.order') }} @endif @endcan @include('voyager::multilingual.language-selector')
@stop @section('content')
@include('voyager::alerts')
@if ($isServerSide) @endif
@can('delete',app($dataType->model_name)) @endcan @foreach($dataType->browseRows as $row) @endforeach @foreach($dataTypeContent as $data) @can('delete',app($dataType->model_name)) @endcan @foreach($dataType->browseRows as $row) @endforeach @endforeach
@if ($isServerSide) @endif {{ $row->display_name }} @if ($isServerSide) @if ($row->isCurrentSortField($orderBy)) @if ($sortOrder == 'asc') @else @endif @endif @endif {{ __('voyager::generic.actions') }}
@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
@foreach(Voyager::actions() as $action) @include('voyager::bread.partials.actions', ['action' => $action]) @endforeach
@if ($isServerSide)
{{ 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
{{-- Single delete modal --}} @stop @section('css') @if(!$dataType->server_side && config('dashboard.data_tables.responsive')) @endif @stop @section('javascript') @if(!$dataType->server_side && config('dashboard.data_tables.responsive')) @endif @stop