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

الأسعار

pricing-05

تخطيط مقسوم: الميزات الرئيسية مع أيقونات في جانب، وفي الجانب الآخر بطاقة خطة واحدة مع السعر وقائمة ميزات من عمودين وزر.

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

التثبيت

php artisan ui:add-block pricing-05

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

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

الاستخدام

Every piece of content is a prop, so you can drive this section from a CMS. highlights is a list of ['title', 'description', 'icon'], where icon is an optional '<svg ...>' string (the library mark when left out). plan is a single ['name', 'price', 'period', 'description', 'features', 'buttonLabel', 'buttonHref'].

<x-ui.blocks.pricing-05
    heading="One plan, everything in it"
    :highlights="[
        ['title' => 'No seat limits', 'description' => 'Invite the whole team.'],
        ['title' => 'Cancel any time', 'description' => 'Monthly billing, no contract.'],
    ]"
    :plan="[
        'name' => 'Pro',
        'price' => '$19',
        'period' => '/mo',
        'description' => 'Billed monthly',
        'features' => ['Unlimited projects', 'Priority support', 'SSO'],
        'buttonLabel' => 'Start trial',
        '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.',
    'highlights' => [
        [
            'title' => 'Key feature heading',
            'description' => 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse varius enim in eros elementum tristique.',
        ],
        [
            'title' => 'Key feature heading',
            'description' => 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse varius enim in eros elementum tristique.',
        ],
        [
            'title' => 'Key feature heading',
            'description' => 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse varius enim in eros elementum tristique.',
        ],
    ],
    'includesLabel' => 'Includes:',
    'plan' => [
        'name' => 'Basic plan',
        'price' => '$19',
        'period' => '/mo',
        'description' => 'Lorem ipsum dolor sit amet',
        'features' => [
            'Feature text goes here',
            'Feature text goes here',
            'Feature text goes here',
            'Feature text goes here',
            'Feature text goes here',
            '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,
    ],
])