{{-- Display general actions for admin panel data tables. Default actions is 'show' and 'destroy' --}}
@if (!isset($actions) || in_array('edit', $actions??[])) @php $action_url = route("admin.$name.edit", $model); if(isset($action_urls) && is_array($action_urls) && ($action_urls['edit']??'')){ $action_url = $action_urls['edit']??''; } @endphp Edit @endif @if (in_array('show', $actions??[])) @php $action_url = route("admin.$name.show", $model); if(isset($action_urls) && is_array($action_urls) && ($action_urls['show']??'') ){ $action_url = $action_urls['show']??''; } @endphp View @endif @if (!isset($actions) || in_array('destroy', $actions??[])) @endif