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

الأسعار

pricing-14

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

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

التثبيت

php artisan ui:add-block pricing-14

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

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

الاستخدام

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-14
    tagline="Pricing"
    heading="Plans that grow with you"
    description="Every plan includes a 14-day free trial."
    monthly-label="Monthly"
    yearly-label="Yearly"
    includes-label="What you get:"
    :plans="[
        [
            'name' => 'Starter',
            'price' => '$9',
            'period' => '/mo',
            'yearlyPrice' => '$90',
            'yearlyPeriod' => '/yr',
            'features' => ['3 projects', 'Email support'],
            'buttonLabel' => 'Start free',
            'buttonHref' => '/register',
        ],
    ]"
/>

الخصائص

كل خاصية مع قيمتها الافتراضية. مرّر أيًّا منها كسمة، واستخدم : لربط قيمة 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',
            'price' => '$19',
            'period' => '/mo',
            'yearlyPrice' => '$199',
            'yearlyPeriod' => '/yr',
            'features' => array_fill(0, 3, 'Feature text goes here'),
            'buttonLabel' => 'Get started',
            'buttonHref' => null,
        ],
        [
            'name' => 'Business plan',
            'price' => '$29',
            'period' => '/mo',
            'yearlyPrice' => '$299',
            'yearlyPeriod' => '/yr',
            'features' => array_fill(0, 4, 'Feature text goes here'),
            'buttonLabel' => 'Get started',
            'buttonHref' => null,
        ],
        [
            'name' => 'Enterprise plan',
            'price' => '$49',
            'period' => '/mo',
            'yearlyPrice' => '$499',
            'yearlyPeriod' => '/yr',
            'features' => array_fill(0, 5, 'Feature text goes here'),
            'buttonLabel' => 'Get started',
            'buttonHref' => null,
        ],
    ],
])