/** * Show a list of all the languages posts formatted for Datatables. * * @return Datatables JSON */ public function data() { $segment = CustomersSegment::whereNull('deleted_at')->select(array('id', 'segment_name', 'created_at', 'updated_at')); return Datatables::of($segment)->add_column('Actions', '<a href="{{{ URL::to(\'admin/customerssegment/\' . $id . \'/delete\' ) }}}" class="btn btn-success btn-danger iframe"><span class="glyphicon glyphicon-trash"></span> {{ trans("admin/modal.delete") }}</a>')->remove_column('updated_at')->make(); }