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

الأسعار

pricing-13

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

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

التثبيت

php artisan ui:add-block pricing-13

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

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

الاستخدام

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).

<x-ui.blocks.pricing-13
    tagline="Pricing"
    heading="Plans for every stage"
    description="Switch or cancel at any time."
    :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.',
    '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,
        ],
    ],
])