@props([ 'actions' => null, 'theme' => null, 'row' => null ])
@if(isset($actions) && count($actions) && $row !== '') @foreach($actions as $action) @php $parameters = []; foreach ($action->param as $param => $value) { $parameters[$param] = $row->{$value}; } @endphp @if($action->event !== '') {!! $action->caption !!} @elseif($action->view !== '') {!! $action->caption !!} @else @if(strtolower($action->method) !== ('get'))
@method($action->method) @csrf
@else {!! $action->caption !!} @endif @endif @endforeach @endif