- Convert hardcoded strings and French translation keys to English keys across Blade templates, Vue components, TypeScript modules, models, and routes - Complete and synchronize lang/fr.json and lang/en.json translation dictionaries - Add timezone attribute in lang/fr/validation.php and lang/en/validation.php - Add missing English lang files for parity: crud.php, models.php, search.php, and vue.php
87 lines
3.9 KiB
PHP
87 lines
3.9 KiB
PHP
<div class="row">
|
|
<div class="col">
|
|
<fieldset class="mb-3 border p-3">
|
|
<legend>{{ __('General Information') }}</legend>
|
|
|
|
<div class="row">
|
|
{{-- SEO_TITLE --}}
|
|
<div class="col-12 col-md-6 mb-3">
|
|
<div class="row">
|
|
<div class="col-12 mb-3">
|
|
<label class="col-form-label"
|
|
for="page-seo_title"><b>{{ Str::ucfirst(__('validation.custom.attributes.seo_title')) }}</b></label>
|
|
<div class="word-counter" data-json='@json(['for' => 'page-seo_title'])'></div>
|
|
<input class="form-control" id="page-seo_title" name="seo_title" type="text"
|
|
value="{{ old('seo_title', $page->seo_title ?? '') }}" aria-describedby="page-seo_title-help"
|
|
placeholder="{{ Str::ucfirst(__('validation.custom.attributes.seo_title')) }}" required>
|
|
@include('bo.modules.input-error', [
|
|
'inputName' => 'seo_title',
|
|
'helperId' => 'page-seo_title-help',
|
|
'helper' => __('Must accurately describe the page, recommendation for optimal search engine positioning (<title> tag).'),
|
|
])
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{{-- SEO_DESCRIPTION --}}
|
|
<div class="col-12 col-md-6 mb-3">
|
|
<div class="row">
|
|
<div class="col-12 mb-3">
|
|
<label class="col-form-label"
|
|
for="page-seo_description"><b>{{ Str::ucfirst(__('validation.custom.attributes.seo_description')) }}</b></label>
|
|
<div class="word-counter" data-json='@json(['for' => 'page-seo_description'])'></div>
|
|
<input class="form-control" id="page-seo_description" name="seo_description" type="text"
|
|
value="{{ old('seo_description', $page->seo_description ?? '') }}" aria-describedby="page-seo_description-help"
|
|
placeholder="{{ Str::ucfirst(__('validation.custom.attributes.seo_description')) }}" required>
|
|
@include('bo.modules.input-error', [
|
|
'inputName' => 'seo_description',
|
|
'helperId' => 'page-seo_description-help',
|
|
'helper' => __('Must accurately describe the page content (<meta> description tag).'),
|
|
])
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="row mb-3">
|
|
<div class="col-12 col-md-6 form-group">
|
|
<label class="col-form-label" for="page-title"><b>{{ Str::ucfirst(__('validation.attributes.title')) }}</b></label>
|
|
<div class="word-counter" data-json='@json(['for' => 'page-title'])'></div>
|
|
<input class="form-control" id="page-title" name="title" type="text" value="{{ old('title', $page->title ?? '') }}"
|
|
aria-describedby="page-title-help" placeholder="{{ Str::ucfirst(__('validation.attributes.title')) }}">
|
|
@include('bo.modules.input-error', [
|
|
'inputName' => 'title',
|
|
'helperId' => 'page-title-help',
|
|
'helper' => __('Page title (can be empty for some keys).'),
|
|
])
|
|
</div>
|
|
</div>
|
|
</fieldset>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="row">
|
|
<div class="col">
|
|
<fieldset class="mb-3 border p-3">
|
|
<legend>{{ __('Content') }}</legend>
|
|
|
|
<div class="row">
|
|
<div class="col form-group">
|
|
<label class="col-form-label" for="page-content"><b>{{ Str::ucfirst(__('Main content (HTML)')) }}</b></label>
|
|
@include('bo.modules.input-error', [
|
|
'inputName' => 'content',
|
|
'helper' => __('Complete content of the page.'),
|
|
])
|
|
@php
|
|
$editor = [
|
|
'id' => 'page-content',
|
|
'csrf' => csrf_token(),
|
|
'name' => 'content',
|
|
'text' => old('content', $page->content ?? '') ?? '',
|
|
];
|
|
@endphp
|
|
<div class="ck-editor" data-json='@json($editor)'></div>
|
|
</div>
|
|
</div>
|
|
</fieldset>
|
|
</div>
|
|
</div>
|