Esempio n. 1
0
 public function getListAssessment(Request $request, $idProvider)
 {
     $dataProvider = new PrComments();
     $table = $dataProvider->AllCommentForProviderForDataTable($idProvider);
     $datatable = Datatables::of($table)->editColumn('picture_user', '<img src="{{$picture_user}}" heigth=64" width="64" />')->editColumn('picture_comment', '<img src="{{$picture_comment}}" heigth=64" width="64" />')->addColumn('action', function ($table) {
         return '<a href="javascript:;" data-url="/admpanel/' . self::NAMEC . '/delete-assessment/' . $table->id . '" class="btn-actions icon icon-' . $table->estado . ' js-change-confirm" title="' . $table->estado . '" data-status="' . $table->estado . '" data-id="' . $table->id . '" ></a>';
     });
     return $datatable->make(true);
 }