<div class="form-group group-komentar" id="kolom-komentar">
    @if ($single_artikel['boleh_komentar'] == 1)
        <div class="box box-default">
            <div class="box-header">
                <h2 class="box-title">Kirim Komentar</h2>
            </div>
            <hr />
            @php
                $notif = session('notif');
                $label = $notif['status'] == -1 ? 'label-danger' : 'label-info';
            @endphp
            @if ($notif)
                <div class="box-header {{ $label }}">{{ $notif['pesan'] }}</div>
            @endif
            <div class="contact_bottom">
                <form class="contact_form form-komentar" id="validasi" name="form" action="{{ ci_route("add_comment.{$single_artikel['id']}") }}" method="POST" onSubmit="return validasi(this);">
                    <table width="100%">
                        <tr class="komentar nama">
                            <td width="20%">Nama</td>
                            <td>
                                <input class="form-group required" type="text" name="owner" maxlength="50" placeholder="ketik di sini" value="{{ $notif['data']['owner'] }}">
                            </td>
                        </tr>
                        <tr class="komentar alamat">
                            <td>No. Hp</td>
                            <td>
                                <input class="form-group number required" type="text" name="no_hp" maxlength="15" placeholder="ketik di sini" value="{{ $notif['data']['no_hp'] }}">
                            </td>
                        </tr>
                        <tr class="komentar alamat">
                            <td>E-mail</td>
                            <td>
                                <input class="form-group email" type="text" name="email" maxlength="50" placeholder="email@gmail.com" value="{{ $notif['data']['email'] }}">
                            </td>
                        </tr>
                        <tr class="komentar pesan">
                            <td valign="top">Isi Pesan</td>
                            <td>
                                <textarea class="required" name="komentar">{{ $notif['data']['komentar'] }}</textarea>
                            </td>
                        </tr>
                        <tr class="captcha">
                            <td>&nbsp;</td>
                            <td>
                                <a href="#" style="color: #000000;">
                                    <img id="captcha" src="{{ ci_route('captcha') }}" onclick="document.getElementById('captcha').src = '{{ ci_route('captcha') }}?' + Math.random();" alt="CAPTCHA Image" />
                                </a>
                                &nbsp;
                                <input type="text" name="captcha_code" class="required" maxlength="6" placeholder="Masukkan kode di atas" />
                            </td>
                        </tr>
                        <tr class="submit">
                            <td>&nbsp;</td>
                            <td><input type="submit" value="Kirim"></td>
                        </tr>
                    </table>
                </form>
            </div>
        </div>
    @else
        <span class='info'></span>
    @endif
</div>
