--- title: "pricing-05" description: "Split layout: key features with icons on one side, a single plan card with price, a two-column feature list and a button on the other." category: "Pricing" --- # pricing-05 Split layout: key features with icons on one side, a single plan card with price, a two-column feature list and a button on the other. ## Installation ```bash php artisan ui:add-block pricing-05 ``` ## 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-05.blade.php` ```blade {{-- Every piece of content is a prop, so you can drive this section from a CMS. highlights is a list of ['title', 'description', 'icon'], where icon is an optional '' string (the library mark when left out). plan is a single ['name', 'price', 'period', 'description', 'features', 'buttonLabel', 'buttonHref']. --}} @props([ 'tagline' => 'Tagline', 'heading' => 'Pricing plan', 'description' => 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse varius enim in eros elementum tristique.', 'highlights' => [ [ 'title' => 'Key feature heading', 'description' => 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse varius enim in eros elementum tristique.', ], [ 'title' => 'Key feature heading', 'description' => 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse varius enim in eros elementum tristique.', ], [ 'title' => 'Key feature heading', 'description' => 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse varius enim in eros elementum tristique.', ], ], 'includesLabel' => 'Includes:', 'plan' => [ 'name' => 'Basic plan', 'price' => '$19', 'period' => '/mo', 'description' => 'Lorem ipsum dolor sit amet', 'features' => [ 'Feature text goes here', 'Feature text goes here', 'Feature text goes here', 'Feature text goes here', 'Feature text goes here', '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 ($highlights as $highlight)
@if (!empty($highlight['icon'])) {!! $highlight['icon'] !!} @else @endif

{{ $highlight['title'] ?? '' }}

{{ $highlight['description'] ?? '' }}

@endforeach

{{ $plan['name'] ?? '' }}

{{ $plan['description'] ?? '' }}

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

{{ $includesLabel }}

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