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');
    }