12. Leases The components of lease costs recorded in cost of sales and SG&A expense were as follows (in thousands): | | | | | | | | | Year Ended | | Year Ended | | | April 30, | | April 30, | | | 2025 | | 2024 | Operating lease cost | | $ | 10,163 | | $ | 10,400 | Short term lease cost | | | 822 | | | 1,198 | Variable lease cost | | | 1,627 | | | 1,678 | Sublease income | | | — | | | — | Total lease costs, net | | $ | 12,612 | | $ | 13,276 |
Supplemental lease information was as follows: | | | | | | | | | Year Ended | | Year Ended | | | April 30, | | April 30, | | | 2025 | | 2024 | | | (In thousands) | | (In thousands) | Cash paid for amounts included in the measurement of operating lease liabilities | | $ | 10,229 | | $ | 9,626 | Right-of-use assets obtained in exchange for new lease liabilities | | $ | 10,099 | | $ | 10,193 | | | | | | | | Weighted average remaining lease term | | | 48 months | | | 51 months | Weighted average discount rate | | | 5.4% | | | 5.4% |
Maturities of operating lease liabilities as of April 30, 2025 were as follows (in thousands): | | | | 2026 | | $ | 9,713 | 2027 | | | 9,945 | 2028 | | | 7,890 | 2029 | | | 6,756 | 2030 | | | 3,686 | Thereafter | | | 373 | Total lease payments | | $ | 38,363 | Less: imputed interest | | | (4,072) | Total present value of operating lease liabilities | | $ | 34,291 |
|