@extends('Dashboard::layouts.dashboard') @section('content') @if($tabletype == 'ales0sa')
@can($tablename.'-edit') @endcan Añadir @if (isset($trash) && $trash == true) Salir de la Papelera @else Papelera @endif
@else
@if (isset($trash) && $trash == true) Salir de la Papelera @else Papelera @endif @can($tablename.'-edit') Añadir @endcan
@foreach ($data as $item) @if ($loop->first) @foreach ($inputs as $inputKey => $input) @if(isset($input->visible) && $input->visible == 1) @endif @endforeach @endif @foreach ($inputs as $inputKey => $input) @if(isset($input->visible) && $input->visible == 1) @endif @endforeach @if ($loop->last)
{{ $input->label->{App::getLocale()} }} -
@if($input->type == 'select' && $input->valueoriginselector == 'values') @foreach($input->options as $opt) @if($item->{$input->columnname} == $opt->key) {{ $opt->text}} @endif @endforeach @elseif($input->type == 'select' && $input->valueoriginselector == 'table') @php //$finder = \DB::select('select * from '.$input->tabledata.' where '.$input->tablekeycolumn.' = '.$item->{$input->columnname}, [1]); $finder = \DB::table($input->tabledata)->where($input->tablekeycolumn, $item->{$input->columnname})->pluck($input->tabletextcolumn); @endphp {{$finder[0] }} @if(isset($finder->{$input->tabletextcolumn})) @endif {{-- $input->tabledata }} - {{ $input->tabletextcolumn }} - {{ $input->tablekeycolumn --}} @elseif($input->type == 'true_or_false') @if($item->{$input->columnname} == 0)
@else
@endif @else {{ $item->{$input->columnname} }} @endif
@if (!$item->trashed()) Editar Duplicar Eliminar @else Restaurar @endif
@endif @endforeach
@endif @endsection