service-captcha/resources/views/private/captcha_tokens/edit.blade.php
Leonid Nikitin 63d3c8cc6e
Add captcha code integration instructions to edit page.
In the captcha tokens edit page, a new section has been added to provide instructions for integrating the captcha code in user's website. This aims to facilitate ease of integration for users, by providing them a readily available code snippet.
2023-12-04 22:44:40 +06:00

30 lines
1.6 KiB
PHP

@section('meta_title', __('sections.Captcha tokens'))
@section('h1', __('sections.Captcha tokens'))
<x-private.layout>
@include('private.captcha_tokens._top')
<div class="row">
<div class="col-12 mb-4">
<div class="card border-0 shadow components-section">
<div class="card-body">
<form method="post" action="{{ route('captcha-tokens.update', $captchaToken) }}">
@method('PUT')
<x-private.forms.input :title="__('validation.attributes.public_token')" name="public_token" type="text" :value="$captchaToken->public_token" disabled />
<x-private.forms.input :title="__('validation.attributes.private_token')" name="private_token" type="text" :value="$captchaToken->private_token" disabled />
@include('private.captcha_tokens._from')
</form>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-12 mb-4">
<div class="card border-0 shadow components-section">
<div class="card-body">
<p>{{ __('Add code to the site') }}:</p>
<textarea style="width: 100%; height: 75px;"><div class="captcha-service-kor-elf" data-domain="{{ rtrim(asset('/'), '/') }}" data-static-path="{{ asset('captcha') }}" data-token="{{ $captchaToken->public_token }}" data-captcha-verified-name="captcha-verified"></div><script src="{{ asset('captcha/script.js') }}" async></script></textarea>
</div>
</div>
</div>
</div>
</x-private.layout>