<?php
    $prefix = $prefix ?? 'en';
    $c = $c ?? [];
    $dirAttr = ($prefix === 'ar') ? 'dir="rtl"' : '';
    $sections = data_get($c, 'sections', []);
?>

<div class="row g-4" <?php echo e($dirAttr); ?>>
    <div class="col-12">
        <div class="fw-bold mb-2">Hero</div>
    </div>
    <div class="col-lg-4">
        <label class="form-label">Kicker icon (Font Awesome class)</label>
        <input type="text" class="form-control" name="<?php echo e($prefix); ?>[hero][icon]"
               value="<?php echo e(old($prefix.'.hero.icon', data_get($c, 'hero.icon'))); ?>"
               placeholder="e.g. fa-file-contract">
        <div class="form-text">Used with <code>fa-solid</code> on the site.</div>
    </div>
    <div class="col-lg-4">
        <label class="form-label">Kicker label</label>
        <input type="text" class="form-control" name="<?php echo e($prefix); ?>[hero][kicker]"
               value="<?php echo e(old($prefix.'.hero.kicker', data_get($c, 'hero.kicker'))); ?>">
    </div>
    <div class="col-lg-4">
        <label class="form-label">Last updated line</label>
        <input type="text" class="form-control" name="<?php echo e($prefix); ?>[hero][last_updated]"
               value="<?php echo e(old($prefix.'.hero.last_updated', data_get($c, 'hero.last_updated'))); ?>">
    </div>
    <div class="col-12">
        <label class="form-label">Page title (H1)</label>
        <input type="text" class="form-control" name="<?php echo e($prefix); ?>[hero][h1]"
               value="<?php echo e(old($prefix.'.hero.h1', data_get($c, 'hero.h1'))); ?>">
    </div>
    <div class="col-12">
        <label class="form-label">Introduction</label>
        <textarea class="form-control" rows="3" name="<?php echo e($prefix); ?>[hero][intro]"><?php echo e(old($prefix.'.hero.intro', data_get($c, 'hero.intro'))); ?></textarea>
    </div>

    <div class="col-12">
        <hr class="my-2">
        <div class="fw-bold mb-2">Bottom cross-link band</div>
    </div>
    <div class="col-lg-4">
        <label class="form-label">Band title</label>
        <input type="text" class="form-control" name="<?php echo e($prefix); ?>[cross][band_title]"
               value="<?php echo e(old($prefix.'.cross.band_title', data_get($c, 'cross.band_title'))); ?>">
    </div>
    <div class="col-lg-4">
        <label class="form-label">Link button label</label>
        <input type="text" class="form-control" name="<?php echo e($prefix); ?>[cross][link_label]"
               value="<?php echo e(old($prefix.'.cross.link_label', data_get($c, 'cross.link_label'))); ?>">
    </div>
    <div class="col-lg-4">
        <label class="form-label">Link hint (subtitle)</label>
        <input type="text" class="form-control" name="<?php echo e($prefix); ?>[cross][link_hint]"
               value="<?php echo e(old($prefix.'.cross.link_hint', data_get($c, 'cross.link_hint'))); ?>">
    </div>

    <?php $__currentLoopData = $sections; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $i => $sec): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
        <?php
            $paras = data_get($sec, 'paragraphs', []);
        ?>
        <div class="col-12">
            <hr class="my-3">
            <div class="d-flex align-items-center justify-content-between flex-wrap gap-2 mb-2">
                <span class="fw-bold">Section <?php echo e($i + 1); ?></span>
                <span class="badge bg-secondary">TOC anchor</span>
            </div>
        </div>
        <div class="col-md-4">
            <label class="form-label">Anchor ID <span class="text-muted">(URL fragment)</span></label>
            <input type="text" class="form-control font-monospace" name="<?php echo e($prefix); ?>[sections][<?php echo e($i); ?>][id]"
                   value="<?php echo e(old($prefix.'.sections.'.$i.'.id', data_get($sec, 'id'))); ?>"
                   pattern="[a-z0-9\-]+" title="Lowercase letters, numbers, hyphens">
        </div>
        <div class="col-md-4">
            <label class="form-label">Section icon (FA class)</label>
            <input type="text" class="form-control" name="<?php echo e($prefix); ?>[sections][<?php echo e($i); ?>][icon]"
                   value="<?php echo e(old($prefix.'.sections.'.$i.'.icon', data_get($sec, 'icon'))); ?>"
                   placeholder="fa-gavel">
        </div>
        <div class="col-md-4">
            <label class="form-label">Section heading</label>
            <input type="text" class="form-control" name="<?php echo e($prefix); ?>[sections][<?php echo e($i); ?>][title]"
                   value="<?php echo e(old($prefix.'.sections.'.$i.'.title', data_get($sec, 'title'))); ?>">
        </div>
        <?php $__currentLoopData = $paras; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $j => $_p): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
            <div class="col-12">
                <label class="form-label">Paragraph <?php echo e($j + 1); ?></label>
                <textarea class="form-control" rows="3" name="<?php echo e($prefix); ?>[sections][<?php echo e($i); ?>][paragraphs][<?php echo e($j); ?>]"><?php echo e(old($prefix.'.sections.'.$i.'.paragraphs.'.$j, data_get($sec, 'paragraphs.'.$j))); ?></textarea>
            </div>
        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
</div>
<?php /**PATH /home/onesourceerp/public_html/project/resources/views/admin/pages/_legal-page-lang-fields.blade.php ENDPATH**/ ?>