-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
57 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<?php | ||
|
||
namespace App\Http\Controllers; | ||
|
||
use Inertia\Inertia; | ||
use Inertia\Response; | ||
|
||
class StripeCheckoutSuccessController extends Controller | ||
{ | ||
public function __invoke(): Response | ||
{ | ||
return Inertia::render('StripeCheckout/StripeCheckoutSuccess'); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
resources/js/Pages/StripeCheckout/StripeCheckoutSuccess.vue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<template> | ||
<Head title="Checkout Success" /> | ||
|
||
<div class="relative isolate px-6 lg:px-8"> | ||
<div class="mx-auto max-w-2xl text-center lg:max-w-4xl"> | ||
<p class="mt-2 text-4xl font-bold tracking-tight text-primary-gray dark:text-neutral-300 sm:text-5xl"> | ||
Checkout was Successful! | ||
</p> | ||
</div> | ||
<p class="mx-auto mt-6 max-w-2xl text-center text-lg leading-8 text-neutral-500 dark:text-neutral-300"> | ||
You now have full access and can ask an unlimited amount of questions. Enjoy! | ||
</p> | ||
<div class="max-w-2xl mx-auto text-center mt-6"> | ||
<Link :href="route('parent.dashboard')" class="inline-flex items-center px-4 py-2 bg-primary-yellow border border-transparent rounded-md font-semibold text-xs text-primary-dark-gray dark:text-gray-800 uppercase tracking-widest hover:bg-yellow-500 dark:hover:bg-yellow-500 focus:bg-yellow-500 dark:focus:bg-yellow-500 active:bg-yellow-500 dark:active:bg-bg-yellow-500 focus:outline-none focus:ring-2 focus:ring-primary-yellow focus:ring-offset-2 dark:focus:ring-offset-neutral-800 transition ease-in-out duration-150">Back to Dashboard</Link> | ||
</div> | ||
</div> | ||
</template> | ||
|
||
<script setup> | ||
import { Head, Link } from '@inertiajs/vue3'; | ||
import AuthenticatedLayout from '@/Layouts/AuthenticatedLayout.vue'; | ||
defineOptions({ | ||
layout: AuthenticatedLayout, | ||
}); | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters