The board of supervisors in every county may provide and maintain, at the expense of the county, in a location approved by the judge of the juvenile court, or in counties having more than one judge of the juvenile court, by the presiding judge of the juvenile court, a 24-hour school or a nonresidential boot camp school program operated by the probation officer. The school shall be established to provide education and training for minors in accordance with the provisions of Article 1 (commencing with Section 48600) of Chapter 4 of Part 27 of the Education Code. The cost of providing education and training for the students shall be computed pursuant to the provisions of Section 893.