first upload all files
This commit is contained in:
6
Modules/Meta/Resources/lang/en/attributes.php
Normal file
6
Modules/Meta/Resources/lang/en/attributes.php
Normal file
@@ -0,0 +1,6 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
'meta_title' => 'Meta Title',
|
||||
'meta_description' => 'Meta Description',
|
||||
];
|
||||
33
Modules/Meta/Resources/views/admin/meta_fields.blade.php
Normal file
33
Modules/Meta/Resources/views/admin/meta_fields.blade.php
Normal file
@@ -0,0 +1,33 @@
|
||||
@if ($entity->slug ?? false)
|
||||
{{ Form::text('slug', trans('page::attributes.slug'), $errors, $entity, ['required' => true]) }}
|
||||
@endif
|
||||
|
||||
<div class="form-group">
|
||||
<label for="meta-title" class="col-md-3 control-label text-left">
|
||||
{{ trans('meta::attributes.meta_title') }}
|
||||
</label>
|
||||
|
||||
<div class="col-md-9">
|
||||
<input type="text"
|
||||
name="meta[meta_title]"
|
||||
class="form-control"
|
||||
id="meta-title"
|
||||
value="{{ old("meta.meta_title", optional($entity->meta ?? null)->translate(locale())->meta_title ?? '') }}"
|
||||
>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="meta-description" class="col-md-3 control-label text-left">
|
||||
{{ trans('meta::attributes.meta_description') }}
|
||||
</label>
|
||||
|
||||
<div class="col-md-9">
|
||||
<textarea name="meta[meta_description]"
|
||||
class="form-control"
|
||||
id="meta-description"
|
||||
rows="10"
|
||||
cols="10"
|
||||
>{{ old("meta.meta_description", optional($entity->meta ?? null)->translate(locale())->meta_description ?? '') }}</textarea>
|
||||
</div>
|
||||
</div>
|
||||
Reference in New Issue
Block a user