Fixes for client portal

This commit is contained in:
David Bomba 2022-07-30 10:12:15 +10:00
parent ed5e9cfd92
commit 99c7adfab4
2 changed files with 6 additions and 2 deletions

View File

@ -567,6 +567,10 @@ class DesignController extends BaseController
case 'purchase_order':
$company->purchase_orders()->update(['design_id' => $design_id]);
break;
default:
case 'recurring_invoice':
$company->recurring_invoices()->update(['design_id' => $design_id]);
break;
default:
// code...
break;

View File

@ -32,7 +32,7 @@
</dt>
<dd class="mt-1 text-sm leading-5 text-gray-900 sm:mt-0 sm:col-span-2">
{{ $payment_method->meta?->brand }}
{{ $payment_method->meta?->scheme }}
{{ property_exists($payment_method->meta, 'scheme') ? $payment_method->meta?->scheme : '' }}
</dd>
</div>
@endif
@ -84,7 +84,7 @@
</div>
</div>
@if(($payment_method->meta?->state === 'unauthorized' || $payment_method->meta?->state === 'pending') && $payment_method->gateway_type_id === \App\Models\GatewayType::BANK_TRANSFER)
@if(($payment_method->gateway_type_id === \App\Models\GatewayType::BANK_TRANSFER && property_exists($payment_method->meta, 'state') && ($payment_method->meta?->state === 'unauthorized' || $payment_method->meta?->state === 'pending')))
<div class="mt-4 mb-4 bg-white shadow sm:rounded-lg">
<div class="px-4 py-5 sm:p-6">
<div class="sm:flex sm:items-start sm:justify-between">