

<?php $__env->startSection('content'); ?>
<section class="section light">
    <div class="container">
        <div class="post-header" style="margin-bottom: 40px;">
            <h1 style="font-size: 3rem;">Write a New Story</h1>
            <p>Share your impact, project updates, or community news with the world.</p>
        </div>

        <div class="form-container">
            <?php if($errors->any()): ?>
                <div class="alert-error">
                    <ul style="margin-left: 20px;">
                        <?php $__currentLoopData = $errors->all(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $error): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                            <li><?php echo e($error); ?></li>
                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                    </ul>
                </div>
            <?php endif; ?>

            <form action="<?php echo e(route('blog.store')); ?>" method="POST" enctype="multipart/form-data">
                <?php echo csrf_field(); ?>
                <div class="form-group">
                    <label>Post Title</label>
                    <input type="text" name="title" value="<?php echo e(old('title')); ?>" placeholder="Enter a catchy title..." required autofocus>
                </div>

                <div class="form-group">
                    <label>Short Excerpt (Optional)</label>
                    <textarea name="excerpt" rows="3" placeholder="A brief summary of your post..."><?php echo e(old('excerpt')); ?></textarea>
                </div>

                <div class="form-group">
                    <label>Article Content</label>
                    <textarea name="content" rows="12" placeholder="Start writing your story here..." required><?php echo e(old('content')); ?></textarea>
                </div>

                <div class="form-group">
                    <label>Featured Image</label>
                    <input type="file" name="image" accept="image/*">
                    <p style="font-size: 0.8rem; color: #888; margin-top: 10px;">Recommended size: 1200x600px (Max 5MB)</p>
                </div>

                <div style="text-align: right; margin-top: 40px;">
                    <a href="<?php echo e(route('blog')); ?>" style="margin-right: 20px; color: #666; text-decoration: none; font-weight: 600;">Cancel</a>
                    <button type="submit" class="button button-primary" style="margin: 0; padding: 16px 50px;">Publish Post</button>
                </div>
            </form>
        </div>
    </div>
</section>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH C:\wamp64\www\Touchfoundation\resources\views/pages/blog-create.blade.php ENDPATH**/ ?>