--- title: "pricing-07" description: "Two pricing cards: plan name and description, price and yearly note, a button, then a checked feature list below a divider." category: "Pricing" --- # pricing-07 Two pricing cards: plan name and description, price and yearly note, a button, then a checked feature list below a divider. ## Installation ```bash php artisan ui:add-block pricing-07 ``` ## Dependencies - composer: `gehrisandro/tailwind-merge-laravel` - component: [button](https://laralcn-ui.abdulkadersafi.com/components/button.md) — the CLI installs it for you. - component: [card](https://laralcn-ui.abdulkadersafi.com/components/card.md) — the CLI installs it for you. - component: [separator](https://laralcn-ui.abdulkadersafi.com/components/separator.md) — the CLI installs it for you. ## Source `resources/views/components/ui/blocks/pricing-07.blade.php` ```blade {{-- 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. --}} @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, ], ], ])
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['description'] ?? '' }}

{{ $plan['price'] ?? '' }}{{ $plan['period'] ?? '' }}

@if (!empty($plan['note']))

{{ $plan['note'] }}

@endif {{ $plan['buttonLabel'] ?? 'Get started' }}
    @foreach ($plan['features'] ?? [] as $feature)
  • {{ $feature }}
  • @endforeach
@endforeach
```