@include('front.components.merchant.page-title')
@include('front.components.merchant.application-progressbar') @include('front.components.merchant.copy-btn') {!! html()->form('POST', route('merchant.owners-info.submit'))->id('owners-info-form')->attribute('data-parsley-validate')->open() !!} {!! html()->hidden('application_number', $data->application_number ?? null) !!} {!! html()->hidden('merchant_location_id', $location_id ?? null) !!} {!! html()->hidden('id', $business->id ?? 0)->attribute('data-entity-type-id', $business->entity_type_id ?? 0) !!} {!! html()->hidden('business_phone', $business->business_phone ?? null)->id('business_phone') !!} {!! html()->hidden('business_email', $business->business_email ?? null)->id('business_email') !!} {!! html()->hidden('delete_owners')->id('delete_owners') !!} @if ($isGuestUser) {!! html()->hidden('token', $token ?? null) !!} @endif
{{-- Disclaimer Section --}} @include('front.components.merchant.disclaimer-section') {{-- Primary Owner Information --}} {{-- @include('front.components.merchant.owner-section', [ 'userTitle' => $userTitle, 'primary_owner' => $primary_owner ?? new stdClass(), 'business' => $business, 'countries' => $countries ?? [], 'states' => $states ?? [], 'ownerIndex' => 0, // Primary owner ]) --}} {{-- Owner Information --}} @if (!empty($owners) && count($owners) > 0) @foreach ($owners as $ownerIndex => $owner) @php $ownerIndex; @endphp @include('front.components.merchant.owner-section', [ 'userTitle' => $userTitle, 'primary_owner' => $owner->is_primary_owner == 1 ? $owner : new stdClass(), 'owner' => $owner, 'business' => $business, 'countries' => $countries ?? [], 'states' => $states ?? [], 'ownerIndex' => $ownerIndex, ]) @endforeach @else @php $ownerIndex = 0; @endphp @include('front.components.merchant.owner-section', [ 'userTitle' => $userTitle, 'owner' => new stdClass(), 'primary_owner' => new stdClass(), 'business' => $business, 'countries' => $countries ?? [], 'states' => $states ?? [], 'ownerIndex' => $ownerIndex, ]) @endif {{-- Add Additional Owner Section --}} @include('front.components.merchant.add-owner-section', [ 'userTitle' => $userTitle, 'business' => $business, ]) {{-- Container for dynamic additional owners --}}
{{-- Additional Owner Template --}} @include('front.components.merchant.additional-owner-template', [ 'userTitle' => $userTitle, 'business' => $business, 'countries' => $countries ?? [], 'states' => $states ?? [], ])
{!! html()->form()->close() !!}