private function build_other_page() { $data = new stdClass(); // Delivery information $data->delivery = Quotation::calcDeliver(); // Costs $data->costs = new stdClass(); $data->costs->init_cost = Quotation::calcSessionQuotationCurrentValue('interior'); $data->costs->decoupled_floor = QuotationPriceAdjustments::getPrice('other_decoupled_floor'); $data->costs->aquastep_oak_floor = QuotationPriceAdjustments::getPrice('other_aquastep_oak_floor'); $data->costs->walls_to_timber = QuotationPriceAdjustments::getPrice('other_walls_to_timber'); $data->costs->taller_walls = QuotationPriceAdjustments::getPrice('other_taller_walls'); $data->costs->entry_steps = QuotationPriceAdjustments::getPrice('other_entry_steps'); $data->costs->entry_handrail = QuotationPriceAdjustments::getPrice('other_entry_handrail'); $data->costs->skirt = QuotationPriceAdjustments::getPrice('other_skirt'); // Notes $data->help = new stdClass(); $data->help->decoupled_floor = QuotationPriceAdjustments::getNote('other_decoupled_floor'); $data->help->aquastep_oak_floor = QuotationPriceAdjustments::getNote('other_aquastep_oak_floor'); $data->help->walls_to_timber = QuotationPriceAdjustments::getNote('other_walls_to_timber'); $data->help->taller_walls = QuotationPriceAdjustments::getNote('other_taller_walls'); $data->help->entry_steps = QuotationPriceAdjustments::getNote('other_entry_steps'); $data->help->entry_handrail = QuotationPriceAdjustments::getNote('other_entry_handrail'); $data->help->skirt = QuotationPriceAdjustments::getNote('other_skirt'); // Field defaults $data->defaults = new stdClass(); $data->defaults->decoupled_floor = \Laravel\Session::get('quote_other_decoupled_floor', 0); $data->defaults->aquastep_oak_floor = \Laravel\Session::get('quote_other_aquastep_oak_floor', 0); $data->defaults->walls_to_timber = \Laravel\Session::get('quote_other_walls_to_timber', 0); $data->defaults->taller_walls = \Laravel\Session::get('quote_other_taller_walls', 0); $data->defaults->entry_steps = \Laravel\Session::get('quote_other_entry_steps', 0); $data->defaults->entry_handrail = \Laravel\Session::get('quote_other_entry_handrail', 0); $data->defaults->skirt = \Laravel\Session::get('quote_other_skirt', 0); return View::make('quotations.add_other')->with('data', $data); }