large commit

This commit is contained in:
Omair Saleh
2019-10-07 14:52:36 +08:00
parent 75b4104ef1
commit cfaddfde32
@@ -75,8 +75,7 @@ class OrderController extends Controller
public function download(String $orderId, String $type){
$order = order::findOrFail($orderId);
$warehouse = OrderWarehouse::where('order_id', $orderId)->firstOrFail();
dd($warehouse->id);
$warehouseAddress = AddressBook::where('type', 2)->where('reference_id', $warehouse->id)->firstOrFail();
$warehouseAddress = AddressBook::where('type', 2)->where('reference_id', $warehouse->warehouse_id)->firstOrFail();
$warehouseContact = Contact::where('type', 2)->where('reference_id', $warehouse->id)->get();
$data = [