@props(['module', 'installed', 'enable'])
@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