<?php $__env->startSection('content'); ?>
<div class="clearfix">
    <div class="full-width-container">
        <?php echo $__env->make('masterHeaderAdmin', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
        <main class="main-container">
            <?php echo $__env->make('masterSidebar', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
            <div class="page-body">
                <div class="nav-breadcrumbs">
                    <ul class="breadcrumbs">
                        <li>
                            <a href="<?php echo e(route('admin')); ?>" class="breadcrumbs-link">TRANG CHỦ</a>
                        </li>
                        <li>
                            <a href="<?php echo e(route('quanlytintuc')); ?>" class="breadcrumbs-link">QUẢN LÝ TIN TỨC</a>
                        </li>
                        <li>
                            <a href="<?php echo e(route('baiviet')); ?>" class="breadcrumbs-link">THÔNG TIN TUYỂN SINH</a>
                        </li>
                    </ul>
                    <a href="<?php echo e(route('quanlytintuc')); ?>" class="page-button">
                        <i class="fa-solid fa-rotate-left"></i> Quay lại
                    </a>
                </div>
                <form action="<?php echo e(route('post_tintuc')); ?>" class="page-editor page-form-table" method="POST" enctype="multipart/form-data">
                    <label for="table-form-label"
                        class="page-button table-form__label table-form__label--float-right">
                        <i class="fas fa-save"></i>
                        <input type="submit" name="luu" size="0" class="table-form__submit-button" id="table-form-label"
                            value="Lưu thông tin">
                    </label>
                    <?php echo $__env->make('alert', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
                    <h2>Tiêu đề</h2>
                    <div class="page-editor">
                        <input type="text" name="tieude" class="header-input" placeholder="Nhập tiêu đề cho bài viết...">
                    </div>
                    <h2>Loại tin</h2>
                    <div class="page-editor">
                        <select size="0" class="table__input-text header-input" name="loaitin" required>
                            <option selected disabled>Chọn loại tin</option>
                            <?php $__currentLoopData = $loaitins; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $loaitin): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                            <option value="<?php echo e($loaitin->MaLoaiTin); ?>" ><?php echo e($loaitin->TenLoaiTin); ?></option>
                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                        </select>
                    </div>
                    <h2>Tóm tắt</h2>
                    <div class="page-editor">
                        <input type="text" class="header-input" placeholder="Nhập nội dung tóm tắt cho bài viết..." value="" name="tomtat">
                    </div>
                    <h2>Hình đại diện</h2>
                    <div>
                        <div>
                            <img id="banner-upload-img">
                        </div>
                        <label class="page-button">
                            <i class="fa-solid fa-upload"></i>
                            Tải lên
                            <input type="file" class="page-button page-button--hidden" name="hinhanh" id="banner-upload" onchange="showUploadedImage(this, 'banner-upload-img', 'replace')" accept="image/*">
                        </label>
                    </div>
                    <h2>Nội dung</h2>
                    <div>
                        <div class="document-editor__toolbar"></div>
                        
                        <textarea name="noidung" rows="50" id="editor"></textarea>
                    </div>
                    <script>

                        CKEDITOR.replace( 'editor', {
                                            filebrowserBrowseUrl: '/browser/browse.php',
                                            filebrowserUploadUrl: '/uploader/upload.php'
                                        });
                        CKEDITOR.config.height="75vh";
                    </script>
                <?php echo csrf_field(); ?>
                </form>
            </div>
        </main>

    </div>
</div>



<?php $__env->stopSection(); ?>

<?php echo $__env->make('masterAdmin', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH C:\laragon\www\tuyensinh\resources\views/admin/baiviet.blade.php ENDPATH**/ ?>