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

الأسعار

pricing-07

بطاقتا أسعار: اسم الخطة ووصفها، السعر والملاحظة السنوية، زر، ثم قائمة ميزات بعلامات صح تحت فاصل.

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

التثبيت

php artisan ui:add-block pricing-07

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

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

الاستخدام

Every piece of content is a prop, so you can drive this section from a CMS. A plan is ['name', 'description', 'price', 'period', 'note', 'features', 'buttonLabel', 'buttonHref']. Leave buttonHref out and the button stays a plain button.

<x-ui.blocks.pricing-07
    heading="Simple pricing"
    :plans="[
        [
            'name' => 'Solo',
            'description' => 'For one person',
            'price' => '$9',
            'period' => '/mo',
            'note' => 'or $90 yearly',
            'features' => ['1 seat', 'Email support'],
            'buttonHref' => '/register',
        ],
        [
            'name' => 'Team',
            'description' => 'For growing teams',
            '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.',
    'plans' => [
        [
            'name' => 'Basic plan',
            'description' => 'Lorem ipsum dolor sit amet',
            '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',
            'description' => 'Lorem ipsum dolor sit amet',
            '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',
                'Feature text goes here',
            ],
            'buttonLabel' => 'Get started',
            'buttonHref' => null,
        ],
    ],
])