mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/portal.git
synced 2026-08-27 00:14:16 +00:00
Orders APIs WIP
This commit is contained in:
@@ -5,6 +5,7 @@ namespace App\Http\Resources;
|
||||
|
||||
use App\Models\Company;
|
||||
use App\Models\Currency;
|
||||
use App\Models\OrderStep;
|
||||
use App\Models\SegmentConstant;
|
||||
use Illuminate\Http\Resources\Json\JsonResource;
|
||||
|
||||
@@ -24,9 +25,9 @@ class OrderResource extends JsonResource
|
||||
'reference_contract' => (int) $this->type,
|
||||
'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()),
|
||||
|
||||
'order_steps' => OrderStepsResource::collection($this->orderSteps()->get()),
|
||||
];
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user