laravel - how to add a field in jquery data table? -
i'm trying use jquery data table in laravel project.
i have fields in mysql db , show them in ui.
for example have name , family , date , time.
i want show addition of time in jquery datatable.that means if have 2 record in time 1 4 , 2 @ 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 $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 lot.
Comments
Post a Comment