| {!! $email->from_name !!} | {!! $email->subject !!} | @php if(isset($email->date_received)){ $dateArr = explode(" ",$email->date_received); if($dateArr[0]==$todayDate) { echo date("g:i A", strtotime($email->date_received)); } else { if($currentYear==date("Y", strtotime($email->date_received))) { echo date("M d", strtotime($email->date_received)); } else { echo date("M d Y", strtotime($email->date_received)); } } } @endphp {{-- --}} |