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

الأسعار

pricing-12

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

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

التثبيت

php artisan ui:add-block pricing-12

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

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

الاستخدام

Every piece of content is a prop, so you can drive this section from a CMS. 'note' sits under the price (for example the yearly equivalent). Pass 'icon' => '<svg ...>' on a plan to replace the default logo tile.

<x-ui.blocks.pricing-12
    tagline="Pricing"
    heading="Plans that grow with you"
    description="Every plan includes a 14-day free trial."
    includes-label="What you get:"
    :plans="[
        [
            'name' => 'Starter',
            'price' => '$9',
            'period' => '/mo',
            'note' => 'or $90 yearly',
            '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.',
    'includesLabel' => 'Includes:',
    'plans' => [
        [
            'name' => 'Basic plan',
            'price' => '$19',
            'period' => '/mo',
            'note' => 'or $199 yearly',
            'features' => array_fill(0, 3, 'Feature text goes here'),
            'buttonLabel' => 'Get started',
            'buttonHref' => null,
        ],
        [
            'name' => 'Business plan',
            'price' => '$29',
            'period' => '/mo',
            'note' => 'or $299 yearly',
            'features' => array_fill(0, 4, 'Feature text goes here'),
            'buttonLabel' => 'Get started',
            'buttonHref' => null,
        ],
        [
            'name' => 'Enterprise plan',
            'price' => '$49',
            'period' => '/mo',
            'note' => 'or $499 yearly',
            'features' => array_fill(0, 5, 'Feature text goes here'),
            'buttonLabel' => 'Get started',
            'buttonHref' => null,
        ],
    ],
])