From 00265e048bf9f843f15440cb3697c0c992df78b7 Mon Sep 17 00:00:00 2001 From: raccoon254 Date: Sun, 16 Jun 2024 09:18:45 +0300 Subject: [PATCH] Payment card info styles --- app/Livewire/OrderPayment.php | 7 +++---- resources/views/orders/payment.blade.php | 17 ++++++++++++----- 2 files changed, 15 insertions(+), 9 deletions(-) diff --git a/app/Livewire/OrderPayment.php b/app/Livewire/OrderPayment.php index 232e9fa..71b7170 100644 --- a/app/Livewire/OrderPayment.php +++ b/app/Livewire/OrderPayment.php @@ -41,20 +41,19 @@ public function getPaymentDetails($method): array $details = [ 'paypal' => [ 'logo' => asset('images/paypal.png'), - 'instructions' => 'Please send your payment to our PayPal address: - stevovosti64@gmail.com', + 'instructions' => 'Please send your payment to our PayPal address:', 'link' => 'https://www.paypal.com/paypalme/raccoon254', 'address' => 'stevovosti64@gmail.com', ], 'cash_app' => [ 'logo' => asset('images/cash-app-logo.png'), - 'instructions' => 'Please send your payment to our Cash App username: stevovosti64', + 'instructions' => 'Please send your payment to our Cash App username:', 'link' => 'https://cash.app/stevo', 'address' => 'stevo', ], 'zelle' => [ 'logo' => asset('images/zelle.png'), - 'instructions' => 'Please send your payment to our Zelle phone number: +254 790 743 009', + 'instructions' => 'Please send your payment to our Zelle phone number:', 'link' => 'https://www.zellepay.com/', 'address' => '+254 790 743 009', ], diff --git a/resources/views/orders/payment.blade.php b/resources/views/orders/payment.blade.php index e9be69d..fe70abd 100644 --- a/resources/views/orders/payment.blade.php +++ b/resources/views/orders/payment.blade.php @@ -16,14 +16,14 @@ class="absolute top-0 right-0 bg-blue-500 text-white p-2 rounded-bl-lg rounded-t -

We Accept

+

We Accept

@foreach($payment_methods as $method) @php //call getPaymentDetails method from OrderPayment class $logo = (new App\Livewire\OrderPayment)->getPaymentDetails($method)['logo']; @endphp -