{{ include('common/header.twig') }}
<div class="page-title">
    <div class="row align-items-center">
        <div class="col-sm-12">
            <h2 class="page-title-text d-inline-block">{{ page_title }}</h2>
            <div class="breadcrumbs d-inline-block">
                <ul>
                    <li><a href="{{ common.info.url }}">Dashboard</a></li>
                    <li>{{ result.name }}</li>
                </ul>
            </div>
        </div>
    </div>
</div>
<!-- payment Type page start -->
<div class="row">
    <div class="col-md-8">
        <form action="{{ action }}" method="post">
            <input type="hidden" name="_token" value="{{ common.token }}">
            <div class="panel panel-default">
                <div class="panel-body">
                    <div class="form-group">
                        <label class="col-form-label">Template Name <span class="form-required">*</span></label>
                        <div class="input-group">
                            <div class="input-group-prepend">
                                <span class="input-group-text"><i class="las la-tag"></i></span>
                            </div>
                            <input type="text" class="form-control" name="mail[name]" value="{{ result.name }}" required>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-form-label">Subject <span class="form-required">*</span></label>
                        <div class="input-group">
                            <div class="input-group-prepend">
                                <span class="input-group-text"><i class="las la-tag"></i></span>
                            </div>
                            <input type="text" class="form-control" name="mail[subject]" value="{{ result.subject }}" required>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-form-label">Body <span class="form-required">*</span></label>
                        <textarea name="mail[message]" class="summernote">{{ result.message }}</textarea>
                    </div>
                    <div class="form-group">
                        <label class="col-form-label">Status</label>
                        <div class="input-group">
                            <div class="input-group-prepend">
                                <span class="input-group-text"><i class="las la-check-square"></i></span>
                            </div>
                            <select name="mail[status]" class="custom-select">
                                <option value="1" {{ result.status == '1' ? 'selected' : false }}>Send Mail</option>
                                <option value="0" {{ result.status == '0' ? 'selected' : false }}>Do not Send Mail</option>
                            </select>
                        </div>
                    </div>
                    <input type="hidden" name="mail[template]" value="{{ result.template }}">
                </div>
                <div class="panel-footer text-center">
                    <button type="submit" name="submit" class="btn btn-primary"><i class="ti-save-alt pr-2"></i> Save</button>
                </div>
            </div>
        </form>
    </div>
    <div class="col-md-4">
        {{ include('template/template_menu.twig') }}
    </div>
</div>
<!-- include summernote css/js-->
<link href="public/css/summernote-bs4.css" rel="stylesheet">
<script type="text/javascript" src="public/js/summernote-bs4.min.js"></script>
<script type="text/javascript" src="public/js/klinikal.summernote.js"></script>
{{ include('common/footer.twig') }}