common/services/entities/NewsletterService.php
protected function applyBulk( $model, $column, $action, $target, $config = [] ) {

		switch( $column ) {

			case 'status': {

				switch( $action ) {

					case 'active': {

						$this->approve( $model );

						break;
					}
					case 'block': {

						$this->block( $model );

						break;
					}
				}

				break;
			}
			case 'model': {

				switch( $action ) {

					case 'global': {

						$model->global = true;

						$model->update();

						break;
					}
					case 'specific': {

						$model->global = false;

						$model->update();

						break;
					}
					case 'delete': {

						$this->delete( $model );

						break;
					}
				}

				break;
			}
		}
	}
protected function applyBulk( $model, $column, $action, $target, $config = [] ) {

		switch( $column ) {

			case 'status': {

				switch( $action ) {

					case 'active': {

						$this->approve( $model );

						break;
					}
					case 'block': {

						$this->block( $model );

						break;
					}
				}

				break;
			}
			case 'model': {

				switch( $action ) {

					case 'global': {

						$model->global = true;

						$model->update();

						break;
					}
					case 'specific': {

						$model->global = false;

						$model->update();

						break;
					}
					case 'delete': {

						$this->delete( $model );

						break;
					}
				}

				break;
			}
		}
	}
protected function applyBulk ( $ model , $ column , $ action , $ target , $ config = [ ] ) { switch ( $ column ) { case 'status' : { switch ( $ action ) { case 'active' : { $ this -> approve ( $ model ) ; break ; } case 'block' : { $ this -> block ( $ model ) ; break ; } } break ; } case 'model' : { switch ( $ action ) { case 'global' : { $ model -> global = true ; $ model -> update ( ) ; break ; } case 'specific' : { $ model -> global = false ; $ model -> update ( ) ; break ; } case 'delete' : { $ this -> delete ( $ model ) ; break ; } } break ; } } }
Bulk ---------------
Bulk ---------------