Пример #1
0
 public function getData()
 {
     $karyawans = Karyawan::select(array('karyawans.kdkary', 'karyawans.nama', 'karyawans.alamat', 'karyawans.jabatan'));
     return Datatables::of($karyawans)->add_column('actions', '
         <div>
         	 <a href="{{{ URL::to(\'admin/karyawans/\' . $kdkary . \'/edit\' ) }}}" class="btn btn-primary btn-xs iframe" ><i class="fa fa-pencil"></i></a> <a href="{{{ URL::to(\'admin/karyawans/\' . $kdkary . \'/delete\' ) }}}" class="btn btn-xs btn-danger iframe"><i class="fa fa-trash-o"></i></a>
         </div>
         ')->remove_column('rn')->make();
 }