public function allToPdf()
    {
        $attendances = $this->repository->all();
        $pdf = \App::make('dompdf.wrapper');
        $view = \View::make('attendance::pdf.attendances')->with('attendances', $attendances)->render();
        $pdf->loadHTML($view, $attendances);
        $pdf->output();
        return $pdf->stream('attendances');
    }
public function allToPdf()
    {
        $attendances = $this->repository->all();
        $pdf = \App::make('dompdf.wrapper');
        $view = \View::make('attendance::pdf.attendances')->with('attendances', $attendances)->render();
        $pdf->loadHTML($view, $attendances);
        $pdf->output();
        return $pdf->stream('attendances');
    }
public function allToPdf ( ) { $ attendances = $ this -> repository -> all ( ) ; $ pdf = \ App :: make ( 'dompdf.wrapper' ) ; $ view = \ View :: make ( 'attendance::pdf.attendances' ) -> with ( 'attendances' , $ attendances ) -> render ( ) ; $ pdf -> loadHTML ( $ view , $ attendances ) ; $ pdf -> output ( ) ; return $ pdf -> stream ( 'attendances' ) ; }
Convert all attendances to pdf
Convert all attendances to pdf