# Investment Page API Documentation

## Endpoint

```
GET /api/website/investment-page
```

**Headers:**
| Header | Value | Description |
|--------|-------|-------------|
| Accept-Language | `ar` or `en` | Controls the response language |

---

## Response Structure

```json
{
  "status": true,
  "message": "...",
  "data": {
    "section": {},
    "banners": [],
    "about_investment": {},
    "investment_cards": [],
    "advantages_section": {},
    "advantages": [],
    "partners_section": {},
    "partners": []
  }
}
```

---

## Sections Breakdown

### 1. `section` — Page Header

The main header of the investment page ("استثمارنا").

```json
{
  "title": "استثمارنا",
  "description": "نقدم لكم فرصة استثمارية مبتكرة ومريحة"
}
```

---

### 2. `banners` — Full-width Banners (3 banners)

Large image banners with title and description, sorted by `order`.

```json
[
  {
    "id": 1,
    "order": 1,
    "media": ["https://domain.com/storage/images/investment_banners/banner1.jpg"],
    "title": "ساطع..",
    "description": "استثمار يتحرك مع الطلب"
  },
  {
    "id": 2,
    "order": 2,
    "media": ["https://domain.com/storage/images/investment_banners/banner2.jpg"],
    "title": "الزكاة علينا..",
    "description": "وراحة البال عليك"
  },
  {
    "id": 3,
    "order": 3,
    "media": ["https://domain.com/storage/images/investment_banners/banner3.jpg"],
    "title": "استثمار ساطع",
    "description": "لا يؤثر على خدماتك.."
  }
]
```

**Design:** Each banner is a full-width image with text overlay (title + description).

---

### 3. `about_investment` — About Investment Section

Section with title and description for "عن فرصة الاستثمار".

```json
{
  "title": "عن فرصة الاستثمار",
  "description": "تتيح شركة ساطع فرصة الاستثمار في أسطول الغسيل المتنقل من خلال نموذج تشغيلي واضح..."
}
```

**Design:** Centered text block (title + paragraph).

---

### 4. `investment_cards` — Investment Stats Cards

Cards showing investment stats/numbers, sorted by `order`.

```json
[
  {
    "id": 1,
    "order": 1,
    "media": [],
    "title": "2 مليون",
    "description": "الحد الأعلى للاستثمار في ساطع"
  },
  {
    "id": 2,
    "order": 2,
    "title": "3 أشهر",
    "description": "من تاريخ تحويل الاستثمار تبدأ العوائد الشهرية وفقاً للعقد وآلية التشغيل"
  },
  {
    "id": 3,
    "order": 3,
    "title": "5 سنوات",
    "description": "مدة العقد الاستثماري"
  },
  {
    "id": 4,
    "order": 4,
    "title": "10,000",
    "description": "الحد الأدنى للاستثمار في ساطع"
  },
  {
    "id": 5,
    "order": 5,
    "title": "%100",
    "description": "شركة سعودية مملوكة ومدارة بكوادر وطنية"
  }
]
```

**Design:** Cards in a grid/timeline layout. The title is the big number/stat, description below it.

---

### 5. `advantages_section` — Advantages Section Header

```json
{
  "title": "لماذا يختار المستثمرون ساطع؟",
  "description": "نحن نؤمن بأن نجاح مستثمرينا هو نجاح لشركتنا. لذلك أسسنا نموذج يرتكز على ثلاث ركائز أساسية:"
}
```

---

### 6. `advantages` — Advantage Cards (3 cards)

Cards with icon/image, title, and description.

```json
[
  {
    "id": 1,
    "media": ["https://domain.com/storage/images/advantages/icon1.png"],
    "title": "نموذج تشغيلي ملموس",
    "description": "خدمة متكاملة تصل للعميل أينماكان.. مما يجعل الطلب مستمراً طوال العام."
  },
  {
    "id": 2,
    "media": ["https://domain.com/storage/images/advantages/icon2.png"],
    "title": "إدارة احترافية",
    "description": "أسطول متكامل.. فرق عمل مدربة، ونظام جدولة ذكي يضمن أعلى مستويات الإنتاجية."
  },
  {
    "id": 3,
    "media": ["https://domain.com/storage/images/advantages/icon3.png"],
    "title": "الشفافية والالتزام",
    "description": "التزامنا بالشفافية يبدأ من تقارير الأداء وصولاً إلى إخراج الزكاة عن أرباح المستثمرين لضمان راحة بالكم."
  }
]
```

**Design:** 3 cards in a row. Each has an icon on top, title below, then description text.

---

### 7. `partners_section` — Partners Section Header

```json
{
  "title": "شركاء نجاح نعتز بهم",
  "description": "نفتخر في ساطع بثقة شركائنا.. بما يعكس جودة الخدمة وقوة التشغيل وبناء علاقات ناجحة مع العملاء وشركاء النجاح."
}
```

---

### 8. `partners` — Partner Logos

```json
[
  {
    "id": 1,
    "media": ["https://domain.com/storage/images/partners/aramco.png"],
    "title": "أرامكو السعودية"
  },
  {
    "id": 2,
    "media": ["https://domain.com/storage/images/partners/rajhi.png"],
    "title": "مصرف الراجحي"
  }
]
```

**Design:** Logo grid (2 rows x 3 columns or responsive).

---

## Page Layout Order (Top to Bottom)

1. **Section Header** — "استثمارنا" + subtitle
2. **Banner 1** — Full-width image with text overlay
3. **About Investment** — Centered title + paragraph
4. **Investment Cards** — Stats grid/timeline
5. **Banner 2** — Full-width image with text overlay
6. **Advantages Section** — Title + subtitle + 3 cards with icons
7. **Partners Section** — Title + subtitle + logo grid
8. **Banner 3** — Full-width image with text overlay

> Note: The banners array is returned sorted by `order`. The frontend decides where to place each banner in the layout.

---

## Notes

- All text fields are locale-aware. Send `Accept-Language: ar` or `Accept-Language: en` header.
- Media URLs are absolute (ready to use as `src`).
- If a section doesn't exist yet in the database, it will return `null`.
- The `investment_cards` and `banners` are sorted by their `order` field.
