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_net_terms = $row['client_net_terms']; if($client_net_terms == 0){ $client_net_terms = $config_default_net_terms; } $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 == "Approved"){ $quote_badge_color = "success"; }elseif($quote_status == "Cancelled"){ $quote_badge_color = "danger"; }else{ $quote_badge_color = "secondary"; } ?>

Quote

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

History
Date Status Description