@php
$time = date("H");
$timezone = date("e");
/* If the time is less than 1200 hours, show good morning */
if($time < "12") {
$greetings = "Good morning";
}else
/* If the time is grater than or equal to 1200 hours, but less than 1700 hours, so good afternoon */
if($time >= "12" && $time < "16") {
$greetings = "Good afternoon";
}else
/* Should the time be between or equal to 1700 and 1900 hours, show good evening */
if($time >= "16") {
$greetings = "Good evening";
}
@endphp
{{ $greetings.' '.Auth::user()->username }}