Deploy on 2026-06-05 17:47:27
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
<div class="page-header">
|
||||
<div>
|
||||
<h1>Organizations</h1>
|
||||
<p>Manage VCs, accelerators, incubators and investors</p>
|
||||
<h1>المنظمات والجهات الاستثمارية</h1>
|
||||
<p>إدارة صناديق الاستثمار، مسرعات الأعمال، الحاضنات والمستثمرين</p>
|
||||
</div>
|
||||
<a href="/admin/organizations/create" class="btn btn-primary">+ Add Organization</a>
|
||||
<a href="/admin/organizations/create" class="btn btn-primary">+ إضافة منظمة</a>
|
||||
</div>
|
||||
|
||||
<?php if ($flashSuccess = $this->session->getFlash('success')): ?>
|
||||
@@ -16,21 +16,33 @@
|
||||
<!-- Filters -->
|
||||
<div class="filters-bar">
|
||||
<form method="GET" class="filters-form">
|
||||
<input type="text" name="search" class="form-control" placeholder="Search organizations..." value="<?= $this->escape($search) ?>">
|
||||
<input type="text" name="search" class="form-control" placeholder="البحث عن المنظمات..." value="<?= $this->escape($search) ?>">
|
||||
<select name="type" class="form-control">
|
||||
<option value="">All Types</option>
|
||||
<?php foreach ($types as $t): ?>
|
||||
<option value="<?= $t ?>" <?= $type === $t ? 'selected' : '' ?>><?= ucfirst($t) ?></option>
|
||||
<option value="">جميع الأنواع</option>
|
||||
<?php foreach ($types as $t_key): ?>
|
||||
<?php
|
||||
$trans = [
|
||||
'vc' => 'رأس مال جريء',
|
||||
'angel' => 'مستثمر ملائكي',
|
||||
'accelerator' => 'مسرعة أعمال',
|
||||
'incubator' => 'حاضنة أعمال',
|
||||
'venture_studio' => 'استوديو مشاريع',
|
||||
'partner' => 'شريك',
|
||||
'other' => 'أخرى'
|
||||
];
|
||||
$transName = $trans[$t_key] ?? ucfirst($t_key);
|
||||
?>
|
||||
<option value="<?= $t_key ?>" <?= $type === $t_key ? 'selected' : '' ?>><?= $transName ?></option>
|
||||
<?php endforeach; ?>
|
||||
</select>
|
||||
<button type="submit" class="btn btn-secondary">Filter</button>
|
||||
<button type="submit" class="btn btn-secondary">تصفية</button>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<!-- Stats Summary -->
|
||||
<div class="metrics-grid" style="margin-bottom: 20px;">
|
||||
<div class="glass-panel metric-card">
|
||||
<span class="metric-title">Total Organizations</span>
|
||||
<span class="metric-title">إجمالي المنظمات والجهات</span>
|
||||
<span class="metric-value"><?= $total ?></span>
|
||||
</div>
|
||||
</div>
|
||||
@@ -40,20 +52,41 @@
|
||||
<table class="data-table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Name</th>
|
||||
<th>Type</th>
|
||||
<th>Country</th>
|
||||
<th>CRM Status</th>
|
||||
<th>Opportunities</th>
|
||||
<th>Updated</th>
|
||||
<th>Actions</th>
|
||||
<th>الاسم</th>
|
||||
<th>النوع</th>
|
||||
<th>الدولة</th>
|
||||
<th>حالة CRM</th>
|
||||
<th>الفرص المرتبطة</th>
|
||||
<th>آخر تحديث</th>
|
||||
<th>إجراءات</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php if (empty($organizations)): ?>
|
||||
<tr><td colspan="7" style="text-align: center; padding: 40px; color: var(--text-muted);">No organizations found. Run the collector or add one manually.</td></tr>
|
||||
<tr><td colspan="7" style="text-align: center; padding: 40px; color: var(--text-muted);">لا توجد منظمات أو جهات استثمارية حالياً. يرجى تشغيل جامع البيانات أو إضافة جهة يدوياً.</td></tr>
|
||||
<?php else: ?>
|
||||
<?php foreach ($organizations as $org): ?>
|
||||
<?php
|
||||
$trans = [
|
||||
'vc' => 'رأس مال جريء',
|
||||
'angel' => 'مستثمر ملائكي',
|
||||
'accelerator' => 'مسرعة أعمال',
|
||||
'incubator' => 'حاضنة أعمال',
|
||||
'venture_studio' => 'استوديو مشاريع',
|
||||
'partner' => 'شريك',
|
||||
'other' => 'أخرى'
|
||||
];
|
||||
$transType = $trans[$org['type']] ?? $org['type'];
|
||||
|
||||
$crmTrans = [
|
||||
'New' => 'جديد',
|
||||
'Researching' => 'قيد البحث',
|
||||
'Contacted' => 'تم التواصل',
|
||||
'Invested' => 'تم الاستثمار',
|
||||
'Rejected' => 'مرفوض'
|
||||
];
|
||||
$transCrmStatus = $crmTrans[$org['crm_status']] ?? $org['crm_status'];
|
||||
?>
|
||||
<tr>
|
||||
<td>
|
||||
<a href="/admin/organizations/<?= $org['id'] ?>" style="font-weight: 600;">
|
||||
@@ -63,15 +96,15 @@
|
||||
<br><small style="color: var(--text-muted);"><?= $this->escape($org['domain']) ?></small>
|
||||
<?php endif; ?>
|
||||
</td>
|
||||
<td><span class="badge badge-<?= $org['type'] ?>"><?= $this->escape($org['type']) ?></span></td>
|
||||
<td><span class="badge badge-<?= $org['type'] ?>"><?= $this->escape($transType) ?></span></td>
|
||||
<td><?= $this->escape($org['country'] ?? '-') ?></td>
|
||||
<td><span class="badge badge-status-<?= strtolower(str_replace(' ', '-', $org['crm_status'])) ?>"><?= $this->escape($org['crm_status']) ?></span></td>
|
||||
<td><span class="badge badge-status-<?= strtolower(str_replace(' ', '-', $org['crm_status'])) ?>"><?= $this->escape($transCrmStatus) ?></span></td>
|
||||
<td><?= $org['opportunities_count'] ?? 0 ?></td>
|
||||
<td><?= date('M j', strtotime($org['updated_at'])) ?></td>
|
||||
<td><?= date('Y-m-d', strtotime($org['updated_at'])) ?></td>
|
||||
<td>
|
||||
<a href="/admin/organizations/<?= $org['id'] ?>" class="btn btn-sm btn-secondary">View</a>
|
||||
<a href="/admin/organizations/<?= $org['id'] ?>/edit" class="btn btn-sm btn-secondary">Edit</a>
|
||||
<a href="/admin/contacts/create?organization_id=<?= $org['id'] ?>" class="btn btn-sm btn-secondary">+ Contact</a>
|
||||
<a href="/admin/organizations/<?= $org['id'] ?>" class="btn btn-sm btn-secondary">عرض</a>
|
||||
<a href="/admin/organizations/<?= $org['id'] ?>/edit" class="btn btn-sm btn-secondary">تعديل</a>
|
||||
<a href="/admin/contacts/create?organization_id=<?= $org['id'] ?>" class="btn btn-sm btn-secondary">+ جهة اتصال</a>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endforeach; ?>
|
||||
@@ -95,7 +128,7 @@
|
||||
.filters-form { display: flex; gap: 12px; flex-wrap: wrap; }
|
||||
.filters-form .form-control { min-width: 200px; }
|
||||
.data-table { width: 100%; border-collapse: collapse; }
|
||||
.data-table th, .data-table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid rgba(255,255,255,0.05); }
|
||||
.data-table th, .data-table td { padding: 12px 16px; border-bottom: 1px solid rgba(255,255,255,0.05); }
|
||||
.data-table th { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-muted); font-weight: 600; }
|
||||
.data-table tr:hover { background: rgba(255,255,255,0.02); }
|
||||
.badge { display: inline-block; padding: 4px 10px; border-radius: 12px; font-size: 0.78rem; font-weight: 600; }
|
||||
|
||||
Reference in New Issue
Block a user