<div class="d-flex gap-2 align-items-center justify-content-end">
    @if (!$data->trashed())
        <!-- Edit button -->
        @hasPermission('edit_customads')
        <a class="btn btn-warning-subtle btn-sm fs-4" href="{{ route('backend.customads.edit', $data->id) }}" data-bs-toggle="tooltip" title="{{ __('messages.edit') }}">
            <i class="ph ph-pencil-simple-line align-middle"></i>
        </a>
        @endhasPermission

    

        @hasPermission('delete_customads')
        <!-- Soft Delete (Trash) -->
        <a href="{{ route('backend.customads.destroy', $data->id) }}" id="delete-customads-{{ $data->id }}" class="btn btn-secondary-subtle btn-sm fs-4" data-type="ajax" data-method="DELETE" data-token="{{ csrf_token() }}" data-bs-toggle="tooltip" title="{{ __('messages.delete') }}" data-confirm="{{ __('messages.are_you_sure?') }}">
            <i class="ph ph-trash align-middle"></i>
        </a>
        @endhasPermission
    @else
    @hasPermission('restore_customads')
        <!-- Restore link -->
        <a class="btn btn-success-subtle btn-sm fs-4 restore-tax" data-confirm-message="{{__('messages.are_you_sure_restore')}}" 
    data-success-message="{{trans('messages.restore_form')}}" href="{{ route('backend.customads.restore', $data->id) }}" data-bs-toggle="tooltip" title="{{ __('messages.restore') }}">
            <i class="ph ph-arrow-clockwise align-middle"></i>
        </a>
        @endhasPermission
        @hasPermission('force_delete_customads')

        <!-- Force Delete link -->
        <a href="{{ route('backend.customads.force_delete', $data->id) }}" id="delete-customads-{{ $data->id }}" class="btn btn-danger-subtle btn-sm fs-4" data-type="ajax" data-method="DELETE" data-token="{{ csrf_token() }}" data-bs-toggle="tooltip" title="{{ __('messages.force_delete') }}" data-confirm="{{ __('messages.are_you_sure?') }}">
            <i class="ph ph-trash align-middle"></i>
        </a>
        @endhasPermission
    @endif
    
</div>
