/**
  * Preview before printing a record.
  *
  * @param  int  $id
  * @return \Illuminate\Http\Response
  */
 public function preview($id)
 {
     $record = Confirmation::find($id);
     $data = array('title' => 'Confirmation', 'parish_name' => $record->parish->parish_name, 'parish_address' => $record->parish->parish_address, 'parish_priest' => $record->parish->parish_priest, 'parish_secretary' => $record->parish->parish_secretary, 'id' => $id, 'date_of_confirmation' => $record->date_of_confirmation, 'last_name' => $record->last_name, 'first_name' => $record->first_name, 'middle_name' => $record->middle_name, 'name_of_father' => $record->name_of_father, 'name_of_mother' => $record->name_of_mother, 'sponsors' => $record->sponsors, 'minister' => $record->minister, 'remarks' => $record->remarks, 'book_no' => $record->book_no, 'page_no' => $record->page_no, 'line_no' => $record->line_no);
     return view('confirmation.preview')->with($data);
 }
 /**
  * Display a listing of the resource.
  *
  * @return \Illuminate\Http\Response
  */
 public function index()
 {
     $data = array('title' => 'Dashboard', 'baptism_count' => Baptism::all()->count(), 'confirmation_count' => Confirmation::all()->count(), 'marriage_count' => Marriage::all()->count(), 'burial_count' => Burial::all()->count());
     return view('dashboard')->with($data);
 }