{{ $landing['tagline'] ?? '' }}
-{{ $landing['headline'] ?? ($landing['name'] ?? '') }}
-{{ $landing['description'] ?? '' }}
- -Why {{ $landing['name'] ?? 'Ladill' }}
-{{ $benefit['title'] }}
-{{ $benefit['text'] }}
-Ideal for
-diff --git a/app/Http/Controllers/Auth/SsoLoginController.php b/app/Http/Controllers/Auth/SsoLoginController.php index ad77973..b413343 100644 --- a/app/Http/Controllers/Auth/SsoLoginController.php +++ b/app/Http/Controllers/Auth/SsoLoginController.php @@ -88,10 +88,7 @@ class SsoLoginController extends Controller if ($request->filled('error')) { if (in_array($request->query('error'), ['login_required', 'interaction_required', 'consent_required'], true) && ! $request->boolean('interactive')) { - return redirect()->route('sso.connect', [ - 'redirect' => $intended, - 'interactive' => 1, - ]); + return redirect()->away((string) config('ladill.marketing_url')); } return $this->finishCallback($request, $intended, (string) $request->query('error_description', $request->query('error')), $popup); diff --git a/app/Http/Controllers/ProductLandingController.php b/app/Http/Controllers/ProductLandingController.php deleted file mode 100644 index 6ab88dc..0000000 --- a/app/Http/Controllers/ProductLandingController.php +++ /dev/null @@ -1,31 +0,0 @@ -session()->has('mb.email')) { - return redirect()->route($dashboardRoute); - } - - return view('product.landing'); - } - - if (auth()->check()) { - return redirect()->route($dashboardRoute); - } - - return view('product.landing'); - } -} diff --git a/config/ladill.php b/config/ladill.php new file mode 100644 index 0000000..2c4f215 --- /dev/null +++ b/config/ladill.php @@ -0,0 +1,6 @@ + 'mini', + 'marketing_url' => env('LADILL_MARKETING_URL', 'https://localhost/products/mini'), +]; diff --git a/config/product_landing.php b/config/product_landing.php deleted file mode 100644 index 4d56da6..0000000 --- a/config/product_landing.php +++ /dev/null @@ -1,43 +0,0 @@ - 'mini', - 'name' => 'Mini', - 'logo' => 'images/logo/ladillmini-logo.svg', - 'icon' => 'mini.svg', - 'tagline' => 'Simple payment collection', - 'headline' => 'Collect payments without a full storefront', - 'accent' => 'quick pay links and QR takings', - 'description' => 'Mini is the fastest way to get paid. Create payment requests, share links, and track takings — perfect when you don\'t need a full online store.', - 'benefits' => - [ - 0 => - [ - 'title' => 'Payment links in seconds', - 'text' => 'Send a link by WhatsApp, SMS, or email and get paid immediately.', - ], - 1 => - [ - 'title' => 'QR-friendly', - 'text' => 'Print or display a code for in-person collections.', - ], - 2 => - [ - 'title' => 'Lightweight setup', - 'text' => 'No catalog required — just amount, description, and pay.', - ], - ], - 'use_cases' => - [ - 0 => 'Freelancers', - 1 => 'Pop-up sales', - 2 => 'Deposits & invoices', - ], - 'gradient_from' => '#4f46e5', - 'gradient_to' => '#1c75bc', - 'dashboard_route' => 'mini.dashboard', - 'platform_url' => 'https://localhost', - 'marketing_url' => 'https://localhost/products/mini', - 'register_url' => 'https://auth.localhost/register', - 'landing_variant' => 'default', -]; diff --git a/resources/views/product/landing.blade.php b/resources/views/product/landing.blade.php deleted file mode 100644 index 37bc63f..0000000 --- a/resources/views/product/landing.blade.php +++ /dev/null @@ -1,101 +0,0 @@ -@php - $landing = (array) config('product_landing'); - $logo = (string) ($landing['logo'] ?? ''); - $logoPath = $logo !== '' ? public_path($logo) : null; - $platformUrl = (string) ($landing['platform_url'] ?? 'https://ladill.com'); - $marketingUrl = (string) ($landing['marketing_url'] ?? $platformUrl); - $signInUrl = route('sso.connect', [ - 'redirect' => route($landing['dashboard_route'] ?? 'login'), - 'interactive' => 1, - ]); - $variant = (string) ($landing['landing_variant'] ?? 'default'); -@endphp - - -
- - -{{ $landing['tagline'] ?? '' }}
-{{ $landing['description'] ?? '' }}
- -Why {{ $landing['name'] ?? 'Ladill' }}
-{{ $benefit['text'] }}
-Ideal for
-