This commit is contained in:
Mathieu Lagace
2019-09-11 06:57:45 -04:00
parent 133f430445
commit 04dd5ee6b7
4 changed files with 205 additions and 224 deletions

View File

@@ -196,7 +196,8 @@ class ScheduleController extends Controller
public function printtopdf($id)
{
$event = \App\Event::find($id);
$pdf = PDF::loadView('admin.schedule.print.event',['event' => $event]);
//return view('admin.schedule.print.event',['event' => $event]);
$pdf = PDF::loadView('admin.schedule.print.event',['event' => $event])->setPaper('8.5x11', 'landscape');
return $pdf->download($event->date_begin.'.pdf');
}