<?php $__env->startSection('title', 'Edit Article'); ?>
<?php $__env->startSection('page-title', 'Edit Article'); ?>

<?php $__env->startPush('styles'); ?>
<script src="https://cdn.tiny.cloud/1/<?php echo e(config('services.tinymce.api_key', 'no-api-key')); ?>/tinymce/6/tinymce.min.js" referrerpolicy="origin"></script>
<?php $__env->stopPush(); ?>

<?php $__env->startSection('content'); ?>
<div class="mb-6">
    <h2 class="text-xl font-bold text-gray-800">Edit Blog Article</h2>
    <p class="text-sm text-gray-500 mt-1">Any changes submitted again will go back through admin approval before publishing.</p>
</div>

<?php if($blogArticle->status === 'rejected' && $blogArticle->review_note): ?>
    <div class="mb-6 rounded-xl border border-red-200 bg-red-50 px-5 py-4">
        <h3 class="text-sm font-bold text-red-700 mb-1">Admin feedback on this rejection</h3>
        <p class="text-sm text-red-600 whitespace-pre-line"><?php echo e($blogArticle->review_note); ?></p>
    </div>
<?php endif; ?>

<?php echo $__env->make('employee.blog-articles._form', [
    'action' => route('employee.blog-articles.update', $blogArticle),
    'method' => 'PUT',
    'blogArticle' => $blogArticle,
    'categories' => $categories,
], array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?>
<?php $__env->stopSection(); ?>

<?php $__env->startPush('scripts'); ?>
<?php echo $__env->make('admin.blog-articles._tinymce', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?>
<?php $__env->stopPush(); ?>

<?php echo $__env->make('employee.layouts.app', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH C:\xampp\htdocs\gps-migration\resources\views\employee\blog-articles\edit.blade.php ENDPATH**/ ?>