change to pdf
This commit is contained in:
@@ -91,10 +91,10 @@ class ProfileController extends Controller
|
||||
// dd($gadai_details);
|
||||
|
||||
|
||||
return view('print.surat_wakil', compact('customer_detail', 'current', 'kodcaw', 'api_url', 'cawangan_detail', 'tarikh_cetak', 'gadai_details', 'noic', 'nosiri'));
|
||||
// $pdf = PDF::loadView('print.surat_wakil', compact('customer_detail', 'current', 'kodcaw', 'api_url', 'cawangan_detail', 'tarikh_cetak', 'gadai_details', 'noic', 'nosiri'))
|
||||
// ->setPaper('a4', 'potrait');
|
||||
// return $pdf->download('Surat Wakil.pdf');
|
||||
// return view('print.surat_wakil', compact('customer_detail', 'current', 'kodcaw', 'api_url', 'cawangan_detail', 'tarikh_cetak', 'gadai_details', 'noic', 'nosiri'));
|
||||
$pdf = PDF::loadView('print.surat_wakil', compact('customer_detail', 'current', 'kodcaw', 'api_url', 'cawangan_detail', 'tarikh_cetak', 'gadai_details', 'noic', 'nosiri'))
|
||||
->setPaper('a4', 'potrait');
|
||||
return $pdf->download('Surat Wakil.pdf');
|
||||
} else {
|
||||
|
||||
// insert into wakil_surat
|
||||
@@ -145,10 +145,10 @@ class ProfileController extends Controller
|
||||
// ->setPaper('A4','potrait');
|
||||
// return $pdf->download('notislelong_'.'.pdf');
|
||||
|
||||
return view('print.surat_wakil', compact('customer_detail', 'current', 'kodcaw', 'api_url', 'cawangan_detail', 'tarikh_cetak', 'gadai_details', 'noic', 'nosiri'));
|
||||
// $pdf = PDF::loadView('print.surat_wakil', compact('customer_detail', 'current', 'kodcaw', 'api_url', 'cawangan_detail', 'tarikh_cetak', 'gadai_details', 'noic', 'nosiri'))
|
||||
// ->setPaper('a4', 'potrait');
|
||||
// return $pdf->download('Surat Wakil.pdf');
|
||||
// return view('print.surat_wakil', compact('customer_detail', 'current', 'kodcaw', 'api_url', 'cawangan_detail', 'tarikh_cetak', 'gadai_details', 'noic', 'nosiri'));
|
||||
$pdf = PDF::loadView('print.surat_wakil', compact('customer_detail', 'current', 'kodcaw', 'api_url', 'cawangan_detail', 'tarikh_cetak', 'gadai_details', 'noic', 'nosiri'))
|
||||
->setPaper('a4', 'potrait');
|
||||
return $pdf->download('Surat Wakil.pdf');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user