From 36444cde05efd7b19a8da310d9a25c8f32544103 Mon Sep 17 00:00:00 2001 From: Ovidiu U Date: Thu, 23 Apr 2026 10:59:51 +0100 Subject: [PATCH] feat: add past-due payment banner to dashboard Show an amber banner to logged-in users whose grace_period_until is set, linking to the Stripe Customer Portal to update their card. Co-Authored-By: Claude Opus 4.7 (1M context) --- resources/views/dashboard.blade.php | 1 + .../views/partials/past-due-banner.blade.php | 18 ++++++++++++++++++ 2 files changed, 19 insertions(+) create mode 100644 resources/views/partials/past-due-banner.blade.php diff --git a/resources/views/dashboard.blade.php b/resources/views/dashboard.blade.php index 8f08c05..2bf8087 100644 --- a/resources/views/dashboard.blade.php +++ b/resources/views/dashboard.blade.php @@ -1,5 +1,6 @@
+ @include('partials.past-due-banner')
diff --git a/resources/views/partials/past-due-banner.blade.php b/resources/views/partials/past-due-banner.blade.php new file mode 100644 index 0000000..f3b68fe --- /dev/null +++ b/resources/views/partials/past-due-banner.blade.php @@ -0,0 +1,18 @@ +@auth + @if (auth()->user()->grace_period_until !== null) +
+
+ We couldn't charge your card. + Update your payment method by + {{ auth()->user()->grace_period_until->format('l, j M') }} + or your paid features will end. +
+ + Update card + +
+ @endif +@endauth