

<?php $__env->startSection('content'); ?>
    <h1 class="section-title text-4xl"><?php echo e(__('Edit')); ?> <?php echo e(__('Home')); ?></h1>
    <p class="mt-4 text-base leading-8 text-slate-600 dark:text-slate-300">Edit Home page sections (EN/AR). Changes are reflected immediately on the website after saving.</p>

    <form method="POST" action="<?php echo e(route('admin.pages.update', $pageContent)); ?>" class="mt-8 space-y-8">
        <?php echo csrf_field(); ?>
        <?php echo method_field('PUT'); ?>

        <section class="admin-card grid gap-5 lg:grid-cols-2">
            <h2 class="section-title text-2xl lg:col-span-2">Hero</h2>
            <div><label class="label">Eyebrow EN</label><input name="hero_eyebrow_en" class="field" value="<?php echo e(old('hero_eyebrow_en', data_get($home, 'hero.eyebrow.en'))); ?>"></div>
            <div><label class="label">Eyebrow AR</label><input name="hero_eyebrow_ar" class="field" value="<?php echo e(old('hero_eyebrow_ar', data_get($home, 'hero.eyebrow.ar'))); ?>"></div>
            <div><label class="label">Title EN</label><textarea name="hero_title_en" class="field" rows="3"><?php echo e(old('hero_title_en', data_get($home, 'hero.title.en'))); ?></textarea></div>
            <div><label class="label">Title AR</label><textarea name="hero_title_ar" class="field" rows="3"><?php echo e(old('hero_title_ar', data_get($home, 'hero.title.ar'))); ?></textarea></div>
            <div><label class="label">Description EN</label><textarea name="hero_description_en" class="field" rows="4"><?php echo e(old('hero_description_en', data_get($home, 'hero.description.en'))); ?></textarea></div>
            <div><label class="label">Description AR</label><textarea name="hero_description_ar" class="field" rows="4"><?php echo e(old('hero_description_ar', data_get($home, 'hero.description.ar'))); ?></textarea></div>
            <div><label class="label">CTA EN</label><input name="hero_cta_en" class="field" value="<?php echo e(old('hero_cta_en', data_get($home, 'hero.cta.en'))); ?>"></div>
            <div><label class="label">CTA AR</label><input name="hero_cta_ar" class="field" value="<?php echo e(old('hero_cta_ar', data_get($home, 'hero.cta.ar'))); ?>"></div>
        </section>

        <section class="admin-card grid gap-5 lg:grid-cols-2">
            <h2 class="section-title text-2xl lg:col-span-2">Workflow Steps</h2>
            <?php for($i = 1; $i <= 4; $i++): ?>
                <div><label class="label">Step <?php echo e($i); ?> Title EN</label><input name="step_<?php echo e($i); ?>_title_en" class="field" value="<?php echo e(old('step_'.$i.'_title_en', data_get($home, 'scroll_steps.'.($i - 1).'.title.en'))); ?>"></div>
                <div><label class="label">Step <?php echo e($i); ?> Title AR</label><input name="step_<?php echo e($i); ?>_title_ar" class="field" value="<?php echo e(old('step_'.$i.'_title_ar', data_get($home, 'scroll_steps.'.($i - 1).'.title.ar'))); ?>"></div>
                <div><label class="label">Step <?php echo e($i); ?> Text EN</label><textarea name="step_<?php echo e($i); ?>_text_en" class="field" rows="3"><?php echo e(old('step_'.$i.'_text_en', data_get($home, 'scroll_steps.'.($i - 1).'.text.en'))); ?></textarea></div>
                <div><label class="label">Step <?php echo e($i); ?> Text AR</label><textarea name="step_<?php echo e($i); ?>_text_ar" class="field" rows="3"><?php echo e(old('step_'.$i.'_text_ar', data_get($home, 'scroll_steps.'.($i - 1).'.text.ar'))); ?></textarea></div>
            <?php endfor; ?>
        </section>

        <section class="admin-card grid gap-5 lg:grid-cols-2">
            <h2 class="section-title text-2xl lg:col-span-2">Problems</h2>
            <div><label class="label">Problems Title EN</label><textarea name="problems_title_en" class="field" rows="3"><?php echo e(old('problems_title_en', data_get($home, 'problems.title.en'))); ?></textarea></div>
            <div><label class="label">Problems Title AR</label><textarea name="problems_title_ar" class="field" rows="3"><?php echo e(old('problems_title_ar', data_get($home, 'problems.title.ar'))); ?></textarea></div>

            <div><label class="label">Problem 1 Before EN</label><input name="problem_1_before_en" class="field" value="<?php echo e(old('problem_1_before_en', data_get($home, 'problems.items.0.before.en'))); ?>"></div>
            <div><label class="label">Problem 1 Before AR</label><input name="problem_1_before_ar" class="field" value="<?php echo e(old('problem_1_before_ar', data_get($home, 'problems.items.0.before.ar'))); ?>"></div>
            <div><label class="label">Problem 1 After EN</label><input name="problem_1_after_en" class="field" value="<?php echo e(old('problem_1_after_en', data_get($home, 'problems.items.0.after.en'))); ?>"></div>
            <div><label class="label">Problem 1 After AR</label><input name="problem_1_after_ar" class="field" value="<?php echo e(old('problem_1_after_ar', data_get($home, 'problems.items.0.after.ar'))); ?>"></div>

            <div><label class="label">Problem 2 Before EN</label><input name="problem_2_before_en" class="field" value="<?php echo e(old('problem_2_before_en', data_get($home, 'problems.items.1.before.en'))); ?>"></div>
            <div><label class="label">Problem 2 Before AR</label><input name="problem_2_before_ar" class="field" value="<?php echo e(old('problem_2_before_ar', data_get($home, 'problems.items.1.before.ar'))); ?>"></div>
            <div><label class="label">Problem 2 After EN</label><input name="problem_2_after_en" class="field" value="<?php echo e(old('problem_2_after_en', data_get($home, 'problems.items.1.after.en'))); ?>"></div>
            <div><label class="label">Problem 2 After AR</label><input name="problem_2_after_ar" class="field" value="<?php echo e(old('problem_2_after_ar', data_get($home, 'problems.items.1.after.ar'))); ?>"></div>
        </section>

        <section class="admin-card grid gap-5 lg:grid-cols-2">
            <h2 class="section-title text-2xl lg:col-span-2">Audiences</h2>
            <div><label class="label">Audiences Title EN</label><textarea name="audiences_title_en" class="field" rows="3"><?php echo e(old('audiences_title_en', data_get($home, 'audiences.title.en'))); ?></textarea></div>
            <div><label class="label">Audiences Title AR</label><textarea name="audiences_title_ar" class="field" rows="3"><?php echo e(old('audiences_title_ar', data_get($home, 'audiences.title.ar'))); ?></textarea></div>
            <?php for($i = 1; $i <= 3; $i++): ?>
                <div><label class="label">Audience <?php echo e($i); ?> Key</label><input name="aud_<?php echo e($i); ?>_key" class="field" value="<?php echo e(old('aud_'.$i.'_key', data_get($home, 'audiences.items.'.($i - 1).'.key'))); ?>"></div>
                <div><label class="label">Audience <?php echo e($i); ?> Label EN</label><input name="aud_<?php echo e($i); ?>_label_en" class="field" value="<?php echo e(old('aud_'.$i.'_label_en', data_get($home, 'audiences.items.'.($i - 1).'.label.en'))); ?>"></div>
                <div><label class="label">Audience <?php echo e($i); ?> Label AR</label><input name="aud_<?php echo e($i); ?>_label_ar" class="field" value="<?php echo e(old('aud_'.$i.'_label_ar', data_get($home, 'audiences.items.'.($i - 1).'.label.ar'))); ?>"></div>
                <div><label class="label">Audience <?php echo e($i); ?> Headline EN</label><input name="aud_<?php echo e($i); ?>_headline_en" class="field" value="<?php echo e(old('aud_'.$i.'_headline_en', data_get($home, 'audiences.items.'.($i - 1).'.headline.en'))); ?>"></div>
                <div><label class="label">Audience <?php echo e($i); ?> Headline AR</label><input name="aud_<?php echo e($i); ?>_headline_ar" class="field" value="<?php echo e(old('aud_'.$i.'_headline_ar', data_get($home, 'audiences.items.'.($i - 1).'.headline.ar'))); ?>"></div>
                <div><label class="label">Audience <?php echo e($i); ?> Body EN</label><textarea name="aud_<?php echo e($i); ?>_body_en" class="field" rows="3"><?php echo e(old('aud_'.$i.'_body_en', data_get($home, 'audiences.items.'.($i - 1).'.body.en'))); ?></textarea></div>
                <div><label class="label">Audience <?php echo e($i); ?> Body AR</label><textarea name="aud_<?php echo e($i); ?>_body_ar" class="field" rows="3"><?php echo e(old('aud_'.$i.'_body_ar', data_get($home, 'audiences.items.'.($i - 1).'.body.ar'))); ?></textarea></div>
            <?php endfor; ?>
        </section>

        <section class="admin-card grid gap-5 lg:grid-cols-2">
            <h2 class="section-title text-2xl lg:col-span-2">Behind Scenes</h2>
            <div><label class="label">Section Title EN</label><textarea name="behind_title_en" class="field" rows="3"><?php echo e(old('behind_title_en', data_get($home, 'behind_scenes.title.en'))); ?></textarea></div>
            <div><label class="label">Section Title AR</label><textarea name="behind_title_ar" class="field" rows="3"><?php echo e(old('behind_title_ar', data_get($home, 'behind_scenes.title.ar'))); ?></textarea></div>
            <?php for($i = 1; $i <= 3; $i++): ?>
                <div><label class="label">Item <?php echo e($i); ?> Title EN</label><input name="behind_<?php echo e($i); ?>_title_en" class="field" value="<?php echo e(old('behind_'.$i.'_title_en', data_get($home, 'behind_scenes.items.'.($i - 1).'.title.en'))); ?>"></div>
                <div><label class="label">Item <?php echo e($i); ?> Title AR</label><input name="behind_<?php echo e($i); ?>_title_ar" class="field" value="<?php echo e(old('behind_'.$i.'_title_ar', data_get($home, 'behind_scenes.items.'.($i - 1).'.title.ar'))); ?>"></div>
                <div><label class="label">Item <?php echo e($i); ?> Text EN</label><textarea name="behind_<?php echo e($i); ?>_text_en" class="field" rows="3"><?php echo e(old('behind_'.$i.'_text_en', data_get($home, 'behind_scenes.items.'.($i - 1).'.text.en'))); ?></textarea></div>
                <div><label class="label">Item <?php echo e($i); ?> Text AR</label><textarea name="behind_<?php echo e($i); ?>_text_ar" class="field" rows="3"><?php echo e(old('behind_'.$i.'_text_ar', data_get($home, 'behind_scenes.items.'.($i - 1).'.text.ar'))); ?></textarea></div>
            <?php endfor; ?>
        </section>

        <section class="admin-card grid gap-5 lg:grid-cols-2">
            <h2 class="section-title text-2xl lg:col-span-2">Timeline</h2>
            <?php for($i = 1; $i <= 4; $i++): ?>
                <div><label class="label">Timeline <?php echo e($i); ?> Title EN</label><input name="timeline_<?php echo e($i); ?>_title_en" class="field" value="<?php echo e(old('timeline_'.$i.'_title_en', data_get($home, 'timeline.'.($i - 1).'.title.en'))); ?>"></div>
                <div><label class="label">Timeline <?php echo e($i); ?> Title AR</label><input name="timeline_<?php echo e($i); ?>_title_ar" class="field" value="<?php echo e(old('timeline_'.$i.'_title_ar', data_get($home, 'timeline.'.($i - 1).'.title.ar'))); ?>"></div>
                <div><label class="label">Timeline <?php echo e($i); ?> Text EN</label><textarea name="timeline_<?php echo e($i); ?>_text_en" class="field" rows="3"><?php echo e(old('timeline_'.$i.'_text_en', data_get($home, 'timeline.'.($i - 1).'.text.en'))); ?></textarea></div>
                <div><label class="label">Timeline <?php echo e($i); ?> Text AR</label><textarea name="timeline_<?php echo e($i); ?>_text_ar" class="field" rows="3"><?php echo e(old('timeline_'.$i.'_text_ar', data_get($home, 'timeline.'.($i - 1).'.text.ar'))); ?></textarea></div>
            <?php endfor; ?>
        </section>

        <section class="admin-card grid gap-5 lg:grid-cols-2">
            <h2 class="section-title text-2xl lg:col-span-2">Ending</h2>
            <div><label class="label">Ending Title EN</label><textarea name="ending_title_en" class="field" rows="3"><?php echo e(old('ending_title_en', data_get($home, 'ending.title.en'))); ?></textarea></div>
            <div><label class="label">Ending Title AR</label><textarea name="ending_title_ar" class="field" rows="3"><?php echo e(old('ending_title_ar', data_get($home, 'ending.title.ar'))); ?></textarea></div>
            <div><label class="label">Ending CTA EN</label><input name="ending_cta_en" class="field" value="<?php echo e(old('ending_cta_en', data_get($home, 'ending.cta.en'))); ?>"></div>
            <div><label class="label">Ending CTA AR</label><input name="ending_cta_ar" class="field" value="<?php echo e(old('ending_cta_ar', data_get($home, 'ending.cta.ar'))); ?>"></div>
        </section>

        <button class="btn-primary"><?php echo e(__('Save Changes')); ?></button>
    </form>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.admin', ['title' => __('Home').' | Nivex'], array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH C:\xampp\htdocs\Nivex\resources\views/admin/pages/home-form.blade.php ENDPATH**/ ?>