feat: Implement payment proof upload for orders, add payment method selection API, and seed bank transfer payment options.
This commit is contained in:
@@ -13,6 +13,10 @@ class ProductResource extends JsonResource
|
||||
return $this->pricings->min('price');
|
||||
});
|
||||
|
||||
$osIds = $this->whenLoaded('operatingSystems', function () {
|
||||
return $this->operatingSystems->pluck('id')->toArray();
|
||||
});
|
||||
|
||||
return [
|
||||
'id' => $this->id,
|
||||
'uuid' => $this->uuid,
|
||||
@@ -30,6 +34,7 @@ class ProductResource extends JsonResource
|
||||
'min_price' => $minPrice,
|
||||
'is_active' => $this->is_active,
|
||||
'created_at' => $this->created_at,
|
||||
'os_ids' => $osIds,
|
||||
];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user