{!! Form::open(['id' => 'addCustomLinkForm']) !!}
{{ Form::hidden('vcard_id', $vcard->id) }}
{{ Form::label('link_name', __('messages.custom_links.link_name') . ':', ['class' => 'form-label required']) }}
{{ Form::text('link_name', null, ['class' => 'form-control form-control-color w-100 mb-7', 'required', 'placeholder' => __('messages.custom_links.link_name'), 'id' => 'link_name']) }}
{{ Form::label('link', __('messages.custom_links.link') . ':', ['class' => 'form-label required']) }}
{{ Form::text('link', null, ['class' => 'form-control form-control-color w-100 mb-7', 'required', 'placeholder' => __('messages.custom_links.link'), 'id' => 'link']) }}
{{ Form::label('button_color Color', __('messages.custom_links.button_color') . ':', ['class' => 'form-label']) }}
{{ Form::color('button_color', '#6571ff', ['class' => 'form-control form-control-color w-100 mb-7 mx-md-0 mx-auto', 'id' => 'button_color']) }}
@php
$customLinksBtn = collect(App\Models\CustomLink::BUTTON_STYLE)->map(function ($value) {
return trans('messages.custom_link.' . $value);
});
@endphp
{{ Form::select('button_type', $customLinksBtn, null, ['class' => 'form-control form-select', 'data-control' => 'select2', 'id' => 'buttonType']) }}
{{ Form::label('show_as_button', __('messages.custom_links.show_as_button') . ':', ['class' => 'form-label']) }}
{{ Form::label('show_as_button', __('messages.custom_links.open_in_new_tab') . ':', ['class' => 'form-label']) }}