@foreach ($web_notifications_info_data as $web_notification_data) @if ($loop->first || \App\User::dateFormat($web_notifications_info_data[$loop->index-1]['created_at'], 'M j, Y') != \App\User::dateFormat($web_notification_data['created_at'], 'M j, Y')) @php $notification_date = \App\User::dateFormat($web_notification_data['created_at'], 'M j, Y'); @endphp