big commit

This commit is contained in:
omair saleh
2021-03-22 09:01:37 +08:00
parent 9fe0757baf
commit 0ab56b77c4
+1 -1
View File
@@ -23,7 +23,7 @@ class CompanyResource extends JsonResource
'marking' => CompanyConnections::where('module_one', $this->modules->first()->id)->first()->marking, 'marking' => CompanyConnections::where('module_one', $this->modules->first()->id)->first()->marking,
'name' => $this->name, 'name' => $this->name,
'type' => $this->type, 'type' => $this->type,
'status' => $this->status, 'status' => (int) $this->status,
'delivery_address' => new AddressResource($this->deliveryAddress), 'delivery_address' => new AddressResource($this->deliveryAddress),
'contact' => new ContactResource($this->contacts->first()), 'contact' => new ContactResource($this->contacts->first()),
'total_orders' => count($this->orders) 'total_orders' => count($this->orders)