@extends('layouts.auth', ['title' => 'Choose Plan - Booklio', 'wide' => true]) @php $booklioDemo = require resource_path('data/booklio.php'); $plans = collect($booklioDemo['plans'])->map(function ($plan) { return array_merge($plan, [ 'variant' => match ($plan['name']) { 'Free Trial' => 'primary', 'Professional' => 'success', 'Agency' => 'purple', default => 'muted', }, ]); }); @endphp @section('content')
Use dummy pricing and features for now. Billing and subscription logic will be connected later.
{{ $plan['monthly'] ?? $plan['price'] }}
{{ $isFree ? $plan['period'] : 'per month' }}
{{ $isFree ? 'Trial access' : 'Billed monthly' }}