Welcome the client or Welcome them back. Print

  • 0

You can welcome the client to your billing system or welcome them back if they have returned. You can do so using this code:

<?php
          if (strpos($_SERVER['REQUEST_URI'], "customers")  || strpos($_SERVER['REQUEST_URI'], "order") !== false){
                  $today_date = date('Y-m-d H:i:s');
                  if($client->date_added == $today_date){
                    echo "Welcome ";
                    echo $client->first_name;
                    echo "...";
                  }else{
                    echo "Welcome back ";
                    echo $client->first_name;
                    echo "!";
                  }
          }
?>

Was this answer helpful?

« Back