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

Popular posts from this blog

c# - Update a combobox from a presenter (MVP) -

How to understand 2 main() functions after using uftrace to profile the C++ program? -

How to put a lock and transaction on table using spring 4 or above using jdbcTemplate and annotations like @Transactional? -