--- title: "pricing-13" description: "Centred heading over three centred plan cards: name, price, yearly note, feature list and a button." category: "Pricing" --- # pricing-13 Centred heading over three centred plan cards: name, price, yearly note, feature list and a button. ## Installation ```bash php artisan ui:add-block pricing-13 ``` ## 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-13.blade.php` ```blade {{-- Every piece of content is a prop, so you can drive this section from a CMS. 'note' sits under the price (for example the yearly equivalent). --}} @props([ 'tagline' => 'Tagline', 'heading' => 'Pricing plan', 'description' => 'Lorem ipsum dolor sit amet, consectetur adipiscing elit.', 'plans' => [ [ 'name' => 'Basic plan', 'price' => '$19', 'period' => '/mo', 'note' => 'or $199 yearly', 'features' => array_fill(0, 3, 'Feature text goes here'), 'buttonLabel' => 'Get started', 'buttonHref' => null, ], [ 'name' => 'Business plan', 'price' => '$29', 'period' => '/mo', 'note' => 'or $299 yearly', 'features' => array_fill(0, 4, 'Feature text goes here'), 'buttonLabel' => 'Get started', 'buttonHref' => null, ], [ 'name' => 'Enterprise plan', 'price' => '$49', 'period' => '/mo', 'note' => 'or $499 yearly', 'features' => array_fill(0, 5, 'Feature text goes here'), 'buttonLabel' => 'Get started', 'buttonHref' => null, ], ], ])
merge(['class' => 'w-full bg-background px-[5%] py-16 text-foreground md:py-24 lg:py-28']) }}>
@if ($tagline)

{{ $tagline }}

@endif

{{ $heading }}

@if ($description)

{{ $description }}

@endif
@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
```