feat: Implement payment proof upload for orders, add payment method selection API, and seed bank transfer payment options.

This commit is contained in:
pbao9
2026-03-11 16:57:26 +07:00
parent 74cbe2fe1a
commit 7f6264c87f
19 changed files with 706 additions and 49 deletions
@@ -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,
];
}