2){ $client_phone = substr($row['client_phone'],0,3)."-".substr($row['client_phone'],3,3)."-".substr($row['client_phone'],6,4); } $client_extension = $row['client_extension']; $client_mobile = $row['client_mobile']; if(strlen($client_mobile)>2){ $client_mobile = substr($row['client_mobile'],0,3)."-".substr($row['client_mobile'],3,3)."-".substr($row['client_mobile'],6,4); } $client_website = $row['client_website']; $client_currency_code = $row['client_currency_code']; $client_net_terms = $row['client_net_terms']; if($client_net_terms == 0){ $client_net_terms = $config_default_net_terms; } $company_name = $row['company_name']; $company_country = $row['company_country']; $company_address = $row['company_address']; $company_city = $row['company_city']; $company_state = $row['company_state']; $company_zip = $row['company_zip']; $company_phone = $row['company_phone']; if(strlen($company_phone)>2){ $company_phone = substr($row['company_phone'],0,3)."-".substr($row['company_phone'],3,3)."-".substr($row['company_phone'],6,4); } $company_email = $row['company_email']; $company_website = $row['company_website']; $company_logo = $row['company_logo']; if(!empty($company_logo)){ $company_logo_base64 = base64_encode(file_get_contents($row['company_logo'])); } $sql_history = mysqli_query($mysqli,"SELECT * FROM history WHERE quote_id = $quote_id ORDER BY history_id DESC"); //Set Badge color based off of quote status if($quote_status == "Sent"){ $quote_badge_color = "warning text-white"; }elseif($quote_status == "Viewed"){ $quote_badge_color = "primary"; }elseif($quote_status == "Accepted"){ $quote_badge_color = "success"; }elseif($quote_status == "Declined"){ $quote_badge_color = "danger"; }elseif($quote_status == "Invoiced"){ $quote_badge_color = "info"; }else{ $quote_badge_color = "secondary"; } ?>

Quote

Quote Date
Item Description Qty Price Tax Total
$ $ $
Notes
0){ ?>
Subtotal $
Tax $
Total $

History
Date Status Description