temporary direct print before php gd work
This commit is contained in:
@@ -255,10 +255,13 @@ class BayaranController extends Controller
|
||||
$gadai = $gadai_details[0][0];
|
||||
|
||||
// Load a view and pass data to it
|
||||
$pdf = PDF::loadView('pembayaran.resit.resitpdf', compact('customer_details', 'payment_details', 'cawangan_detail', 'nama_cawangan', 'gadai'));
|
||||
if($request->jenis == 'pdf'){
|
||||
$pdf = PDF::loadView('pembayaran.resit.resitpdf', compact('customer_details', 'payment_details', 'cawangan_detail', 'nama_cawangan', 'gadai'));
|
||||
return $pdf->stream('resit_pembayaran.pdf');
|
||||
}else{
|
||||
return view('pembayaran.resit.resitpdf', compact('customer_details', 'payment_details', 'cawangan_detail', 'nama_cawangan', 'gadai'));
|
||||
}
|
||||
|
||||
// Return the generated PDF (inline display in browser)
|
||||
return $pdf->stream('resit_pembayaran.pdf');
|
||||
}
|
||||
|
||||
public function callback(Request $request)
|
||||
|
||||
Reference in New Issue
Block a user