mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/izyim.git
synced 2026-08-28 17:03:57 +00:00
large commit
This commit is contained in:
@@ -74,7 +74,12 @@ class OrderController extends Controller
|
||||
|
||||
public function print(String $orderId){
|
||||
$order = order::findOrFail($orderId);
|
||||
return $this->pdf->loadView('pages.pdf.qr', $order)->stream();
|
||||
$data = [
|
||||
'order' => $order,
|
||||
'company' => Company::findOrFail($order->company_id),
|
||||
'delivery_address' => AddressBook::where('id', $order->address_id)->first()
|
||||
];
|
||||
return $this->pdf->loadView('pages.pdf.qr', compact('data'))->stream();
|
||||
}
|
||||
|
||||
public function download(String $orderId, String $type){
|
||||
|
||||
Reference in New Issue
Block a user