<?php $__env->startSection('content'); ?>
<section class="section light">
    <div class="container">
        <div class="post-header" style="margin-bottom: 40px;">
            <h1 style="font-size: 3rem;">Create New Event</h1>
            <p>Add a new event to the community calendar.</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('events.store')); ?>" method="POST" enctype="multipart/form-data">
                <?php echo csrf_field(); ?>
                <div class="form-group">
                    <label>Event Title</label>
                    <input type="text" name="title" value="<?php echo e(old('title')); ?>" placeholder="e.g., Annual Charity Auction" required autofocus>
                </div>

                <div class="form-group">
                    <label>Description</label>
                    <textarea name="description" rows="5" placeholder="Describe what the event is about..." required><?php echo e(old('description')); ?></textarea>
                </div>

                <div class="form-group">
                    <label>Location</label>
                    <input type="text" name="location" value="<?php echo e(old('location')); ?>" placeholder="e.g., Community Hall, Main St.">
                </div>

                <div style="display: grid; grid-template-columns: 1fr 1fr; gap: 20px;">
                    <div class="form-group">
                        <label>Event Date</label>
                        <input type="date" name="event_date" value="<?php echo e(old('event_date')); ?>" required>
                    </div>

                    <div class="form-group">
                        <label>Event Time (Optional)</label>
                        <input type="time" name="event_time" value="<?php echo e(old('event_time')); ?>">
                    </div>
                </div>

                <div class="form-group">
                    <label>Featured Image (Optional)</label>
                    <input type="file" name="image" accept="image/*">
                </div>

                <div style="text-align: right; margin-top: 40px;">
                    <a href="<?php echo e(route('events')); ?>" 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;">Create Event</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/event-create.blade.php ENDPATH**/ ?>