I'm grouping by date in the view. I want to compare it according to the incoming data and give the background color green if the data is larger than the data in the next row, red if it is smaller, and orange if it is equal. However, in the examples I examined, I could not compare the data coming with data_get() as I gave the table example below. Thanks a lot for your help.
<table>
<thead>
<tr>
<th>Supplier</th>
@foreach($dates as $date)
<th>{{ $date->format('d.m.Y') }}</th>
@endforeach
</tr>
</thead>
<tbody>
@foreach($suppliers as $supplier)
<tr>
<td>{{ $supplier->name }}</td>
@foreach($dates as $date)
<td>
{{ data_get($transactionsByDate, $date->toDateString()) }}</td>
@endforeach
</tr>
@endforeach
</tbody>
</table>