Refactor required-client-info component instantiation in rff.blade.php

This commit is contained in:
Benjamin Beganović 2024-03-15 01:31:11 +01:00
parent aac43793b5
commit 7d4588d3b5

View File

@ -10,13 +10,6 @@
@endif @endif
<div> <div>
@livewire('required-client-info', [ @livewire('required-client-info', ['db' => $company->db, 'fields' => method_exists($gateway, 'getClientRequiredFields') ? $gateway->getClientRequiredFields() : [], 'contact_id' => auth()->guard('contact')->user()->id, 'countries' => $countries, 'company_id' => $company->id, 'company_gateway_id' => $gateway->company_gateway ? $gateway->company_gateway->id : $gateway->id, 'form_only' => true])>
'fields' => method_exists($gateway, 'getClientRequiredFields') ? $gateway->getClientRequiredFields() : [],
'contact' => auth()->guard('contact')->user(),
'countries' => $countries,
'company' => $company,
'company_gateway_id' => $gateway->company_gateway ? $gateway->company_gateway->id : $gateway->id,
'form_only' => true
])
</div> </div>
</div> </div>