@if($data) @php // need to recreate object because policy might depend on record data $class = get_class($action); $action = new $class($dataType, $data); @endphp @can ($action->getPolicy(), $data) convertAttributesToHtml() !!}> @endcan @elseif (method_exists($action, 'massAction'))
{{ csrf_field() }}
@endif