Changed the project structure.

This commit is contained in:
2024-04-25 19:56:34 +05:00
parent 01153867b3
commit 85e181e51c
392 changed files with 362 additions and 316 deletions

View File

@@ -0,0 +1,5 @@
@csrf
<x-private.forms.input :title="__('validation.attributes.title')" name="title" type="text" :value="$captchaToken->title" required autofocus />
@canany(['create', 'update'], $captchaToken)
<button class="btn btn-primary" type="submit">{{ __('Save') }}</button>
@endcanany

View File

@@ -0,0 +1,8 @@
@can('create', \App\Models\CaptchaToken::class)
<div class="mb-4">
<a href="{{ route('captcha-tokens.create') }}" class="btn btn-secondary d-inline-flex align-items-center me-2">
<svg class="icon icon-xs me-2" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 6v6m0 0v6m0-6h6m-6 0H6"></path></svg>
{{ __('Create') }}
</a>
</div>
@endcan

View File

@@ -0,0 +1,16 @@
@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.store') }}">
@include('private.captcha_tokens._from')
</form>
</div>
</div>
</div>
</div>
</x-private.layout>

View File

@@ -0,0 +1,29 @@
@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>

View File

@@ -0,0 +1,50 @@
@section('meta_title', __('sections.Captcha tokens'))
@section('h1', __('sections.Captcha tokens'))
<x-private.layout>
@include('private.captcha_tokens._top')
<div class="card border-0 shadow mb-4">
<div class="card-body">
<div class="table-responsive">
<table class="table table-centered table-nowrap mb-0 rounded">
<thead class="thead-light">
<tr>
<th class="border-0">{{ __('validation.attributes.title') }}</th>
<th class="border-0 rounded-end" style="width: 150px"></th>
</tr>
</thead>
<tbody>
@foreach($captchaTokens as $captchaToken)
<tr>
<td>
<a href="{{ route('captcha-tokens.edit', $captchaToken) }}" class="fw-bold">
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="align-text-top" viewBox="0 0 16 16">
<path d="M12.854.146a.5.5 0 0 0-.707 0L10.5 1.793 14.207 5.5l1.647-1.646a.5.5 0 0 0 0-.708l-3-3zm.646 6.061L9.793 2.5 3.293 9H3.5a.5.5 0 0 1 .5.5v.5h.5a.5.5 0 0 1 .5.5v.5h.5a.5.5 0 0 1 .5.5v.5h.5a.5.5 0 0 1 .5.5v.207l6.5-6.5zm-7.468 7.468A.5.5 0 0 1 6 13.5V13h-.5a.5.5 0 0 1-.5-.5V12h-.5a.5.5 0 0 1-.5-.5V11h-.5a.5.5 0 0 1-.5-.5V10h-.5a.499.499 0 0 1-.175-.032l-.179.178a.5.5 0 0 0-.11.168l-2 5a.5.5 0 0 0 .65.65l5-2a.5.5 0 0 0 .168-.11l.178-.178z"/>
</svg>
{{ $captchaToken->title }}
</a>
</td>
<td>
@can('delete', $captchaToken)
<form method="post" action="{{ route('captcha-tokens.destroy', $captchaToken) }}">
@csrf
@method('DELETE')
<button type="submit" class="btn btn-danger click-confirm">
{{ __('Delete') }}
</button>
</form>
@endcan
</td>
</tr>
@endforeach
</tbody>
</table>
<div class="card-footer border-0">
{{ $captchaTokens->links() }}
</div>
</div>
</div>
</div>
@push('scripts')
@include('private._scripts._click-confirm', ['alert' => __('Do you want to delete?')])
@endpush
</x-private.layout>