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