@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) @if ($action->shouldActionDisplayOnRow($data)) @if($action instanceof \TCG\Voyager\Actions\ViewAction and $dataType->name === 'invoices' and isset($data->id)) convertAttributesToHtml() !!}> @else @if($action instanceof \TCG\Voyager\Actions\ViewAction and $dataType->name === 'users' and isset($data->id) && Auth::user()->role_id === 1) @endif @if($action instanceof \TCG\Voyager\Actions\ViewAction and $dataType->name === 'user_verifies' and isset($data->id) && Auth::user()->role_id === 1) @endif @if($action instanceof \TCG\Voyager\Actions\ViewAction and $dataType->name === 'posts' and isset($data->id) && Auth::user()->role_id === 1) @endif @if($action instanceof \TCG\Voyager\Actions\ViewAction and $dataType->name === 'public_pages' and isset($data->id)) @endif @if($action instanceof \TCG\Voyager\Actions\ViewAction and $dataType->name === 'streams' and isset($data->id)) @endif @if($action instanceof \TCG\Voyager\Actions\ViewAction and $dataType->name === 'user_reports' and isset($data->id))