{{ __('messages.vcard.edit_custom_link') }}

{!! Form::open(['id' => 'editCustomLinkForm']) !!}
{{ Form::hidden('vcard_id', $vcard->id) }} {{ Form::hidden('custom_link_id', null, ['id' => 'customLinkId']) }} @method('PUT')
{{ Form::label('link_name', __('messages.custom_links.link_name') . ':', ['class' => 'form-label required']) }} {{ Form::text('link_name', isset($customLink->link_name) ? $customLink->link_name : null, ['class' => 'form-control form-control-color w-100 mb-7', 'required', 'placeholder' => __('messages.custom_links.link_name'), 'id' => 'edit_link_name']) }}
{{ Form::label('link', __('messages.custom_links.link') . ':', ['class' => 'form-label required']) }} {{ Form::text('link', isset($customLink->link) ? $customLink->link : null, ['class' => 'form-control form-control-color w-100 mb-7', 'required', 'placeholder' => __('messages.custom_links.link'), 'id' => 'edit_link']) }}
{{ Form::label('button_color Color', __('messages.custom_links.button_color') . ':', ['class' => 'form-label']) }} {{ Form::color('button_color', isset($customLink->button_color) ? $customLink->button_color : null, ['class' => 'form-control form-control-color w-100 mb-7 mx-md-0 mx-auto', 'id' => 'edit_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, isset($customLink['button_type']) ? $customLink['button_type'] : null, ['class' => 'form-control form-select', 'data-control' => 'select2', 'id' => 'editButtonType', 'wire:ignore']) }}
{{ Form::label('show_as_button', __('messages.custom_links.show_as_button') . ':', ['class' => 'form-label']) }}
{{ Form::checkbox('show_as_button', 1, 0, ['class' => 'form-check-input mt-0 ', 'id' => 'editShowAsButton']) }}
{{ Form::label('open_new_tab', __('messages.custom_links.open_in_new_tab') . ':', ['class' => 'form-label']) }}
{{ Form::checkbox('open_new_tab', 1, 0, ['class' => 'form-check-input mt-0 ', 'id' => 'editOpenNewTab']) }}
{{ Form::button(__('messages.common.save'), ['class' => 'btn btn-primary m-0', 'id' => 'customLinkUpdateBtn', 'type' => 'submit']) }} {{ Form::button(__('messages.common.discard'), ['class' => 'btn btn-secondary my-0 ms-5 me-0', 'data-bs-dismiss' => 'modal']) }}
{!! Form::close() !!}