mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/portal.git
synced 2026-08-19 04:23:59 +00:00
big commit
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user