@include('front.components.merchant.page-title')

Business Locations​


Open Applications
@csrf
@forelse ($locations as $idx => $loc) @php $businessInfo = App\Models\Merchant\MerchantLocationBusiness::where( 'merchant_location_id', $loc->id, )->first(); @endphp @if (!$businessInfo || $businessInfo->status != 2)
@if (!$idx) * @else @endif
@if (!$idx) @else @endif
@foreach ($steps as $index => $step) @php $isActive = $lastPath === $step['path']; $isCompleted = $loc->onboarding_level > $index; $classes = ''; if ($isActive) { $classes .= 'active'; if ( $loc->onboarding_level >= $index + 1 ) { $classes .= 'completed'; } } elseif ($isCompleted) { $classes .= 'completed'; } @endphp
{{ $step['label'] == 'Owners' ? (isset($businessInfo) && $businessInfo->entity_type_id == 4 ? 'Principals' : $step['label']) : $step['label'] }} {{-- {{ $step['label'] == 'Owners' ? ($businessInfo->entity_type_id == 6 ? 'Principals' : $step['label']) : $step['label'] }} --}}
@endforeach
{!! html()->button( $loc->onboarding_level == 0 ? 'Start ' : 'Continue ', )->type('button')->class('btn btn-primary next-btn float-right mr-3')->attribute('title', 'Set up business')->name('location_id', $loc->id)->value($loc->id)->id("location-{$loc->id}") !!}
@endif @empty
No open applications created yet.
@endforelse
Submitted Applications
@if (isset($applications) && count($applications) > 0) @foreach ($applications as $location)
{{ $location->full_address }} {!! $location->statuses[$location->status]['name'] !!}
View Application
@endforeach @else
No application submitted yet.
@endif
@auth Previous @endauth