Advertisement
Guest User

Untitled

a guest
Jul 15th, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 2.08 KB | None | 0 0
  1. if(!is_null($GLOBALS["quote-for"])){
  2.  
  3.     switch ($GLOBALS['quote-for']) {
  4.         case 'Toilet':
  5.             $GLOBALS['custom_text_for_toilet'] = $quote_setting->custom_text_for_toilet;
  6.             $GLOBALS['silicon_rate_toilet'] = @\App\PricingSectionValue::where('company_id',Session::get("company_id"))->where('pricing_section_input_id',75)->first()->value;
  7.             array_push($GLOBALS['total-cost-of-quote'], $GLOBALS['silicon_rate_toilet']);
  8.             break;
  9.         case 'Bathroom':
  10.             $GLOBALS['custom_text_for_bathroom'] = $quote_setting->custom_text_for_bathroom;
  11.             $GLOBALS['silicon_rate_bathroom'] = @\App\PricingSectionValue::where('company_id',Session::get("company_id"))->where('pricing_section_input_id',74)->first()->value;
  12.             array_push($GLOBALS['total-cost-of-quote'], $GLOBALS['silicon_rate_bathroom']);
  13.             break;
  14.         case 'Laundry':
  15.             $GLOBALS['custom_text_for_laundry'] = $quote_setting->custom_text_for_laundry;
  16.             $GLOBALS['silicon_rate_laundry'] = @\App\PricingSectionValue::where('company_id',Session::get("company_id"))->where('pricing_section_input_id',76)->first()->value;
  17.             array_push($GLOBALS['total-cost-of-quote'], $GLOBALS['silicon_rate_laundry']);
  18.             break;
  19.         case 'Ensuite':
  20.             $GLOBALS['custom_text_for_ensuite'] = $quote_setting->custom_text_for_ensuite;
  21.             $GLOBALS['silicon_rate_bathroom'] = @\App\PricingSectionValue::where('company_id',Session::get("company_id"))->where('pricing_section_input_id',74)->first()->value;
  22.             array_push($GLOBALS['total-cost-of-quote'], $GLOBALS['silicon_rate_bathroom']);
  23.             break;
  24.         case 'Powder Room':
  25.             $GLOBALS['custom_text_for_powder_room'] = $quote_setting->custom_text_for_powder_room;
  26.             $GLOBALS['silicon_rate_bathroom'] = @\App\PricingSectionValue::where('company_id',Session::get("company_id"))->where('pricing_section_input_id',74)->first()->value;
  27.             array_push($GLOBALS['total-cost-of-quote'], $GLOBALS['silicon_rate_bathroom']);
  28.             break;
  29.     }
  30. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement