<?php $__env->startSection('title', $title); ?>
<?php $__env->startSection('ad_page_title', 'Edit Profile Details'); ?>
<?php $__env->startSection('ad_page_subtitle', 'Edit labels + SEO (EN/AR)'); ?>

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

    <div class="container-fluid py-4">
        <div class="mb-4 d-flex flex-wrap align-items-center gap-3">
            <div>
                <h1 class="h3 mb-1">Profile Details Settings</h1>
                <p class="text-muted mb-0">Update labels/text used in profile detail pages + SEO.</p>
            </div>
        </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.profile-details.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">Back</div></div>
                                <div class="col-12">
                                    <label class="form-label">Back text</label>
                                    <input class="form-control" name="en[back][text]" value="<?php echo e(old('en.back.text', data_get($contentEn, 'back.text'))); ?>">
                                </div>

                                <div class="col-12"><hr class="my-3"></div>
                                <div class="col-12"><div class="fw-bold mb-2">Hero</div></div>
                                <div class="col-lg-6">
                                    <label class="form-label">Featured profile label</label>
                                    <input class="form-control" name="en[hero][featured_profile]" value="<?php echo e(old('en.hero.featured_profile', data_get($contentEn, 'hero.featured_profile'))); ?>">
                                </div>
                                <div class="col-lg-6">
                                    <label class="form-label">Code label</label>
                                    <input class="form-control" name="en[hero][code_label]" value="<?php echo e(old('en.hero.code_label', data_get($contentEn, 'hero.code_label'))); ?>">
                                </div>

                                <div class="col-12"><hr class="my-3"></div>
                                <div class="col-12"><div class="fw-bold mb-2">Labels</div></div>
                                <div class="col-lg-4">
                                    <label class="form-label">Nationality</label>
                                    <input class="form-control" name="en[labels][nationality]" value="<?php echo e(old('en.labels.nationality', data_get($contentEn, 'labels.nationality'))); ?>">
                                </div>
                                <div class="col-lg-4">
                                    <label class="form-label">Religion</label>
                                    <input class="form-control" name="en[labels][religion]" value="<?php echo e(old('en.labels.religion', data_get($contentEn, 'labels.religion'))); ?>">
                                </div>
                                <div class="col-lg-4">
                                    <label class="form-label">Languages</label>
                                    <input class="form-control" name="en[labels][languages]" value="<?php echo e(old('en.labels.languages', data_get($contentEn, 'labels.languages'))); ?>">
                                </div>
                                <div class="col-lg-4">
                                    <label class="form-label">Experience</label>
                                    <input class="form-control" name="en[labels][experience]" value="<?php echo e(old('en.labels.experience', data_get($contentEn, 'labels.experience'))); ?>">
                                </div>
                                <div class="col-lg-8">
                                    <label class="form-label">Expected salary</label>
                                    <input class="form-control" name="en[labels][expected_salary]" value="<?php echo e(old('en.labels.expected_salary', data_get($contentEn, 'labels.expected_salary'))); ?>">
                                </div>

                                <div class="col-12"><hr class="my-3"></div>
                                <div class="col-12"><div class="fw-bold mb-2">Actions</div></div>
                                <div class="col-lg-6">
                                    <label class="form-label">Hire WhatsApp</label>
                                    <input class="form-control" name="en[actions][hire_whatsapp]" value="<?php echo e(old('en.actions.hire_whatsapp', data_get($contentEn, 'actions.hire_whatsapp'))); ?>">
                                </div>
                                <div class="col-lg-6">
                                    <label class="form-label">View CV</label>
                                    <input class="form-control" name="en[actions][view_cv]" value="<?php echo e(old('en.actions.view_cv', data_get($contentEn, 'actions.view_cv'))); ?>">
                                </div>
                                <div class="col-12">
                                    <label class="form-label">CV not available</label>
                                    <input class="form-control" name="en[actions][cv_not_available]" value="<?php echo e(old('en.actions.cv_not_available', data_get($contentEn, 'actions.cv_not_available'))); ?>">
                                </div>
                                <div class="col-lg-6">
                                    <label class="form-label">Play video</label>
                                    <input class="form-control" name="en[actions][play_video]" value="<?php echo e(old('en.actions.play_video', data_get($contentEn, 'actions.play_video'))); ?>">
                                </div>
                                <div class="col-lg-6">
                                    <label class="form-label">Video not available</label>
                                    <input class="form-control" name="en[actions][video_not_available]" value="<?php echo e(old('en.actions.video_not_available', data_get($contentEn, 'actions.video_not_available'))); ?>">
                                </div>

                                <div class="col-12"><hr class="my-3"></div>
                                <div class="col-12"><div class="fw-bold mb-2">WhatsApp</div></div>
                                <div class="col-lg-4">
                                    <label class="form-label">Phone (digits only)</label>
                                    <input class="form-control" name="en[whatsapp][phone]" value="<?php echo e(old('en.whatsapp.phone', data_get($contentEn, 'whatsapp.phone'))); ?>">
                                </div>
                                <div class="col-lg-8">
                                    <label class="form-label">Message template (use {name} and {code})</label>
                                    <input class="form-control" name="en[whatsapp][message_template]" value="<?php echo e(old('en.whatsapp.message_template', data_get($contentEn, 'whatsapp.message_template'))); ?>">
                                </div>

                                <div class="col-12"><hr class="my-3"></div>
                                <div class="col-12"><div class="fw-bold mb-2">Other profiles</div></div>
                                <div class="col-12">
                                    <label class="form-label">Title</label>
                                    <input class="form-control" name="en[other_profiles][title]" value="<?php echo e(old('en.other_profiles.title', data_get($contentEn, 'other_profiles.title'))); ?>">
                                </div>
                                <div class="col-12">
                                    <label class="form-label">Description</label>
                                    <input class="form-control" name="en[other_profiles][description]" value="<?php echo e(old('en.other_profiles.description', data_get($contentEn, 'other_profiles.description'))); ?>">
                                </div>
                                <div class="col-lg-6">
                                    <label class="form-label">View profile</label>
                                    <input class="form-control" name="en[other_profiles][view_profile]" value="<?php echo e(old('en.other_profiles.view_profile', data_get($contentEn, 'other_profiles.view_profile'))); ?>">
                                </div>
                                <div class="col-lg-6">
                                    <label class="form-label">View more profiles</label>
                                    <input class="form-control" name="en[other_profiles][view_more_profiles]" value="<?php echo e(old('en.other_profiles.view_more_profiles', data_get($contentEn, 'other_profiles.view_more_profiles'))); ?>">
                                </div>
                            </div>
                        </div>

                        <div class="tab-pane fade" id="tab-ar" role="tabpanel" dir="rtl">
                            <div class="row g-4">
                                <div class="col-12"><div class="fw-bold mb-2">العودة</div></div>
                                <div class="col-12">
                                    <label class="form-label">نص العودة</label>
                                    <input class="form-control" name="ar[back][text]" value="<?php echo e(old('ar.back.text', data_get($contentAr, 'back.text'))); ?>">
                                </div>

                                <div class="col-12"><hr class="my-3"></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[hero][featured_profile]" value="<?php echo e(old('ar.hero.featured_profile', data_get($contentAr, 'hero.featured_profile'))); ?>">
                                </div>
                                <div class="col-lg-6">
                                    <label class="form-label">تسمية الكود</label>
                                    <input class="form-control" name="ar[hero][code_label]" value="<?php echo e(old('ar.hero.code_label', data_get($contentAr, 'hero.code_label'))); ?>">
                                </div>

                                <div class="col-12"><hr class="my-3"></div>
                                <div class="col-12"><div class="fw-bold mb-2">التسميات</div></div>
                                <div class="col-lg-4">
                                    <label class="form-label">الجنسية</label>
                                    <input class="form-control" name="ar[labels][nationality]" value="<?php echo e(old('ar.labels.nationality', data_get($contentAr, 'labels.nationality'))); ?>">
                                </div>
                                <div class="col-lg-4">
                                    <label class="form-label">الديانة</label>
                                    <input class="form-control" name="ar[labels][religion]" value="<?php echo e(old('ar.labels.religion', data_get($contentAr, 'labels.religion'))); ?>">
                                </div>
                                <div class="col-lg-4">
                                    <label class="form-label">اللغات</label>
                                    <input class="form-control" name="ar[labels][languages]" value="<?php echo e(old('ar.labels.languages', data_get($contentAr, 'labels.languages'))); ?>">
                                </div>
                                <div class="col-lg-4">
                                    <label class="form-label">الخبرة</label>
                                    <input class="form-control" name="ar[labels][experience]" value="<?php echo e(old('ar.labels.experience', data_get($contentAr, 'labels.experience'))); ?>">
                                </div>
                                <div class="col-lg-8">
                                    <label class="form-label">الراتب المتوقع</label>
                                    <input class="form-control" name="ar[labels][expected_salary]" value="<?php echo e(old('ar.labels.expected_salary', data_get($contentAr, 'labels.expected_salary'))); ?>">
                                </div>

                                <div class="col-12"><hr class="my-3"></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[actions][hire_whatsapp]" value="<?php echo e(old('ar.actions.hire_whatsapp', data_get($contentAr, 'actions.hire_whatsapp'))); ?>">
                                </div>
                                <div class="col-lg-6">
                                    <label class="form-label">عرض السيرة</label>
                                    <input class="form-control" name="ar[actions][view_cv]" value="<?php echo e(old('ar.actions.view_cv', data_get($contentAr, 'actions.view_cv'))); ?>">
                                </div>
                                <div class="col-12">
                                    <label class="form-label">غير متاح</label>
                                    <input class="form-control" name="ar[actions][cv_not_available]" value="<?php echo e(old('ar.actions.cv_not_available', data_get($contentAr, 'actions.cv_not_available'))); ?>">
                                </div>
                                <div class="col-lg-6">
                                    <label class="form-label">تشغيل الفيديو</label>
                                    <input class="form-control" name="ar[actions][play_video]" value="<?php echo e(old('ar.actions.play_video', data_get($contentAr, 'actions.play_video'))); ?>">
                                </div>
                                <div class="col-lg-6">
                                    <label class="form-label">الفيديو غير متاح</label>
                                    <input class="form-control" name="ar[actions][video_not_available]" value="<?php echo e(old('ar.actions.video_not_available', data_get($contentAr, 'actions.video_not_available'))); ?>">
                                </div>

                                <div class="col-12"><hr class="my-3"></div>
                                <div class="col-12"><div class="fw-bold mb-2">واتساب</div></div>
                                <div class="col-lg-4">
                                    <label class="form-label">رقم (أرقام فقط)</label>
                                    <input class="form-control" name="ar[whatsapp][phone]" value="<?php echo e(old('ar.whatsapp.phone', data_get($contentAr, 'whatsapp.phone'))); ?>">
                                </div>
                                <div class="col-lg-8">
                                    <label class="form-label">قالب الرسالة (استخدم {name} و {code})</label>
                                    <input class="form-control" name="ar[whatsapp][message_template]" value="<?php echo e(old('ar.whatsapp.message_template', data_get($contentAr, 'whatsapp.message_template'))); ?>">
                                </div>

                                <div class="col-12"><hr class="my-3"></div>
                                <div class="col-12"><div class="fw-bold mb-2">ملفات أخرى</div></div>
                                <div class="col-12">
                                    <label class="form-label">العنوان</label>
                                    <input class="form-control" name="ar[other_profiles][title]" value="<?php echo e(old('ar.other_profiles.title', data_get($contentAr, 'other_profiles.title'))); ?>">
                                </div>
                                <div class="col-12">
                                    <label class="form-label">الوصف</label>
                                    <input class="form-control" name="ar[other_profiles][description]" value="<?php echo e(old('ar.other_profiles.description', data_get($contentAr, 'other_profiles.description'))); ?>">
                                </div>
                                <div class="col-lg-6">
                                    <label class="form-label">عرض الملف</label>
                                    <input class="form-control" name="ar[other_profiles][view_profile]" value="<?php echo e(old('ar.other_profiles.view_profile', data_get($contentAr, 'other_profiles.view_profile'))); ?>">
                                </div>
                                <div class="col-lg-6">
                                    <label class="form-label">عرض المزيد</label>
                                    <input class="form-control" name="ar[other_profiles][view_more_profiles]" value="<?php echo e(old('ar.other_profiles.view_more_profiles', data_get($contentAr, 'other_profiles.view_more_profiles'))); ?>">
                                </div>
                            </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/profile-details/edit.blade.php ENDPATH**/ ?>