| Schedule of Earnings Per Share, Basic and Diluted |
The calculations of basic and diluted net income (loss) per share and basic and dilutive weighted-average shares outstanding for fiscal 2017, fiscal 2016, and fiscal 2015 were as follows (in thousands, except per share data): | | | | | | | | | | | | | | Fiscal Year Ended | | December 30, 2017 | | December 31, 2016 | | December 26, 2015 | | | | | | | Numerator: | | | | | | Basic: | | | | | | Net income (loss) from continuing operations attributable to common stockholders | $ | 6,944 |
| | $ | (3,612 | ) | | $ | (17,879 | ) | Net income from discontinued operations attributable to common stockholders | $ | — |
| | $ | 6,757 |
| | $ | (17,116 | ) | Dilutive | | | | | | Net income (loss) from continuing operations attributable to common stockholders | $ | 6,944 |
| | $ | (3,612 | ) | | $ | (17,879 | ) | Plus: undistributed earnings allocated to participating securities | 3,719 |
| | — |
| | — |
| Less: undistributed earnings reallocated to participating securities | (3,637 | ) | | — |
| | — |
| Net income (loss) from continuing operations attributable to common stockholders | $ | 7,026 |
| | $ | (3,612 | ) | | $ | (17,879 | ) | Net income (loss) from discontinued operations attributable to common stockholders | $ | — |
| | $ | 6,757 |
| | $ | (17,116 | ) | | | | | | | Denominator: | | | | | | Weighted-average shares outstanding - basic | 29,680 |
| | 30,535 |
| | 32,001 |
| | | | | | | Dilutive impact from: | | | | | | Options outstanding | 1,941 |
| | — |
| | — |
| Restricted stock units | 785 |
| | — |
| | — |
| Weighted-average shares outstanding - dilutive | 32,406 |
| | 30,535 |
| | 32,001 |
| | | | | | | Net income (loss) per share attributable to common stockholders (Basic): | | | | | | Income (loss) per share from continuing operations attributable to common stockholders | $ | 0.23 |
| | $ | (0.12 | ) | | $ | (0.56 | ) | Income (loss) per share from discontinued operations attributable to common stockholders | — |
| | 0.22 |
| | (0.53 | ) | Net income (loss) per share attributable to common stockholders | $ | 0.23 |
| | $ | 0.10 |
| | $ | (1.09 | ) | | | | | | | Net income (loss) per share attributable to common stockholders (Diluted): | | | | | | Income (loss) per share from continuing operations attributable to common stockholders | $ | 0.22 |
| | $ | (0.12 | ) | | $ | (0.56 | ) | Income (loss) per share from discontinued operations attributable to common stockholders | — |
| | 0.22 |
| | (0.53 | ) | Net income (loss) per share attributable to common stockholders | $ | 0.22 |
| | $ | 0.10 |
| | $ | (1.09 | ) |
|
| Schedule of Antidilutive Securities Excluded from Computation of Earnings Per Share |
The following equity shares were excluded from the calculation of diluted net loss per share attributable to common stockholders because their effect would have been anti-dilutive for the periods presented (in thousands): | | | | | | | | | | | Fiscal Year Ended | | December 30, 2017 | | December 31, 2016 | | December 26, 2015 | Stock options | 1,365 |
| | 4,312 |
| | 3,482 |
| Restricted stock units | 140 |
| | 1,780 |
| | 1,306 |
| Series A Redeemable Convertible Preferred Stock (as converted to common stock) | 4,787 |
| | 4,539 |
| | — |
|
|