2023-03-28 14:19:37 +02:00
|
|
|
<?php use JeroenDesloovere\VCard\VCard; use App\Models\Button; $button = Button::find($button_id); if(isset($button->name)){$buttonName = $button->name;}else{$buttonName = 0;} ?>
|
2023-03-27 19:04:41 +02:00
|
|
|
|
|
|
|
<select style="display:none" name="button" class="form-control"><option class="button button-default email" value="vcard">Vcard</option></select>
|
|
|
|
|
2023-03-28 14:19:37 +02:00
|
|
|
{{-- @php
|
|
|
|
$vcard = new VCard($link_url);
|
|
|
|
|
|
|
|
$prefix = $vcard->getPrefix();
|
|
|
|
$firstName = $vcard->getFirstName();
|
|
|
|
$middleName = $vcard->getMiddleName();
|
|
|
|
$lastName = $vcard->getLastName();
|
|
|
|
$suffix = $vcard->getSuffix();
|
|
|
|
$organization = $vcard->getOrganization();
|
|
|
|
$title = $vcard->getTitle();
|
|
|
|
$role = $vcard->getRole();
|
|
|
|
$workUrl = $vcard->getUrl();
|
|
|
|
$email = $vcard->getEmail();
|
|
|
|
$workEmail = $vcard->getWorkEmail();
|
|
|
|
$homePhone = $vcard->getHomePhone();
|
|
|
|
$workPhone = $vcard->getWorkPhone();
|
|
|
|
$cellPhone = $vcard->getCellPhone();
|
|
|
|
$homeAddressLabel = $vcard->getHomeAddressLabel();
|
|
|
|
$homeAddressStreet = $vcard->getHomeAddressStreet();
|
|
|
|
$homeAddressCity = $vcard->getHomeAddressCity();
|
|
|
|
$homeAddressState = $vcard->getHomeAddressRegion();
|
|
|
|
$homeAddressZip = $vcard->getHomeAddressPostalCode();
|
|
|
|
$homeAddressCountry = $vcard->getHomeAddressCountry();
|
|
|
|
$workAddressLabel = $vcard->getWorkAddressLabel();
|
|
|
|
$workAddressStreet = $vcard->getWorkAddressStreet();
|
|
|
|
$workAddressCity = $vcard->getWorkAddressCity();
|
|
|
|
$workAddressState = $vcard->getWorkAddressRegion();
|
|
|
|
$workAddressZip = $vcard->getWorkAddressPostalCode();
|
|
|
|
$workAddressCountry = $vcard->getWorkAddressCountry();
|
|
|
|
@endphp --}}
|
|
|
|
|
2023-03-27 19:04:41 +02:00
|
|
|
<label for='title' class='form-label'>Custom Title</label>
|
2023-03-28 14:19:37 +02:00
|
|
|
<input type='text' name='link_title' value='{{ $link_title }}' class='form-control' />
|
2023-03-27 19:04:41 +02:00
|
|
|
<span class='small text-muted'>Leave blank for default title</span><br>
|
2023-03-28 14:19:37 +02:00
|
|
|
{{$link_url}}
|
2023-03-27 19:04:41 +02:00
|
|
|
<br><h5>Upload existing file</h5>
|
|
|
|
<div class="form-group col-lg-8">
|
|
|
|
<label>Vcard</label>
|
|
|
|
<input type="file" accept="text/vcard" class="form-control-file" name="vcard">
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<br><h4>Name</h4>
|
|
|
|
<label for='prefix' class='form-label'>Prefix</label>
|
2023-03-28 14:19:37 +02:00
|
|
|
<input type='text' name='prefix' value='{{$prefix ?? ''}}' class='form-control'/>
|
2023-03-27 19:04:41 +02:00
|
|
|
<br>
|
|
|
|
<label for='first_name' class='form-label'>First Name</label>
|
2023-03-28 14:19:37 +02:00
|
|
|
<input type='text' name='first_name' value='{{$firstName ?? ''}}' class='form-control'/>
|
2023-03-27 19:04:41 +02:00
|
|
|
<br>
|
|
|
|
<label for='middle_name' class='form-label'>Middle Name</label>
|
2023-03-28 14:19:37 +02:00
|
|
|
<input type='text' name='middle_name' value='{{$middleName ?? ''}}' class='form-control'/>
|
2023-03-27 19:04:41 +02:00
|
|
|
<br>
|
|
|
|
<label for='last_name' class='form-label'>Last Name</label>
|
2023-03-28 14:19:37 +02:00
|
|
|
<input type='text' name='last_name' value='{{$lastName ?? ''}}' class='form-control'/>
|
2023-03-27 19:04:41 +02:00
|
|
|
<br>
|
|
|
|
<label for='suffix' class='form-label'>Suffix</label>
|
2023-03-28 14:19:37 +02:00
|
|
|
<input type='text' name='suffix' value='{{$suffix ?? ''}}' class='form-control'/>
|
2023-03-27 19:04:41 +02:00
|
|
|
<br>
|
|
|
|
{{-- <label for='nickname' class='form-label'>Nickname</label>
|
2023-03-28 14:19:37 +02:00
|
|
|
<input type='text' name='nickname' value='{{ ?? ''}}' class='form-control'/>
|
2023-03-27 19:04:41 +02:00
|
|
|
<br> --}}
|
|
|
|
|
|
|
|
<br><h4>Work</h4>
|
|
|
|
<label for='organization' class='form-label'>Organization</label>
|
2023-03-28 14:19:37 +02:00
|
|
|
<input type='text' name='organization' value='{{$organization ?? ''}}' class='form-control'/>
|
2023-03-27 19:04:41 +02:00
|
|
|
<br>
|
2023-03-28 14:19:37 +02:00
|
|
|
<label for='vtitle' class='form-label'>Title</label>
|
|
|
|
<input type='text' name='vtitle' value='{{$vtitle ?? ''}}' class='form-control'/>
|
2023-03-27 19:04:41 +02:00
|
|
|
<br>
|
|
|
|
<label for='role' class='form-label'>Role</label>
|
2023-03-28 14:19:37 +02:00
|
|
|
<input type='text' name='role' value='{{$role ?? ''}}' class='form-control'/>
|
2023-03-27 19:04:41 +02:00
|
|
|
<br>
|
|
|
|
<label for='work_url' class='form-label'>Work URL</label>
|
2023-03-28 14:19:37 +02:00
|
|
|
<input type='url' name='work_url' value='{{$workUrl ?? ''}}' class='form-control'/>
|
2023-03-27 19:04:41 +02:00
|
|
|
<br>
|
|
|
|
|
|
|
|
<br><h4>Emails</h4>
|
|
|
|
<label for='email' class='form-label'>Email</label>
|
2023-03-28 14:19:37 +02:00
|
|
|
<input type='email' name='email' value='{{$email ?? ''}}' class='form-control'/>
|
2023-03-27 19:04:41 +02:00
|
|
|
<span class='small text-muted'>Enter your personal email</span>
|
|
|
|
<br>
|
|
|
|
<label for='work_email' class='form-label'>Work Email</label>
|
2023-03-28 14:19:37 +02:00
|
|
|
<input type='email' name='work_email' value='{{$workEmail ?? ''}}' class='form-control'/>
|
2023-03-27 19:04:41 +02:00
|
|
|
<span class='small text-muted'>Enter your work email</span>
|
|
|
|
<br>
|
|
|
|
|
|
|
|
<br><h4>Phones</h4>
|
|
|
|
<label for='home_phone' class='form-label'>Home Phone</label>
|
2023-03-28 14:19:37 +02:00
|
|
|
<input type='tel' name='home_phone' value='{{$homePhone ?? ''}}' class='form-control'/>
|
2023-03-27 19:04:41 +02:00
|
|
|
<br>
|
|
|
|
<label for='work_phone' class='form-label'>Work Phone</label>
|
2023-03-28 14:19:37 +02:00
|
|
|
<input type='tel' name='work_phone' value='{{$workPhone ?? ''}}' class='form-control'/>
|
2023-03-27 19:04:41 +02:00
|
|
|
<br>
|
|
|
|
<label for='cell_phone' class='form-label'>Cell Phone</label>
|
2023-03-28 14:19:37 +02:00
|
|
|
<input type='tel' name='cell_phone' value='{{$cellPhone ?? ''}}' class='form-control'/>
|
2023-03-27 19:04:41 +02:00
|
|
|
<br>
|
|
|
|
|
|
|
|
<br><h4>Home Address</h4>
|
|
|
|
<label for='home_address_label' class='form-label'>Label</label>
|
2023-03-28 14:19:37 +02:00
|
|
|
<input type='text' name='home_address_label' value='{{$homeAddressLabel ?? ''}}' class='form-control'/>
|
2023-03-27 19:04:41 +02:00
|
|
|
<br>
|
|
|
|
<label for='home_address_street' class='form-label'>Street</label>
|
2023-03-28 14:19:37 +02:00
|
|
|
<input type='text' name='home_address_street' value='{{$homeAddressStreet ?? ''}}' class='form-control'/>
|
2023-03-27 19:04:41 +02:00
|
|
|
<br>
|
|
|
|
<label for='home_address_city' class='form-label'>City</label>
|
2023-03-28 14:19:37 +02:00
|
|
|
<input type='text' name='home_address_city' value='{{$homeAddressCity ?? ''}}' class='form-control'/>
|
2023-03-27 19:04:41 +02:00
|
|
|
<br>
|
|
|
|
<label for='home_address_state' class='form-label'>State/Province</label>
|
2023-03-28 14:19:37 +02:00
|
|
|
<input type='text' name='home_address_state' value='{{$homeAddressState ?? ''}}' class='form-control'/>
|
2023-03-27 19:04:41 +02:00
|
|
|
<br>
|
|
|
|
<label for='home_address_zip' class='form-label'>Zip/Postal Code</label>
|
2023-03-28 14:19:37 +02:00
|
|
|
<input type='text' name='home_address_zip' value='{{$homeAddressZip ?? ''}}' class='form-control'/>
|
2023-03-27 19:04:41 +02:00
|
|
|
<br>
|
|
|
|
<label for='home_address_country' class='form-label'>Country</label>
|
2023-03-28 14:19:37 +02:00
|
|
|
<input type='text' name='home_address_country' value='{{$homeAddressCountry ?? ''}}' class='form-control'/>
|
2023-03-27 19:04:41 +02:00
|
|
|
<br>
|
|
|
|
<br><h4>Work Address</h4>
|
|
|
|
<label for='work_address_label' class='form-label'>Label</label>
|
2023-03-28 14:19:37 +02:00
|
|
|
<input type='text' name='work_address_label' value='{{$workAddressLabel ?? ''}}' class='form-control'/>
|
2023-03-27 19:04:41 +02:00
|
|
|
<br>
|
|
|
|
<label for='work_address_street' class='form-label'>Street</label>
|
2023-03-28 14:19:37 +02:00
|
|
|
<input type='text' name='work_address_street' value='{{$workAddressStreet ?? ''}}' class='form-control'/>
|
2023-03-27 19:04:41 +02:00
|
|
|
<br>
|
|
|
|
<label for='work_address_city' class='form-label'>City</label>
|
2023-03-28 14:19:37 +02:00
|
|
|
<input type='text' name='work_address_city' value='{{$workAddressCity ?? ''}}' class='form-control'/>
|
2023-03-27 19:04:41 +02:00
|
|
|
<br>
|
|
|
|
<label for='work_address_state' class='form-label'>State/Province</label>
|
2023-03-28 14:19:37 +02:00
|
|
|
<input type='text' name='work_address_state' value='{{$workAddressState ?? ''}}' class='form-control'/>
|
2023-03-27 19:04:41 +02:00
|
|
|
<br>
|
|
|
|
<label for='work_address_zip' class='form-label'>Zip/Postal Code</label>
|
2023-03-28 14:19:37 +02:00
|
|
|
<input type='text' name='work_address_zip' value='{{$workAddressZip ?? ''}}' class='form-control'/>
|
2023-03-27 19:04:41 +02:00
|
|
|
<br>
|
|
|
|
<label for='work_address_country' class='form-label'>Country</label>
|
2023-03-28 14:19:37 +02:00
|
|
|
<input type='text' name='work_address_country' value='{{$workAddressCountry ?? ''}}' class='form-control'/>
|
2023-03-27 19:04:41 +02:00
|
|
|
<br>
|
|
|
|
|