@extends('Dashboard::layouts.dashboard') @section('content') @if($tabletype == 'ales0sa')
| {{ $input->label->{App::getLocale()} }} | @endif @endforeach- |
|---|---|
|
@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)
|
@endif
@endforeach
@if (!$item->trashed()) Editar Duplicar Eliminar @else Restaurar @endif |