PLATFORM
  • Tails

    Create websites with TailwindCSS

  • Blocks

    Design blocks for your website

  • Wave

    Start building the next great SAAS

  • Pines

    Alpine & Tailwind UI Library

  • Auth

    Plug'n Play Authentication for Laravel

  • Designer comingsoon

    Create website designs with AI

  • DevBlog comingsoon

    Blog platform for developers

  • Static

    Build a simple static website

  • SaaS Adventure

    21-day program to build a SAAS

Question By
Solved

Pricing from tails

Solved
brianh

Jun 9th, 2023 08:31 AM

How can I use the same look and feel for a pricing section in tails in my wave application?

The problem is in Tails, I have each pricing bracket as separate items but within wave it is referencing items from the table which prevents you from having a custom border for example around one of the price offerings.

bobbyiliev

Jun 9th, 2023 09:02 AM

Best Answer

Hey Brian,

What you could do is to update the @foreach(Wave\Plan::all() as $plan) loop and add an small check with a if statement. For example, if the plan name is pro you could show different classes, eg:

<div class="SOME_DEFAULT_CLASSES @if( plan->name == 'pro' ) SOME_CUSTOM_CLASSES_ONLY_FOR_THE_PRO_PLAN @endif">

Another option is to change the whole div section, eg:

@if( plan->name == 'pro' )
    YOUR HTML HERE FOR THE Pro PLAN
@else
    YOUR HTML HERE FOR THE REST OF THE PLANS
@endif

Let me know how it goes!

Best,

Bobby

brianh

Jun 9th, 2023 10:51 AM

Incredibly helpful as always Bobby! Thanks.

Report
1
bobbyiliev

Jun 9th, 2023 01:29 PM

No problem at all! Happy to help!