41 lines
2.4 KiB
PHP
41 lines
2.4 KiB
PHP
@extends('backend.template')
|
|
@section('content')
|
|
<div class='card'>
|
|
<div class='card-header d-flex justify-content-between align-items-center'>
|
|
<h2 class="">{{ label('Edit Article') }}</h2>
|
|
<?php createButton('btn-primary btn-cancel', '', 'Cancel', route('articles.index')); ?>
|
|
|
|
</div>
|
|
<div class='card-body'>
|
|
<form action="{{ route('articles.update', [$data->article_id]) }}" id="updateCustomForm" method="POST">
|
|
@csrf <input type=hidden name='article_id' value='{{ $data->article_id }}' />
|
|
<div class="row">
|
|
<div class="col-lg-6">
|
|
{{ createCustomSelect('tbl_articles', 'title', 'article_id', $data->parent_article, 'Parent Article', 'parent_article', 'form-control select2', 'status<>-1') }}
|
|
</div>
|
|
<div class="col-lg-6">{{ createText('title', 'title', 'Title', '', $data->title) }}
|
|
</div>
|
|
<div class="col-lg-6">{{ createText('subtitle', 'subtitle', 'Subtitle', '', $data->subtitle) }}
|
|
</div>
|
|
<div class="col-lg-12 pb-2">{{ createTextarea('text', 'text ckeditor-classic', 'Text', $data->text) }}
|
|
</div>
|
|
<div class="col-lg-12 pb-2">{{ createImageInput('cover_photo', 'Cover Photo', '', $data->cover_photo) }}
|
|
</div>
|
|
<div class="col-lg-12 pb-2">
|
|
{{ createPlainTextArea('seo_keywords', '', 'Seo Keywords', $data->seo_keywords) }}
|
|
</div>
|
|
<div class="col-lg-6">{{ createText('seo_title', 'seo_title', 'Seo Title', '', $data->seo_title) }}
|
|
</div>
|
|
<div class="col-lg-12 pb-2">
|
|
{{ createPlainTextArea('seo_descriptions', '', 'Seo Descriptions', $data->seo_descriptions) }}
|
|
</div>
|
|
<div class="col-lg-12 pb-2">{{ createPlainTextArea('og_tags', '', 'Og Tags', $data->og_tags) }}
|
|
</div>
|
|
<div class="col-md-12"><?php createButton('btn-primary btn-update', '', 'Submit'); ?>
|
|
<?php createButton('btn-primary btn-cancel', '', 'Cancel', route('articles.index')); ?>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
@endsection
|