<?php $__env->startSection('title', $title); ?>
<?php $__env->startSection('ad_page_title', 'Edit About Us Page'); ?>
<?php $__env->startSection('ad_page_subtitle', 'Edit labels/text (EN/AR) + SEO'); ?>

<?php $__env->startSection('ad_content'); ?>
    <?php
        $contentEn = $contentEn ?? [];
        $contentAr = $contentAr ?? [];
    ?>

    <div class="container-fluid py-4">
        <div class="mb-4">
            <h1 class="h3 mb-1">About Us Page</h1>
            <p class="text-muted mb-0">Hero, story sections, CTA band, and contact block.</p>
        </div>

        <?php if(session('success')): ?>
            <div class="alert alert-success" role="alert"><?php echo e(session('success')); ?></div>
        <?php endif; ?>

        <?php if($errors->any()): ?>
            <div class="alert alert-danger" role="alert">
                <ul class="mb-0">
                    <?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('admin.pages.about-us.update')); ?>" method="POST">
            <?php echo csrf_field(); ?>
            <?php echo method_field('PUT'); ?>

            <div class="card shadow-sm border-0">
                <div class="card-body p-4">
                    <ul class="nav nav-tabs mb-4" role="tablist">
                        <li class="nav-item" role="presentation">
                            <button class="nav-link active" type="button" data-bs-toggle="tab" data-bs-target="#tab-en" role="tab">English</button>
                        </li>
                        <li class="nav-item" role="presentation">
                            <button class="nav-link" type="button" data-bs-toggle="tab" data-bs-target="#tab-ar" role="tab" dir="rtl">Arabic</button>
                        </li>
                    </ul>

                    <div class="tab-content">
                        <div class="tab-pane fade show active" id="tab-en" role="tabpanel">
                            <div class="row g-4">
                                <div class="col-12"><div class="fw-bold mb-2">Hero</div></div>
                                <div class="col-12">
                                    <label class="form-label">Image alt</label>
                                    <input class="form-control" name="en[hero][image_alt]" value="<?php echo e(old('en.hero.image_alt', data_get($contentEn, 'hero.image_alt'))); ?>">
                                </div>
                                <div class="col-lg-4">
                                    <label class="form-label">Mini bar</label>
                                    <input class="form-control" name="en[hero][mini_bar]" value="<?php echo e(old('en.hero.mini_bar', data_get($contentEn, 'hero.mini_bar'))); ?>">
                                </div>
                                <div class="col-lg-8">
                                    <label class="form-label">H1</label>
                                    <input class="form-control" name="en[hero][h1]" value="<?php echo e(old('en.hero.h1', data_get($contentEn, 'hero.h1'))); ?>">
                                </div>
                                <div class="col-12">
                                    <label class="form-label">Lead</label>
                                    <textarea class="form-control" rows="2" name="en[hero][lead]"><?php echo e(old('en.hero.lead', data_get($contentEn, 'hero.lead'))); ?></textarea>
                                </div>
                                <?php for($i = 0; $i < 4; $i++): ?>
                                    <div class="col-12">
                                        <label class="form-label">Feature line <?php echo e($i + 1); ?> (HTML ok)</label>
                                        <textarea class="form-control" rows="2" name="en[hero][features][<?php echo e($i); ?>]"><?php echo e(old('en.hero.features.'.$i, data_get($contentEn, 'hero.features.'.$i))); ?></textarea>
                                    </div>
                                <?php endfor; ?>
                                <div class="col-lg-4">
                                    <label class="form-label">Primary CTA text</label>
                                    <input class="form-control" name="en[hero][primary_cta][text]" value="<?php echo e(old('en.hero.primary_cta.text', data_get($contentEn, 'hero.primary_cta.text'))); ?>">
                                </div>
                                <div class="col-lg-4">
                                    <label class="form-label">Primary CTA href</label>
                                    <input class="form-control" name="en[hero][primary_cta][href]" value="<?php echo e(old('en.hero.primary_cta.href', data_get($contentEn, 'hero.primary_cta.href'))); ?>">
                                </div>
                                <div class="col-lg-4">
                                    <label class="form-label">Secondary CTA text</label>
                                    <input class="form-control" name="en[hero][secondary_cta][text]" value="<?php echo e(old('en.hero.secondary_cta.text', data_get($contentEn, 'hero.secondary_cta.text'))); ?>">
                                </div>
                                <div class="col-lg-4">
                                    <label class="form-label">Secondary CTA href</label>
                                    <input class="form-control" name="en[hero][secondary_cta][href]" value="<?php echo e(old('en.hero.secondary_cta.href', data_get($contentEn, 'hero.secondary_cta.href'))); ?>">
                                </div>

                                <div class="col-12"><hr class="my-2"><div class="fw-bold mb-2">Center intro</div></div>
                                <div class="col-lg-4">
                                    <label class="form-label">Kicker</label>
                                    <input class="form-control" name="en[center][kicker]" value="<?php echo e(old('en.center.kicker', data_get($contentEn, 'center.kicker'))); ?>">
                                </div>
                                <div class="col-lg-4">
                                    <label class="form-label">H2</label>
                                    <input class="form-control" name="en[center][h2]" value="<?php echo e(old('en.center.h2', data_get($contentEn, 'center.h2'))); ?>">
                                </div>
                                <div class="col-12">
                                    <label class="form-label">Lead</label>
                                    <textarea class="form-control" rows="2" name="en[center][lead]"><?php echo e(old('en.center.lead', data_get($contentEn, 'center.lead'))); ?></textarea>
                                </div>

                                <div class="col-12"><div class="fw-bold mb-2">Cards</div></div>
                                <div class="col-lg-6">
                                    <label class="form-label">Who — title</label>
                                    <input class="form-control" name="en[cards][who_title]" value="<?php echo e(old('en.cards.who_title', data_get($contentEn, 'cards.who_title'))); ?>">
                                </div>
                                <div class="col-lg-6">
                                    <label class="form-label">Who — paragraph 1</label>
                                    <textarea class="form-control" rows="2" name="en[cards][who_p1]"><?php echo e(old('en.cards.who_p1', data_get($contentEn, 'cards.who_p1'))); ?></textarea>
                                </div>
                                <div class="col-12">
                                    <label class="form-label">Who — paragraph 2</label>
                                    <textarea class="form-control" rows="2" name="en[cards][who_p2]"><?php echo e(old('en.cards.who_p2', data_get($contentEn, 'cards.who_p2'))); ?></textarea>
                                </div>
                                <div class="col-12">
                                    <label class="form-label">What — title</label>
                                    <input class="form-control" name="en[cards][what_title]" value="<?php echo e(old('en.cards.what_title', data_get($contentEn, 'cards.what_title'))); ?>">
                                </div>
                                <?php for($i = 0; $i < 4; $i++): ?>
                                    <div class="col-12">
                                        <label class="form-label">What — item <?php echo e($i + 1); ?></label>
                                        <input class="form-control" name="en[cards][what_items][<?php echo e($i); ?>]" value="<?php echo e(old('en.cards.what_items.'.$i, data_get($contentEn, 'cards.what_items.'.$i))); ?>">
                                    </div>
                                <?php endfor; ?>
                                <div class="col-12">
                                    <label class="form-label">Why — title</label>
                                    <input class="form-control" name="en[cards][why_title]" value="<?php echo e(old('en.cards.why_title', data_get($contentEn, 'cards.why_title'))); ?>">
                                </div>
                                <?php for($i = 0; $i < 4; $i++): ?>
                                    <div class="col-12">
                                        <label class="form-label">Why — item <?php echo e($i + 1); ?></label>
                                        <input class="form-control" name="en[cards][why_items][<?php echo e($i); ?>]" value="<?php echo e(old('en.cards.why_items.'.$i, data_get($contentEn, 'cards.why_items.'.$i))); ?>">
                                    </div>
                                <?php endfor; ?>
                                <div class="col-lg-6">
                                    <label class="form-label">Commitment — title</label>
                                    <input class="form-control" name="en[cards][commitment_title]" value="<?php echo e(old('en.cards.commitment_title', data_get($contentEn, 'cards.commitment_title'))); ?>">
                                </div>
                                <div class="col-lg-6">
                                    <label class="form-label">Commitment — p1</label>
                                    <textarea class="form-control" rows="2" name="en[cards][commitment_p1]"><?php echo e(old('en.cards.commitment_p1', data_get($contentEn, 'cards.commitment_p1'))); ?></textarea>
                                </div>
                                <div class="col-12">
                                    <label class="form-label">Commitment — p2</label>
                                    <textarea class="form-control" rows="2" name="en[cards][commitment_p2]"><?php echo e(old('en.cards.commitment_p2', data_get($contentEn, 'cards.commitment_p2'))); ?></textarea>
                                </div>

                                <div class="col-12"><hr class="my-2"><div class="fw-bold mb-2">CTA band</div></div>
                                <div class="col-12">
                                    <label class="form-label">H2</label>
                                    <input class="form-control" name="en[cta_band][h2]" value="<?php echo e(old('en.cta_band.h2', data_get($contentEn, 'cta_band.h2'))); ?>">
                                </div>
                                <div class="col-12">
                                    <label class="form-label">Paragraph</label>
                                    <textarea class="form-control" rows="2" name="en[cta_band][p]"><?php echo e(old('en.cta_band.p', data_get($contentEn, 'cta_band.p'))); ?></textarea>
                                </div>
                                <?php for($i = 0; $i < 3; $i++): ?>
                                    <div class="col-lg-4">
                                        <label class="form-label">Button <?php echo e($i + 1); ?> text</label>
                                        <input class="form-control" name="en[cta_band][actions][<?php echo e($i); ?>][text]" value="<?php echo e(old('en.cta_band.actions.'.$i.'.text', data_get($contentEn, 'cta_band.actions.'.$i.'.text'))); ?>">
                                    </div>
                                    <div class="col-lg-4">
                                        <label class="form-label">Button <?php echo e($i + 1); ?> href</label>
                                        <input class="form-control" name="en[cta_band][actions][<?php echo e($i); ?>][href]" value="<?php echo e(old('en.cta_band.actions.'.$i.'.href', data_get($contentEn, 'cta_band.actions.'.$i.'.href'))); ?>">
                                    </div>
                                <?php endfor; ?>

                                <?php echo $__env->make('admin.pages._contact-block-fields', ['prefix' => 'en', 'c' => $contentEn], array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?>
                            </div>
                        </div>

                        <div class="tab-pane fade" id="tab-ar" role="tabpanel">
                            <div class="row g-4" dir="rtl">
                                <div class="col-12"><div class="fw-bold mb-2">البطل</div></div>
                                <div class="col-12">
                                    <label class="form-label">Image alt</label>
                                    <input class="form-control" name="ar[hero][image_alt]" value="<?php echo e(old('ar.hero.image_alt', data_get($contentAr, 'hero.image_alt'))); ?>">
                                </div>
                                <div class="col-lg-4">
                                    <label class="form-label">Mini bar</label>
                                    <input class="form-control" name="ar[hero][mini_bar]" value="<?php echo e(old('ar.hero.mini_bar', data_get($contentAr, 'hero.mini_bar'))); ?>">
                                </div>
                                <div class="col-lg-8">
                                    <label class="form-label">H1</label>
                                    <input class="form-control" name="ar[hero][h1]" value="<?php echo e(old('ar.hero.h1', data_get($contentAr, 'hero.h1'))); ?>">
                                </div>
                                <div class="col-12">
                                    <label class="form-label">Lead</label>
                                    <textarea class="form-control" rows="2" name="ar[hero][lead]"><?php echo e(old('ar.hero.lead', data_get($contentAr, 'hero.lead'))); ?></textarea>
                                </div>
                                <?php for($i = 0; $i < 4; $i++): ?>
                                    <div class="col-12">
                                        <label class="form-label">Feature <?php echo e($i + 1); ?></label>
                                        <textarea class="form-control" rows="2" name="ar[hero][features][<?php echo e($i); ?>]"><?php echo e(old('ar.hero.features.'.$i, data_get($contentAr, 'hero.features.'.$i))); ?></textarea>
                                    </div>
                                <?php endfor; ?>
                                <div class="col-lg-4">
                                    <label class="form-label">Primary CTA text</label>
                                    <input class="form-control" name="ar[hero][primary_cta][text]" value="<?php echo e(old('ar.hero.primary_cta.text', data_get($contentAr, 'hero.primary_cta.text'))); ?>">
                                </div>
                                <div class="col-lg-4">
                                    <label class="form-label">Primary CTA href</label>
                                    <input class="form-control" name="ar[hero][primary_cta][href]" value="<?php echo e(old('ar.hero.primary_cta.href', data_get($contentAr, 'hero.primary_cta.href'))); ?>">
                                </div>
                                <div class="col-lg-4">
                                    <label class="form-label">Secondary CTA text</label>
                                    <input class="form-control" name="ar[hero][secondary_cta][text]" value="<?php echo e(old('ar.hero.secondary_cta.text', data_get($contentAr, 'hero.secondary_cta.text'))); ?>">
                                </div>
                                <div class="col-lg-4">
                                    <label class="form-label">Secondary CTA href</label>
                                    <input class="form-control" name="ar[hero][secondary_cta][href]" value="<?php echo e(old('ar.hero.secondary_cta.href', data_get($contentAr, 'hero.secondary_cta.href'))); ?>">
                                </div>

                                <div class="col-12"><hr class="my-2"><div class="fw-bold mb-2">مقدمة المركز</div></div>
                                <div class="col-lg-4">
                                    <label class="form-label">Kicker</label>
                                    <input class="form-control" name="ar[center][kicker]" value="<?php echo e(old('ar.center.kicker', data_get($contentAr, 'center.kicker'))); ?>">
                                </div>
                                <div class="col-lg-4">
                                    <label class="form-label">H2</label>
                                    <input class="form-control" name="ar[center][h2]" value="<?php echo e(old('ar.center.h2', data_get($contentAr, 'center.h2'))); ?>">
                                </div>
                                <div class="col-12">
                                    <label class="form-label">Lead</label>
                                    <textarea class="form-control" rows="2" name="ar[center][lead]"><?php echo e(old('ar.center.lead', data_get($contentAr, 'center.lead'))); ?></textarea>
                                </div>

                                <div class="col-12"><div class="fw-bold mb-2">البطاقات</div></div>
                                <div class="col-lg-6">
                                    <label class="form-label">من نحن — عنوان</label>
                                    <input class="form-control" name="ar[cards][who_title]" value="<?php echo e(old('ar.cards.who_title', data_get($contentAr, 'cards.who_title'))); ?>">
                                </div>
                                <div class="col-lg-6">
                                    <label class="form-label">من نحن — فقرة 1</label>
                                    <textarea class="form-control" rows="2" name="ar[cards][who_p1]"><?php echo e(old('ar.cards.who_p1', data_get($contentAr, 'cards.who_p1'))); ?></textarea>
                                </div>
                                <div class="col-12">
                                    <label class="form-label">من نحن — فقرة 2</label>
                                    <textarea class="form-control" rows="2" name="ar[cards][who_p2]"><?php echo e(old('ar.cards.who_p2', data_get($contentAr, 'cards.who_p2'))); ?></textarea>
                                </div>
                                <div class="col-12">
                                    <label class="form-label">ماذا نقدم — عنوان</label>
                                    <input class="form-control" name="ar[cards][what_title]" value="<?php echo e(old('ar.cards.what_title', data_get($contentAr, 'cards.what_title'))); ?>">
                                </div>
                                <?php for($i = 0; $i < 4; $i++): ?>
                                    <div class="col-12">
                                        <label class="form-label">ماذا نقدم — بند <?php echo e($i + 1); ?></label>
                                        <input class="form-control" name="ar[cards][what_items][<?php echo e($i); ?>]" value="<?php echo e(old('ar.cards.what_items.'.$i, data_get($contentAr, 'cards.what_items.'.$i))); ?>">
                                    </div>
                                <?php endfor; ?>
                                <div class="col-12">
                                    <label class="form-label">لماذا نحن — عنوان</label>
                                    <input class="form-control" name="ar[cards][why_title]" value="<?php echo e(old('ar.cards.why_title', data_get($contentAr, 'cards.why_title'))); ?>">
                                </div>
                                <?php for($i = 0; $i < 4; $i++): ?>
                                    <div class="col-12">
                                        <label class="form-label">لماذا نحن — بند <?php echo e($i + 1); ?></label>
                                        <input class="form-control" name="ar[cards][why_items][<?php echo e($i); ?>]" value="<?php echo e(old('ar.cards.why_items.'.$i, data_get($contentAr, 'cards.why_items.'.$i))); ?>">
                                    </div>
                                <?php endfor; ?>
                                <div class="col-lg-6">
                                    <label class="form-label">Commitment — title</label>
                                    <input class="form-control" name="ar[cards][commitment_title]" value="<?php echo e(old('ar.cards.commitment_title', data_get($contentAr, 'cards.commitment_title'))); ?>">
                                </div>
                                <div class="col-lg-6">
                                    <label class="form-label">Commitment — p1</label>
                                    <textarea class="form-control" rows="2" name="ar[cards][commitment_p1]"><?php echo e(old('ar.cards.commitment_p1', data_get($contentAr, 'cards.commitment_p1'))); ?></textarea>
                                </div>
                                <div class="col-12">
                                    <label class="form-label">Commitment — p2</label>
                                    <textarea class="form-control" rows="2" name="ar[cards][commitment_p2]"><?php echo e(old('ar.cards.commitment_p2', data_get($contentAr, 'cards.commitment_p2'))); ?></textarea>
                                </div>

                                <div class="col-12"><hr class="my-2"><div class="fw-bold mb-2">شريط الدعوة</div></div>
                                <div class="col-12">
                                    <label class="form-label">H2</label>
                                    <input class="form-control" name="ar[cta_band][h2]" value="<?php echo e(old('ar.cta_band.h2', data_get($contentAr, 'cta_band.h2'))); ?>">
                                </div>
                                <div class="col-12">
                                    <label class="form-label">Paragraph</label>
                                    <textarea class="form-control" rows="2" name="ar[cta_band][p]"><?php echo e(old('ar.cta_band.p', data_get($contentAr, 'cta_band.p'))); ?></textarea>
                                </div>
                                <?php for($i = 0; $i < 3; $i++): ?>
                                    <div class="col-lg-4">
                                        <label class="form-label">Button <?php echo e($i + 1); ?> text</label>
                                        <input class="form-control" name="ar[cta_band][actions][<?php echo e($i); ?>][text]" value="<?php echo e(old('ar.cta_band.actions.'.$i.'.text', data_get($contentAr, 'cta_band.actions.'.$i.'.text'))); ?>">
                                    </div>
                                    <div class="col-lg-4">
                                        <label class="form-label">Button <?php echo e($i + 1); ?> href</label>
                                        <input class="form-control" name="ar[cta_band][actions][<?php echo e($i); ?>][href]" value="<?php echo e(old('ar.cta_band.actions.'.$i.'.href', data_get($contentAr, 'cta_band.actions.'.$i.'.href'))); ?>">
                                    </div>
                                <?php endfor; ?>

                                <?php echo $__env->make('admin.pages._contact-block-fields', ['prefix' => 'ar', 'c' => $contentAr], array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?>
                            </div>
                        </div>
                    </div>

                    <hr class="my-4">
                    <?php echo $__env->make('admin.pages._seo-fields', ['seo' => $seo], array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?>

                    <div class="d-flex justify-content-end gap-2 mt-4">
                        <a href="<?php echo e(route('admin.dashboard')); ?>" class="btn btn-light border">Cancel</a>
                        <button type="submit" class="btn btn-primary px-4">Save Changes</button>
                    </div>
                </div>
            </div>
        </form>
    </div>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('admin.ad_master', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH /home/onesourceerp/public_html/project/resources/views/admin/pages/about-us/edit.blade.php ENDPATH**/ ?>