39496-vm/pricing.php
2026-04-06 04:21:26 +00:00

55 lines
3.0 KiB
PHP

<?php
require_once __DIR__ . '/includes/app.php';
$plans = plans_catalog();
render_head(
t('Subscription plans', 'خطط الاشتراك'),
t('Compare plan-based access for students, teachers, and live classrooms.', 'قارن بين الوصول المعتمد على الخطط للطلاب والمعلمين والفصول المباشرة.')
);
render_nav('pricing.php');
?>
<main class="py-5">
<div class="container">
<div class="section-header mb-4">
<div>
<span class="eyebrow"><?= h(t('Pricing', 'التسعير')) ?></span>
<h1 class="section-title mb-2"><?= h(t('Choose the plan that unlocks your classroom experience', 'اختر الخطة التي تفتح تجربة الفصل لديك')) ?></h1>
<p class="text-secondary mb-0"><?= h(t('Plan-based subscriptions work across the entire marketplace, with bilingual delivery and live sessions included.', 'تعمل الاشتراكات المعتمدة على الخطط عبر المنصة كاملة مع تقديم ثنائي اللغة وجلسات مباشرة مشمولة.')) ?></p>
</div>
<div class="integration-rail">
<span class="mini-tag">Thawani</span>
<span class="mini-tag">Wablas</span>
<span class="mini-tag">Google Meet</span>
</div>
</div>
<div class="row g-3">
<?php foreach ($plans as $plan): ?>
<div class="col-lg-4">
<div class="plan-card h-100 <?= $plan['key'] === 'plus' ? 'highlighted' : '' ?>">
<div class="d-flex justify-content-between align-items-start mb-3">
<div>
<h2 class="h5 mb-1"><?= h(plan_name($plan)) ?></h2>
<p class="small text-secondary mb-0"><?= h(t('Shared marketplace access', 'وصول إلى منصة مشتركة')) ?></p>
</div>
<?php if ($plan['key'] === 'plus'): ?><span class="mini-tag"><?= h(t('Best fit', 'الأفضل')) ?></span><?php endif; ?>
</div>
<div class="pricing-grid mb-3">
<div><strong><?= h(price_label($plan, 'monthly')) ?></strong><span><?= h(t('Monthly', 'شهري')) ?></span></div>
<div><strong><?= h(price_label($plan, 'yearly')) ?></strong><span><?= h(t('Yearly', 'سنوي')) ?></span></div>
</div>
<ul class="list-unstyled compact-list mb-4">
<?php foreach (current_lang() === 'ar' ? $plan['features_ar'] : $plan['features_en'] as $feature): ?>
<li><?= h($feature) ?></li>
<?php endforeach; ?>
</ul>
<div class="d-grid gap-2">
<a class="btn btn-dark" href="<?= h(app_url('checkout.php', ['plan' => $plan['key'], 'cycle' => 'monthly'])) ?>"><?= h(t('Start monthly', 'ابدأ شهرياً')) ?></a>
<a class="btn btn-outline-dark" href="<?= h(app_url('checkout.php', ['plan' => $plan['key'], 'cycle' => 'yearly'])) ?>"><?= h(t('Start yearly', 'ابدأ سنوياً')) ?></a>
</div>
</div>
</div>
<?php endforeach; ?>
</div>
</div>
</main>
<?php render_footer(); ?>