<?php $__env->startSection('content'); ?>
<section class="section light">
    <div class="container">
        <div class="post-header" style="margin-bottom: 40px;">
            <h1 style="font-size: 3rem;">Edit Impact Stats</h1>
            <p>Update the statistics displayed in the "Our Impact" section on the home page.</p>
        </div>

        <div class="form-container">
            <form action="<?php echo e(route('impact.update')); ?>" method="POST">
                <?php echo csrf_field(); ?>
                <?php echo method_field('PUT'); ?>

                <?php $__currentLoopData = $impacts; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $impact): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                    <div style="background: #f9f9f9; padding: 25px; border-radius: 12px; margin-bottom: 25px; border: 1px solid #eee;">
                        <input type="hidden" name="impacts[<?php echo e($loop->index); ?>][id]" value="<?php echo e($impact->id); ?>">
                        
                        <div style="display: grid; grid-template-columns: 1fr 1fr; gap: 20px;">
                            <div class="form-group" style="margin-bottom: 0;">
                                <label>Stat Label</label>
                                <input type="text" name="impacts[<?php echo e($loop->index); ?>][label]" value="<?php echo e(old('impacts.'.$loop->index.'.label', $impact->label)); ?>" required>
                            </div>

                            <div class="form-group" style="margin-bottom: 0;">
                                <label>Stat Value</label>
                                <input type="text" name="impacts[<?php echo e($loop->index); ?>][value]" value="<?php echo e(old('impacts.'.$loop->index.'.value', $impact->value)); ?>" required>
                            </div>
                        </div>
                    </div>
                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>

                <div style="text-align: right; margin-top: 40px;">
                    <a href="<?php echo e(route('home')); ?>" 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;">Update Stats</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/impact-edit.blade.php ENDPATH**/ ?>