30 lines
1.5 KiB
PHP
30 lines
1.5 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('Add Comment') }}</h2>
|
||
|
<?php createButton('btn-primary btn-cancel', '', 'Cancel', route('comments.index')); ?>
|
||
|
|
||
|
</div>
|
||
|
<div class='card-body'>
|
||
|
<form action="{{ route('comments.store') }}" id="storeCustomForm" method="POST">
|
||
|
@csrf
|
||
|
<div class="row">
|
||
|
<div class="col-lg-6">
|
||
|
{{ createCustomSelect('tbl_comments', 'content', 'id', '', 'Parent Id', 'parent_id', 'form-control select2', 'status<>-1') }}
|
||
|
</div>
|
||
|
<div class="col-lg-6">
|
||
|
{{ createCustomSelect('tbl_users', 'name', 'id', '', 'Users Id', 'users_id', 'form-control select2', 'status<>-1') }}
|
||
|
</div>
|
||
|
<div class="col-lg-6">
|
||
|
{{ createCustomSelect('tbl_news', 'title', 'news_id', '', 'News Id', 'news_id', 'form-control select2', 'status<>-1') }}
|
||
|
</div>
|
||
|
<div class="col-lg-12 pb-3"> {{createPlainTextArea('content', 'content', 'Content')}}</div> <br>
|
||
|
<div class="col-md-12"><?php createButton('btn-primary btn-store', '', 'Submit'); ?>
|
||
|
<?php createButton('btn-primary btn-cancel', '', 'Cancel', route('comments.index')); ?>
|
||
|
</div>
|
||
|
</form>
|
||
|
</div>
|
||
|
</div>
|
||
|
@endsection
|