General fixes to table design, added state and district seeder for china, made changes to create order process, and ui and vue js components changes for registration, dashboard and registration

This commit is contained in:
omair saleh
2021-08-14 09:28:36 +08:00
parent dda0cf0b02
commit 8c4bac81e6
46 changed files with 1302 additions and 704 deletions
+2 -3
View File
@@ -27,9 +27,8 @@ class OrderResource extends JsonResource
'type' => (int) $this->type,
'status' => (int) $this->status,
'current_step' => $this->current_step,
'company' => new CompanyResource(Company::where('id',$this->companyModule()->first()->company_id)->first()),
'address' => new AddressResource($this->when($this->has('addresses'), $this->addresses->where('owner_id', $this->id)->first())),
'order_steps' => OrderStepResource::collection($this->orderSteps()->get()),
'company' => new CompanyResource($this->companyModule->company),
'address' => new AddressResource($this->address)
];
}
}