انتقل إلى المحتوى
الأدلة
التنقل
التنبيهات
الطبقات العائمة
التخطيط
عرض البيانات
النماذج
.md

الأسعار

pricing-10

بطاقتا خطة مع أيقونة وسعر وقائمة ميزات من عمودين، مع تبويبات شهري / سنوي بجوار عنوان محاذى إلى البداية.

فتح بملء الشاشة

التثبيت

php artisan ui:add-block pricing-10

أمر واحد يثبّت ملف Blade الخاص بالقالب وكل مكوّن يعتمد عليه. اعرضه في تخطيطك كالتالي <x-ui.blocks.pricing-10 />.

المكونات المضمّنة

الاستخدام

Every piece of content is a prop, so you can drive this section from a CMS. Each plan carries a monthly price (price + period) and a yearly one (yearlyPrice + yearlyPeriod); the Monthly / Yearly tabs swap between them. Pass 'icon' => '<svg ...>' on a plan to replace the default logo tile.

<x-ui.blocks.pricing-10
    tagline="Pricing"
    heading="Simple plans for every team"
    description="Start free, upgrade when you need more seats."
    monthly-label="Monthly"
    yearly-label="Yearly"
    :plans="[
        [
            'name' => 'Starter',
            'description' => 'For side projects',
            'price' => '$9',
            'period' => '/mo',
            'yearlyPrice' => '$90',
            'yearlyPeriod' => '/yr',
            'features' => ['3 projects', 'Email support'],
            'buttonLabel' => 'Start free',
            'buttonHref' => '/register',
        ],
        [
            'name' => 'Team',
            'description' => 'For growing teams',
            'price' => '$29',
            'period' => '/mo',
            'yearlyPrice' => '$290',
            'yearlyPeriod' => '/yr',
            'features' => ['Unlimited projects', 'Priority support'],
            'buttonLabel' => 'Choose Team',
            'buttonHref' => '/register?plan=team',
        ],
    ]"
/>

الخصائص

كل خاصية مع قيمتها الافتراضية. مرّر أيًّا منها كسمة، واستخدم : لربط قيمة PHP.

@props([
    'tagline' => 'Tagline',
    'heading' => 'Pricing plan',
    'description' => 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse varius enim in eros elementum tristique.',
    'monthlyLabel' => 'Monthly',
    'yearlyLabel' => 'Yearly',
    'includesLabel' => 'Includes:',
    'plans' => [
        [
            'name' => 'Basic plan',
            'description' => 'Lorem ipsum dolor sit amet',
            'price' => '$19',
            'period' => '/mo',
            'yearlyPrice' => '$199',
            'yearlyPeriod' => '/yr',
            'features' => array_fill(0, 6, 'Feature text goes here'),
            'buttonLabel' => 'Get started',
            'buttonHref' => null,
        ],
        [
            'name' => 'Business plan',
            'description' => 'Lorem ipsum dolor sit amet',
            'price' => '$29',
            'period' => '/mo',
            'yearlyPrice' => '$299',
            'yearlyPeriod' => '/yr',
            'features' => array_fill(0, 10, 'Feature text goes here'),
            'buttonLabel' => 'Get started',
            'buttonHref' => null,
        ],
    ],
])