@props(['module', 'installed', 'enable'])
@if (! empty($module->plan))
    
        
            {{ trans('modules.switch_to_cloud') }}
        
    
@elseif (in_array('onprime', $module->where_to_use))
    @if ($installed)
        @can('delete-modules-item')
            
                
                    {{ trans('modules.button.uninstall') }}
                
            
        @endcan
        @can('update-modules-item')
            @if ($enable)
                
                    
                        {{ trans('modules.button.disable') }}
                    
                
            @else
                
                    
                        {{ trans('modules.button.enable') }}
                    
                
            @endif
        @endcan
    @else
        @can('create-modules-item')
            @if ($module->install)
                @if (! empty($module->isPurchase) && (! empty($module->purchase_type) && $module->purchase_type == 'monthly'))
                    
                        
                            {{ trans('modules.install') }}
                        
                    
                @else
                    
                @endif
            @else
                
                    {{ trans('modules.use_app') }}
                
            @endif
        @endcan
    @endif
@else
    @if ($module->install)
        
            
                {{ trans('modules.switch_to_cloud') }}
            
        
    @else
        
            
                {{ trans('modules.switch_to_cloud') }}
            
        
    @endif
@endif