fixed thanking page

This commit is contained in:
ilmedova 2023-04-24 17:39:26 +05:00
parent 9a2211f3ca
commit f3fdbc73e5
2 changed files with 13 additions and 5 deletions

View File

@ -53,7 +53,9 @@ public function submit(Request $request){
$message->to($attender->email)->subject($attender->name . " " . $attender->surname);
});
}
return view('success');
return view('success',[
'is_attending' => $data['is_attending']
]);
}
public function shownUp(Request $request){

View File

@ -2,9 +2,15 @@
@section('content')
<div class="flex justify-center items-center">
<div class="max-w-lg mt-4 rounded p-4 bg-green-200 border-green-500 border-2">
<h1 class="text-6xl text-green-600 font-bold">Thank you!</h1><br/>
<span class="text-base text-green-600 font-medium">We have sent you an email with attached QR code which you should use for this event! Check you email, if you haven't received anything contact us via: <a href="mailto:delegation-turkmenistan@eeas.europa.eu">delegation-turkmenistan@eeas.europa.eu</a></span>
</div>
@if($is_attending)
<div class="max-w-lg mt-4 rounded p-4 bg-green-200 border-green-500 border-2">
<h1 class="text-6xl text-green-600 font-bold">Thank you!</h1><br/>
<span class="text-base text-green-600 font-medium">We have sent you an email with attached QR code which you should use for this event! Check you email, if you haven't received anything contact us via: <a href="mailto:delegation-turkmenistan@eeas.europa.eu">delegation-turkmenistan@eeas.europa.eu</a></span>
</div>
@else
<div class="max-w-lg mt-4 rounded p-4 bg-green-200 border-green-500 border-2">
<h1 class="text-6xl text-green-600 font-bold">Thank you for your response!</h1><br/>
</div>
@endif
</div>
@endsection