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

الأسعار

pricing-03

أربع بطاقات أسعار بمحاذاة البداية مع أيقونة وسعر وملاحظة سنوية وقائمة ميزات «تشمل» تحت فاصل وزر.

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

التثبيت

php artisan ui:add-block pricing-03

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

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

الاستخدام

Every piece of content is a prop, so you can drive this section from a CMS. A plan is ['name', 'price', 'period', 'note', 'features', 'buttonLabel', 'buttonHref', 'icon']. icon is an optional '<svg ...>' string; leave it out and the card shows the library mark.

<x-ui.blocks.pricing-03
    heading="Pick a plan"
    includes-label="Everything in the plan:"
    :plans="[
        [
            'name' => 'Starter',
            'price' => '$9',
            'period' => '/mo',
            'note' => 'or $90 yearly',
            'features' => ['3 seats', 'Email support'],
            'buttonHref' => '/register',
        ],
        [
            'name' => 'Team',
            'price' => '$29',
            'period' => '/mo',
            'note' => 'or $290 yearly',
            'features' => ['20 seats', 'Priority support', 'SSO'],
            'buttonHref' => '/register?plan=team',
        ],
    ]"
/>

الخصائص

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

@props([
    'tagline' => 'Tagline',
    'heading' => 'Pricing plan',
    'description' => 'Lorem ipsum dolor sit amet, consectetur adipiscing elit.',
    'includesLabel' => 'Includes:',
    'plans' => [
        [
            'name' => 'Free plan',
            'price' => '$0',
            'period' => '/mo',
            'note' => 'or $0 yearly',
            'features' => ['Feature text goes here', 'Feature text goes here', 'Feature text goes here'],
            'buttonLabel' => 'Get started',
            'buttonHref' => null,
        ],
        [
            'name' => 'Basic plan',
            'price' => '$19',
            'period' => '/mo',
            'note' => 'or $199 yearly',
            'features' => ['Feature text goes here', 'Feature text goes here', 'Feature text goes here'],
            'buttonLabel' => 'Get started',
            'buttonHref' => null,
        ],
        [
            'name' => 'Business plan',
            'price' => '$29',
            'period' => '/mo',
            'note' => 'or $299 yearly',
            'features' => [
                'Feature text goes here',
                'Feature text goes here',
                'Feature text goes here',
                'Feature text goes here',
            ],
            'buttonLabel' => 'Get started',
            'buttonHref' => null,
        ],
        [
            'name' => 'Enterprise plan',
            'price' => '$49',
            'period' => '/mo',
            'note' => 'or $499 yearly',
            'features' => [
                'Feature text goes here',
                'Feature text goes here',
                'Feature text goes here',
                'Feature text goes here',
                'Feature text goes here',
            ],
            'buttonLabel' => 'Get started',
            'buttonHref' => null,
        ],
    ],
])