I'm trying to use JQuery data table in my Laravel project.
I have some fields in my MySQL db and show them in my UI.
For example i have name and family and date and time.
i want to show addition of time in my jquery datatable.that means if i have 2 record in time one is 4 and another is 2 at the end of table show me 6.
<table id="list-report" class="table table-bordered responsive">
<thead>
<tr>
<th>row</th>
<th>explain</th>
<th>time</th>
<th> date</th>
</tr>
</thead>
<tbody>
@foreach($datas as $key=>$value)
<tr>
<td>{!!++$key!!}</td>
<th>{{ str_limit($value->explain, $limit = 100, $end = '...') }}</th>
<td>{{$value->time}}</td>
<td class="date">{{$value->date}}
</td>
</tr>
@endforeach
</tbody>
</table>
thanks a lot.