@inject('helperClass','PowerComponents\LivewirePowerGrid\Helpers\Helpers') @props([ 'actions' => null, 'theme' => null, ])
@foreach($actions as $action)
@php if($action->singleParam) { $parameters = $helperClass->makeActionParameter($action->param); } else { $parameters = $helperClass->makeActionParameters($action->param); } @endphp @if($action->event !== '' && $action->to === '') {!! $action->caption !!} @elseif($action->event !== '' && $action->to !== '') {!! $action->caption !!} @elseif($action->view !== '') {!! $action->caption !!} @else @if(strtolower($action->method) !== 'get')
@method($action->method) @csrf
@else {!! $action->caption !!} @endif @endif
@endforeach