@php use App\Models\User\User; @endphp @php use App\Horizon\Customer\RestCustomer; @endphp @php use App\Horizon\Customer\RestAccount; @endphp @php use App\Helpers\HorizonHelper; @endphp @php use App\Horizon\Customer\RestContactPerson; @endphp @php /** @var User $user */ @endphp

@if(!$user->h_id) Create user in Horizon
@method('POST') @csrf
@else Rest link @endif @if($company = $user->company) @if(!$company->acc_h_id) Create account in Horizon
@method('POST') @csrf
@else Rest link @endif @if(!$user->hcp_id) Create contact person in Horizon
@method('POST') @csrf
@else Rest link @endif @endif