--- title: "pricing-03" description: "Four left-aligned pricing cards with an icon, price, yearly note, an 'Includes' feature list under a divider and a button." category: "Pricing" --- # pricing-03 Four left-aligned pricing cards with an icon, price, yearly note, an 'Includes' feature list under a divider and a button. ## Installation ```bash php artisan ui:add-block pricing-03 ``` ## 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-03.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', 'icon']. icon is an optional '' string; leave it out and the card shows the library mark. --}} @props([ 'tagline' => 'Tagline', 'heading' => 'Pricing plan', 'description' => 'Lorem ipsum dolor sit amet, consectetur adipiscing elit.', 'includesLabel' => 'Includes:', '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
@if (!empty($plan['icon'])) {!! $plan['icon'] !!} @else @endif

{{ $includesLabel }}

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