Skip to content

Commit

Permalink
Info message after clicking to "Sign Up"
Browse files Browse the repository at this point in the history
  • Loading branch information
l-alexandrov committed Apr 4, 2024
1 parent d4c5241 commit a7ee486
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 5 deletions.
2 changes: 1 addition & 1 deletion public/themes/bimbala/css/app.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion public/themes/bimbala/mix-manifest.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"/js/app.js": "/js/app.js?id=31044e78bdf2a1f38951",
"/css/app.css": "/css/app.css?id=33d9a3f74d0963b856cb"
"/css/app.css": "/css/app.css?id=ce9d45e573615a52be20"
}
11 changes: 10 additions & 1 deletion resources/views/themes/bimbala/pricing.blade.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,16 @@
@extends('theme::layouts.app')

@section('content')

@if(Session::get('origin') === route('register'))
<div class="py-4 text-center bg-indigo-500 lg:px-4">
<div class="flex items-center p-2 leading-none text-indigo-100 sm:bg-indigo-800 sm:rounded-full sm:inline-flex"
role="alert">
<span class="flex px-2 py-1 mr-3 text-xs font-bold uppercase bg-indigo-500 rounded-full">Notice</span>
<span class="flex-auto mr-2 font-semibold text-left">Please pick a plan
before proceeding to registration.</span>
</div>
</div>
@endif
<div class="py-20">
<div class="sm:mx-auto sm:w-full sm:max-w-5xl">

Expand Down
4 changes: 2 additions & 2 deletions wave/src/Http/Controllers/Auth/RegisterController.php
Original file line number Diff line number Diff line change
Expand Up @@ -169,10 +169,10 @@ private function sendVerificationEmail($user){
Notification::route('mail', $user->email)->notify(new VerifyEmail($user));
}

public function showRegistrationForm()
public function showRegistrationForm(Request $request)
{
if(setting('billing.card_upfront')){
return redirect()->route('wave.pricing');
return redirect()->route('wave.pricing')->with('origin', $request->url());
}
return view('theme::auth.register');
}
Expand Down

0 comments on commit a7ee486

Please sign in to comment.