@php
$allMsgs = App\Models\task\Task::getAllChats($ppending->project_id);
$dt = "";
foreach($allMsgs as $msg){
if (date("Y-m-d", strtotime($msg->ent_dt)) == date("Y-m-d")) {
$tme = "Today";
} else {
$tme = date('F d, Y', strtotime($msg->ent_dt));
}
if (date("Y-m-d", strtotime($msg->ent_dt)) == date('Y-m-d', strtotime("-1 days"))) {
$tme = "Yesterday";
}
if($dt != date("d-m-Y",strtotime($msg->ent_dt))){
@endphp
{{ $tme }}
@php
$dt = date("d-m-Y",strtotime($msg->ent_dt));
}
if($msg->from_id != Auth::user()->id){
@endphp
@php
}else{
@endphp
@php
}
}
@endphp