Hello, i have foreach with notification messages:
<div class="row">
<div class="col-lg-12">
@foreach ($message as $items)
<table class="table notifications">
<thead>
<tr>
<th colspan="3">{{ getDayName($items->created_at) }}</th>
</tr>
</thead>
<tbody>
<tr>
<td class="date">{{ date("g:i a", strtotime($items->created_at)) }}</td>
<td class="icon"><span class="info-{{ $items->level }}"></span></td>
<td><strong>{{ ucwords($items->name) }}</strong>: {{ $items->message }}</td>
</tr>
</tbody>
</table>
@endforeach
</div>
</div>
<div class="row">
<div class="col-lg-12">{{ $message->links(); }}</div>
</div>
message = Auth::user()->Notifications()->orderBy('created_at', 'desc')->paginate(2);
i got result like this:
march 11,
08:30 text
macrh 12,
00:00 text
march 12, 10:00 text
but i need group date and time, for example
march 11,
08:30 text
macrh 12,
00:00 text 10:00 text
how can i do that please help
with the same time in date in one table