Deploy on 2026-06-05 17:47:27
This commit is contained in:
@@ -1,11 +1,32 @@
|
||||
<?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'];
|
||||
?>
|
||||
<div class="page-header">
|
||||
<div>
|
||||
<h1><?= $this->escape($org['name']) ?></h1>
|
||||
<p><?= $this->escape(ucfirst($org['type'])) ?> • <?= $this->escape($org['country'] ?? 'Unknown location') ?></p>
|
||||
<p><?= $this->escape($transType) ?> • <?= $this->escape($org['country'] ?? 'موقع غير محدد') ?></p>
|
||||
</div>
|
||||
<div style="display: flex; gap: 10px;">
|
||||
<a href="/admin/organizations/<?= $org['id'] ?>/edit" class="btn btn-secondary">Edit</a>
|
||||
<a href="/admin/contacts/create?organization_id=<?= $org['id'] ?>" class="btn btn-primary">+ Add Contact</a>
|
||||
<a href="/admin/organizations/<?= $org['id'] ?>/edit" class="btn btn-secondary">تعديل</a>
|
||||
<a href="/admin/contacts/create?organization_id=<?= $org['id'] ?>" class="btn btn-primary">+ إضافة جهة اتصال</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -16,55 +37,70 @@
|
||||
<div class="detail-grid">
|
||||
<!-- Left: Details -->
|
||||
<div class="glass-panel">
|
||||
<h3 style="margin-bottom: 20px;">Details</h3>
|
||||
<h3 style="margin-bottom: 20px;">التفاصيل</h3>
|
||||
<div class="detail-row">
|
||||
<span class="detail-label">Domain</span>
|
||||
<span class="detail-label">النطاق</span>
|
||||
<span><?= $org['domain'] ? $this->escape($org['domain']) : '-' ?></span>
|
||||
</div>
|
||||
<div class="detail-row">
|
||||
<span class="detail-label">Website</span>
|
||||
<span class="detail-label">الموقع الإلكتروني</span>
|
||||
<span><?= $org['website_url'] ? '<a href="' . $this->escape($org['website_url']) . '" target="_blank">' . $this->escape($org['website_url']) . '</a>' : '-' ?></span>
|
||||
</div>
|
||||
<div class="detail-row">
|
||||
<span class="detail-label">Country</span>
|
||||
<span class="detail-label">الدولة</span>
|
||||
<span><?= $this->escape($org['country'] ?? '-') ?></span>
|
||||
</div>
|
||||
<div class="detail-row">
|
||||
<span class="detail-label">City</span>
|
||||
<span class="detail-label">المدينة</span>
|
||||
<span><?= $this->escape($org['city'] ?? '-') ?></span>
|
||||
</div>
|
||||
<div class="detail-row">
|
||||
<span class="detail-label">CRM Status</span>
|
||||
<span><span class="badge badge-status-<?= strtolower(str_replace(' ', '-', $org['crm_status'])) ?>"><?= $this->escape($org['crm_status']) ?></span></span>
|
||||
<span class="detail-label">الحالة في CRM</span>
|
||||
<span><span class="badge badge-status-<?= strtolower(str_replace(' ', '-', $org['crm_status'])) ?>"><?= $this->escape($transCrmStatus) ?></span></span>
|
||||
</div>
|
||||
<div class="detail-row">
|
||||
<span class="detail-label">Funding Stage</span>
|
||||
<span class="detail-label">مرحلة التمويل</span>
|
||||
<span><?= $this->escape($org['funding_stage'] ?? '-') ?></span>
|
||||
</div>
|
||||
<div class="detail-row">
|
||||
<span class="detail-label">Created</span>
|
||||
<span><?= date('M j, Y', strtotime($org['created_at'])) ?></span>
|
||||
<span class="detail-label">تاريخ الإضافة</span>
|
||||
<span><?= date('Y-m-d', strtotime($org['created_at'])) ?></span>
|
||||
</div>
|
||||
<div class="detail-row" style="flex-direction: column; align-items: flex-start;">
|
||||
<span class="detail-label">Description</span>
|
||||
<p style="margin-top: 8px; line-height: 1.6;"><?= $this->escape($org['description'] ?? 'No description') ?></p>
|
||||
<span class="detail-label">الوصف</span>
|
||||
<p style="margin-top: 8px; line-height: 1.6; text-align: justify;"><?= $this->escape($org['description'] ?? 'لا يوجد وصف حالياً') ?></p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Right: Opportunities & Contacts -->
|
||||
<div>
|
||||
<div class="glass-panel" style="margin-bottom: 20px;">
|
||||
<h3 style="margin-bottom: 16px;">Opportunities (<?= count($opportunities) ?>)</h3>
|
||||
<h3 style="margin-bottom: 16px;">الفرص المرتبطة (<?= count($opportunities) ?>)</h3>
|
||||
<?php if (empty($opportunities)): ?>
|
||||
<p style="color: var(--text-muted);">No opportunities linked to this organization yet.</p>
|
||||
<p style="color: var(--text-muted);">لا توجد فرص مرتبطة بهذه المنظمة حتى الآن.</p>
|
||||
<?php else: ?>
|
||||
<?php foreach ($opportunities as $opp): ?>
|
||||
<?php
|
||||
$oppTrans = [
|
||||
'grant' => 'المنح',
|
||||
'competition' => 'المسابقات',
|
||||
'demo_day' => 'أيام العروض',
|
||||
'event' => 'الفعاليات',
|
||||
'partnership' => 'الشراكات',
|
||||
'investment' => 'الاستثمارات',
|
||||
'other' => 'أخرى',
|
||||
'vc_funding' => 'تمويل رأس مال جريء',
|
||||
'accelerator' => 'مسرعة أعمال',
|
||||
'incubator' => 'حاضنة أعمال'
|
||||
];
|
||||
$transOppType = $oppTrans[$opp['type']] ?? $opp['type'];
|
||||
?>
|
||||
<div class="list-item">
|
||||
<div>
|
||||
<a href="/admin/opportunities/<?= $opp['id'] ?>" style="font-weight: 600;"><?= $this->escape($opp['title']) ?></a>
|
||||
<div style="display: flex; gap: 8px; margin-top: 6px;">
|
||||
<span class="badge badge-type-<?= $opp['type'] ?>"><?= $this->escape($opp['type']) ?></span>
|
||||
<span class="badge" style="background: rgba(251, 191, 36, 0.2); color: #fbbf24;">Score: <?= $opp['score'] ?></span>
|
||||
<span class="badge badge-type-<?= $opp['type'] ?>"><?= $this->escape($transOppType) ?></span>
|
||||
<span class="badge" style="background: rgba(251, 191, 36, 0.2); color: #fbbf24;">التقييم: <?= $opp['score'] ?>/100</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -73,9 +109,9 @@
|
||||
</div>
|
||||
|
||||
<div class="glass-panel">
|
||||
<h3 style="margin-bottom: 16px;">Contacts (<?= count($contacts) ?>)</h3>
|
||||
<h3 style="margin-bottom: 16px;">جهات الاتصال (<?= count($contacts) ?>)</h3>
|
||||
<?php if (empty($contacts)): ?>
|
||||
<p style="color: var(--text-muted);">No contacts added yet.</p>
|
||||
<p style="color: var(--text-muted);">لم يتم إضافة جهات اتصال بعد.</p>
|
||||
<?php else: ?>
|
||||
<?php foreach ($contacts as $contact): ?>
|
||||
<div class="list-item">
|
||||
@@ -104,5 +140,19 @@
|
||||
.badge-type-investment { background: rgba(139, 92, 246, 0.2); color: #a78bfa; }
|
||||
.badge-type-event { background: rgba(56, 189, 248, 0.2); color: #38bdf8; }
|
||||
.badge-type-partnership { background: rgba(167, 139, 250, 0.2); color: #c4b5fd; }
|
||||
.badge-type-vc_funding { background: rgba(139, 92, 246, 0.2); color: #a78bfa; }
|
||||
.badge-type-accelerator { background: rgba(251, 191, 36, 0.2); color: #fbbf24; }
|
||||
.badge-type-incubator { background: rgba(52, 211, 153, 0.2); color: #34d399; }
|
||||
.badge-vc { background: rgba(139, 92, 246, 0.2); color: #a78bfa; }
|
||||
.badge-angel { background: rgba(251, 191, 36, 0.2); color: #fbbf24; }
|
||||
.badge-accelerator { background: rgba(52, 211, 153, 0.2); color: #34d399; }
|
||||
.badge-incubator { background: rgba(56, 189, 248, 0.2); color: #38bdf8; }
|
||||
.badge-venture_studio { background: rgba(248, 113, 113, 0.2); color: #f87171; }
|
||||
.badge-partner { background: rgba(167, 139, 250, 0.2); color: #a78bfa; }
|
||||
.badge-status-new { background: rgba(96, 165, 250, 0.2); color: #60a5fa; }
|
||||
.badge-status-researching { background: rgba(251, 191, 36, 0.2); color: #fbbf24; }
|
||||
.badge-status-contacted { background: rgba(52, 211, 153, 0.2); color: #34d399; }
|
||||
.badge-status-invested { background: rgba(34, 197, 94, 0.2); color: #22c55e; }
|
||||
.badge-status-rejected { background: rgba(239, 68, 68, 0.2); color: #ef4444; }
|
||||
@media (max-width: 768px) { .detail-grid { grid-template-columns: 1fr; } }
|
||||
</style>
|
||||
Reference in New Issue
Block a user