Tous @if (Auth::user()->hasRole('admin_sms'))les @else vos @endif supports
                                @can('add', app($dataType->model_name))
                                    
                                        
                                        Nouveau support
                                    
                                @endcan
                                @can('delete', app($dataType->model_name))
                                    @include('voyager::partials.bulk-delete')
                                @endcan
                            
                        | @endcan | Type@if(!$isAdmin) | Nom@endif | ID@if ($isAdmin) | Sim | Statut@endif | Groupe@if ($isAdmin) | Contact@endif | Vidéo | Charges@if ($isAdmin) | Software | Maps | Création@endif | Actions | ||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @endcan
                                    {{-- TYPE --}}
                                    @php $row = $dataType->browseRows[0]; @endphp
                                    @if (isset($row->details->options->{$data->{$row->field}})) | @if(file_exists(public_path('assets/svg/device_type_' . $data->device_type . '_' . strtolower($data->couleur) .'.svg'))) @svg('device_type_' . $data->device_type . '_' . strtolower($data->couleur), 'icon-lg') @endif@else | Aucun@endif @if (!$isAdmin) {{-- NAME --}} | {{ strlen($data->name) > 0 ? $data->name: 'Aucun nom attribué'}}@endif {{-- ID & Color--}} | {{$data->device_id}} - {{$data->couleur}}@if ($isAdmin) | {{$data->sim}} | {{ $data->getOnlineState() }}{{-- STATUT --}} | @php $row = $dataType->browseRows[1]; @endphp @if($row->type == 'select_multiple') @if (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 @endif@endif @if (!$isAdmin) {{-- GROUP --}} | @php $row = $dataType->browseRows[8]; @endphp @include('vendor.voyager.formfields.relationship', ['view' => 'browse','options' => $row->details])@endif @if ($isAdmin) {{-- USER --}} | {{($data->getUserContacts()['name'])}} - {{$data->getUserContacts()['mail']}}@endif {{-- VIDEO --}} | @php $row = $dataType->browseRows[10]; @endphp @if($data->video)@endif @include('vendor.voyager.formfields.relationship', ['view' => 'browse','options' => $row->details])@if($data->video)@endif{{-- Statut CHARGE --}} | 0@if ($isAdmin) | {{$data->sw_arduino}} - {{$data->sw_opi}} | {{--DATE--}} | {{\Carbon\Carbon::parse($data->created_at)->formatLocalized('%e %B %Y')}}@endif | 
{{ 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