@extends('layout', ['title' => 'Dashboard']) @section('content') Obtine access la un sheet {!! Form::open(['url' => '/process/Permission/']) !!} {!! Form::close() !!}
@foreach(DB::table('sheets')->get() as $sheet) @if(access_to_sheet($sheet->id))
@foreach(DB::table('sheet_columns')->where('sheet', $sheet->id)->get() as $column) @endforeach @foreach(DB::table('sheet_data')->where('for_sheet', $sheet->id)->get() as $sheet_data) @foreach(DB::table('sheet_columns')->where('sheet', $sheet->id)->get() as $column) @endforeach @endforeach
# {!! substr(implode(' ', array_map(function($word) { return strlen($word) > 2 ? '
' . $word : $word; }, explode(' ', $column->name))), 4); !!}
add
{{ $loop->iteration }} {{ json_decode($sheet_data->json_data, true)[$column->id] ?? '' }} @if(me()->admin) @endif
@endif @endforeach

Tip: Double click on something to edit... @endsection