From 562f0e7661235564f9793d134e0dc24fb96986be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20Beganovi=C4=87?= Date: Thu, 14 Mar 2024 15:58:40 +0100 Subject: [PATCH] Add error message display in billing portal index page --- resources/views/billing-portal/v3/index.blade.php | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/resources/views/billing-portal/v3/index.blade.php b/resources/views/billing-portal/v3/index.blade.php index 267d7b9c10aa..2c26d0a257f3 100644 --- a/resources/views/billing-portal/v3/index.blade.php +++ b/resources/views/billing-portal/v3/index.blade.php @@ -2,6 +2,14 @@ @section('meta_title', ctrans('texts.purchase')) @section('body') + @if ($errors->any()) +
+ @foreach ($errors->all() as $error) +

{{ $error }}

+ @endforeach +
+ @endif + @livewire('billing-portal.purchase', ['subscription' => $subscription, 'db' => $subscription->company->db, 'hash' => $hash, 'request_data' => $request_data, 'campaign' => request()->query('campaign') ?? null]) @stop @@ -9,7 +17,7 @@