--- title: "pricing-01" description: "Four pricing cards in a row: plan name, monthly price, yearly note, a checked feature list and a full-width button." category: "Pricing" --- # pricing-01 Four pricing cards in a row: plan name, monthly price, yearly note, a checked feature list and a full-width button. ## Installation ```bash php artisan ui:add-block pricing-01 ``` ## Dependencies - composer: `gehrisandro/tailwind-merge-laravel` - component: [button](https://laralcn-ui.abdulkadersafi.com/ar/components/button.md) — the CLI installs it for you. - component: [card](https://laralcn-ui.abdulkadersafi.com/ar/components/card.md) — the CLI installs it for you. ## Source `resources/views/components/ui/blocks/pricing-01.blade.php` ```blade {{-- Every piece of content is a prop, so you can drive this section from a CMS. A plan is ['name', 'price', 'period', 'note', 'features', 'buttonLabel', 'buttonHref']. Leave buttonHref out and the button stays a plain button. --}} @props([ 'tagline' => 'Tagline', 'heading' => 'Pricing plan', 'description' => 'Lorem ipsum dolor sit amet, consectetur adipiscing elit.', 'plans' => [ [ 'name' => 'Free plan', 'price' => '$0', 'period' => '/mo', 'note' => 'or $0 yearly', 'features' => ['Feature text goes here', 'Feature text goes here', 'Feature text goes here'], 'buttonLabel' => 'Get started', 'buttonHref' => null, ], [ 'name' => 'Basic plan', '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', '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', ], 'buttonLabel' => 'Get started', 'buttonHref' => null, ], [ 'name' => 'Enterprise plan', 'price' => '$49', 'period' => '/mo', 'note' => 'or $499 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, ], ], ]) merge(['class' => 'bg-background px-[5%] py-16 text-foreground md:py-24 lg:py-28']) }}> {{ $tagline }} {{ $heading }} {{ $description }} @foreach ($plans as $plan) {{ $plan['name'] ?? '' }} {{ $plan['price'] ?? '' }}{{ $plan['period'] ?? '' }} @if (!empty($plan['note'])) {{ $plan['note'] }} @endif @foreach ($plan['features'] ?? [] as $feature) {{ $feature }} @endforeach {{ $plan['buttonLabel'] ?? 'Get started' }} @endforeach ```
{{ $tagline }}
{{ $description }}
{{ $plan['price'] ?? '' }}{{ $plan['period'] ?? '' }}
{{ $plan['note'] }}