app/DataTables/students/AbsencesDataTable.php
/**
     * Optional method if you want to use html builder.
     *
     * @return \Yajra\DataTables\Html\Builder
     */
Optional method if you want to use html builder.
Optional method if you want to use html builder .
public function html()
    {
        return $this->builder()
            ->setTableId('students/absences-table')
            ->columns($this->getColumns())
            ->minifiedAjax()
            ->dom('Bfrti')
            ->paging(false)
            ->orderBy(1)
            ->buttons(
                Button::make('excel'),
                Button::make('csv'),
                Button::make('pdf'),
                Button::make('print'),
                Button::make('reset'),
            )->scrollY(150)->scroller(["loadingIndicator" => true])->responsive();
    }
public function html ( ) { return $ this -> builder ( ) -> setTableId ( 'students/absences-table' ) -> columns ( $ this -> getColumns ( ) ) -> minifiedAjax ( ) -> dom ( 'Bfrti' ) -> paging ( false ) -> orderBy ( 1 ) -> buttons ( Button :: make ( 'excel' ) , Button :: make ( 'csv' ) , Button :: make ( 'pdf' ) , Button :: make ( 'print' ) , Button :: make ( 'reset' ) , ) -> scrollY ( 150 ) -> scroller ( [ " loadingIndicator " => true ] ) -> responsive ( ) ; }
Optional method if you want to use html builder.
Optional method if you want to use html builder .