@if(!empty($company->company_logo) && file_exists(public_path('company/' . $company->company_logo)))
{{ $company->company_name }}
@else
{{ $company->company_name }}
@endif

{{ $link->link_name }}

@if(!empty($link->pre_form_message))

{{ $link->pre_form_message }}

@else

Please provide your details to access the document.

@endif
@if ($errors->any())
@foreach ($errors->all() as $error)

• {{ $error }}

@endforeach
@endif @php // Decode the JSON stored in the database. // It will look like ["email"] or ["phone"] or ["email", "phone"] $selectedFields = json_decode($link->pre_form_type, true) ?: ['email']; @endphp
@csrf
@if(in_array('email', $selectedFields))
@endif @if(in_array('phone', $selectedFields))
@endif