@inject('helperClass','PowerComponents\LivewirePowerGrid\Helpers\Helpers')
@props([
'actions' => null,
'theme' => null,
'row' => null,
'tableName' => null,
])
@if(isset($actions) && count($actions) && $row !== '')
@foreach($actions as $key => $action)
@php
$actionClass = new \PowerComponents\LivewirePowerGrid\Helpers\Actions(
$action,
$row,
$primaryKey,
$theme,
);
@endphp
@if(!boolval($actionClass->ruleHide))
@if($actionClass->isButton)
@endif
@if(filled($actionClass->bladeComponent))
@endif
@if($actionClass->isLinkeable)
getAttributes() }}>
{!! $actionClass->caption() !!}
@endif
@if(filled($action->route) && !$actionClass->isButton)
@if(strtolower($action->method) !== 'get')
@else
getAttributes() }}
>
{!! $actionClass->caption() !!}
@endif
@endif
@endif
@endforeach
|
@endif