Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if(!is_null($GLOBALS["quote-for"])){
- switch ($GLOBALS['quote-for']) {
- case 'Toilet':
- $GLOBALS['custom_text_for_toilet'] = $quote_setting->custom_text_for_toilet;
- $GLOBALS['silicon_rate_toilet'] = @\App\PricingSectionValue::where('company_id',Session::get("company_id"))->where('pricing_section_input_id',75)->first()->value;
- array_push($GLOBALS['total-cost-of-quote'], $GLOBALS['silicon_rate_toilet']);
- break;
- case 'Bathroom':
- $GLOBALS['custom_text_for_bathroom'] = $quote_setting->custom_text_for_bathroom;
- $GLOBALS['silicon_rate_bathroom'] = @\App\PricingSectionValue::where('company_id',Session::get("company_id"))->where('pricing_section_input_id',74)->first()->value;
- array_push($GLOBALS['total-cost-of-quote'], $GLOBALS['silicon_rate_bathroom']);
- break;
- case 'Laundry':
- $GLOBALS['custom_text_for_laundry'] = $quote_setting->custom_text_for_laundry;
- $GLOBALS['silicon_rate_laundry'] = @\App\PricingSectionValue::where('company_id',Session::get("company_id"))->where('pricing_section_input_id',76)->first()->value;
- array_push($GLOBALS['total-cost-of-quote'], $GLOBALS['silicon_rate_laundry']);
- break;
- case 'Ensuite':
- $GLOBALS['custom_text_for_ensuite'] = $quote_setting->custom_text_for_ensuite;
- $GLOBALS['silicon_rate_bathroom'] = @\App\PricingSectionValue::where('company_id',Session::get("company_id"))->where('pricing_section_input_id',74)->first()->value;
- array_push($GLOBALS['total-cost-of-quote'], $GLOBALS['silicon_rate_bathroom']);
- break;
- case 'Powder Room':
- $GLOBALS['custom_text_for_powder_room'] = $quote_setting->custom_text_for_powder_room;
- $GLOBALS['silicon_rate_bathroom'] = @\App\PricingSectionValue::where('company_id',Session::get("company_id"))->where('pricing_section_input_id',74)->first()->value;
- array_push($GLOBALS['total-cost-of-quote'], $GLOBALS['silicon_rate_bathroom']);
- break;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement