Skip to content
Guides
Navigation
Feedback
Overlays
Layout
Data Display
Forms
.md

Pricing

pricing-06

Borderless four-plan comparison table with centred plan headers, feature rows grouped by category and a row of buttons at the end.

Open full screen

Installation

php artisan ui:add-block pricing-06

A single command installs the block's Blade file and every component it depends on. Render it in your own layout as <x-ui.blocks.pricing-06 />.

Components it includes

Usage

Every piece of content is a prop, so you can drive this section from a CMS. A plan is ['name', 'price', 'period', 'description', 'buttonLabel', 'buttonHref']; its button shows above and again below the table. Each feature row carries one value per plan, in plan order: true draws a check, false or null leaves the cell empty, and a string ('10', 'Unlimited') is printed as is.

<x-ui.blocks.pricing-06
    heading="Compare plans"
    :plans="[
        ['name' => 'Starter', 'price' => '$9', 'period' => '/mo', 'buttonHref' => '/register'],
        ['name' => 'Team', 'price' => '$29', 'period' => '/mo', 'buttonHref' => '/register?plan=team'],
        ['name' => 'Scale', 'price' => '$99', 'period' => '/mo', 'buttonHref' => '/contact'],
    ]"
    :categories="[
        ['title' => 'Usage', 'features' => [
            ['label' => 'Seats', 'values' => ['3', '20', 'Unlimited']],
            ['label' => 'Custom domains', 'values' => [false, true, true]],
        ]],
    ]"
/>

Props

Every prop with its default. Pass any of them as attributes, using : to bind a PHP value.

@props([
    'tagline' => 'Tagline',
    'heading' => 'Pricing plan',
    'description' => 'Lorem ipsum dolor sit amet, consectetur adipiscing elit.',
    'plans' => [
        [
            'name' => 'Free',
            'price' => '$0',
            'period' => '/mo',
            'description' => 'Lorem ipsum dolor sit amet',
            'buttonLabel' => 'Get started',
            'buttonHref' => null,
        ],
        [
            'name' => 'Basic',
            'price' => '$19',
            'period' => '/mo',
            'description' => 'Lorem ipsum dolor sit amet',
            'buttonLabel' => 'Get started',
            'buttonHref' => null,
        ],
        [
            'name' => 'Business',
            'price' => '$29',
            'period' => '/mo',
            'description' => 'Lorem ipsum dolor sit amet',
            'buttonLabel' => 'Get started',
            'buttonHref' => null,
        ],
        [
            'name' => 'Enterprise',
            'price' => '$49',
            'period' => '/mo',
            'description' => 'Lorem ipsum dolor sit amet',
            'buttonLabel' => 'Get started',
            'buttonHref' => null,
        ],
    ],
    'categories' => [
        [
            'title' => 'Feature Category',
            'features' => [
                ['label' => 'Feature text goes here', 'values' => ['10', '10', '25', 'Unlimited']],
                ['label' => 'Feature text goes here', 'values' => [true, true, true, true]],
                ['label' => 'Feature text goes here', 'values' => [true, true, true, true]],
                ['label' => 'Feature text goes here', 'values' => [false, false, true, true]],
                ['label' => 'Feature text goes here', 'values' => [false, false, false, true]],
            ],
        ],
        [
            'title' => 'Feature Category',
            'features' => [
                ['label' => 'Feature text goes here', 'values' => ['10', '10', '25', 'Unlimited']],
                ['label' => 'Feature text goes here', 'values' => [true, true, true, true]],
                ['label' => 'Feature text goes here', 'values' => [true, true, true, true]],
                ['label' => 'Feature text goes here', 'values' => [false, false, true, true]],
                ['label' => 'Feature text goes here', 'values' => [false, false, false, true]],
            ],
        ],
        [
            'title' => 'Feature Category',
            'features' => [
                ['label' => 'Feature text goes here', 'values' => ['10', '10', '25', 'Unlimited']],
                ['label' => 'Feature text goes here', 'values' => [true, true, true, true]],
                ['label' => 'Feature text goes here', 'values' => [true, true, true, true]],
                ['label' => 'Feature text goes here', 'values' => [false, false, true, true]],
                ['label' => 'Feature text goes here', 'values' => [false, false, false, true]],
            ],
        ],
    ],
    'includedLabel' => 'Included',
    'excludedLabel' => 'Not included',
])