@if(!empty($company->company_logo) && file_exists(public_path('company/' . $company->company_logo)))
@else
@endif
{{ $link->link_name }}
@if(!empty($link->pre_form_message))
{{ $link->pre_form_message }}
@else
Please provide your details to access the document.
@endif
@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