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

Pricing

pricing-07

Two pricing cards: plan name and description, price and yearly note, a button, then a checked feature list below a divider.

Open full screen

Installation

php artisan ui:add-block pricing-07

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-07 />.

Components it includes

Usage

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',
        ],
    ]"
/>

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' => '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,
        ],
    ],
])