@props(['module', 'installed', 'enable'])
    
        
            {{ trans('modules.switch_to_cloud') }}
        
    
    @if (in_array('onprime', $module->where_to_use) || $module->isPurchase)
        @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
        
            
                {{ trans('modules.switch_to_cloud') }}
            
        
    @endif
    @if (empty($module->plan))
        @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
        
            
                {{ trans('modules.switch_to_cloud') }}
            
        
    @endif