<?php if (isset($component)) { $__componentOriginal9ac128a9029c0e4701924bd2d73d7f54 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal9ac128a9029c0e4701924bd2d73d7f54 = $attributes; } ?>
<?php $component = App\View\Components\AppLayout::resolve([] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?>
<?php $component->withName('app-layout'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(App\View\Components\AppLayout::class))->getConstructor()): ?>
<?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?>
<?php endif; ?>
<?php $component->withAttributes([]); ?>
     <?php $__env->slot('header', null, []); ?> 
        <h2 class="font-semibold text-xl text-gray-800">Branding And Frontend Settings</h2>
     <?php $__env->endSlot(); ?>

    <div class="py-8">
        <div class="max-w-5xl mx-auto sm:px-6 lg:px-8">
            <div class="bg-white shadow rounded p-6">
                <?php if(session('success')): ?>
                    <div class="mb-4 rounded border border-green-200 bg-green-50 px-4 py-3 text-sm text-green-800">
                        <?php echo e(session('success')); ?>

                    </div>
                <?php endif; ?>

                <form method="POST" action="<?php echo e(route('admin.branding.update')); ?>" enctype="multipart/form-data">
                    <?php echo csrf_field(); ?>
                    <?php echo method_field('PUT'); ?>

                    <div class="space-y-8">
                        <section>
                            <h3 class="text-base font-semibold text-gray-900">Brand Identity</h3>
                            <div class="mt-4 grid gap-5 sm:grid-cols-2">
                                <div class="sm:col-span-2">
                                    <label for="app_name" class="block text-sm font-medium text-gray-700">Application Name</label>
                                    <input
                                        id="app_name"
                                        name="app_name"
                                        type="text"
                                        class="mt-1 w-full rounded-md border-gray-300 shadow-sm focus:border-indigo-500 focus:ring-indigo-500"
                                        value="<?php echo e(old('app_name', $appName)); ?>"
                                        required
                                    >
                                    <?php $__errorArgs = ['app_name'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                                        <p class="mt-1 text-sm text-red-600"><?php echo e($message); ?></p>
                                    <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                                </div>

                                <div class="sm:col-span-2">
                                    <label for="logo" class="block text-sm font-medium text-gray-700">Application Logo</label>
                                    <input
                                        id="logo"
                                        name="logo"
                                        type="file"
                                        accept="image/*"
                                        class="mt-1 block w-full text-sm text-gray-700 file:mr-4 file:rounded file:border-0 file:bg-indigo-50 file:px-3 file:py-2 file:text-sm file:font-semibold file:text-indigo-700 hover:file:bg-indigo-100"
                                    >
                                    <p class="mt-1 text-xs text-gray-500">PNG, JPG, WEBP or SVG. Max 4MB.</p>
                                    <?php $__errorArgs = ['logo'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                                        <p class="mt-1 text-sm text-red-600"><?php echo e($message); ?></p>
                                    <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                                </div>

                                <?php if($appLogoPath): ?>
                                    <div class="sm:col-span-2">
                                        <p class="text-sm font-medium text-gray-700">Current Logo</p>
                                        <img
                                            src="<?php echo e(asset('storage/'.$appLogoPath)); ?>"
                                            alt="<?php echo e($appName); ?>"
                                            class="mt-2 h-16 w-auto rounded border border-gray-200 bg-white p-2 object-contain"
                                        >
                                    </div>
                                <?php endif; ?>
                            </div>
                        </section>

                        <section class="border-t border-gray-200 pt-6">
                            <h3 class="text-base font-semibold text-gray-900">Landing Page Content</h3>
                            <div class="mt-4 grid gap-5 sm:grid-cols-2">
                                <div class="sm:col-span-2">
                                    <label for="frontend_hero_title" class="block text-sm font-medium text-gray-700">Hero Title</label>
                                    <input id="frontend_hero_title" name="frontend_hero_title" type="text" class="mt-1 w-full rounded-md border-gray-300 shadow-sm focus:border-indigo-500 focus:ring-indigo-500" value="<?php echo e(old('frontend_hero_title', $frontend['frontend_hero_title'] ?? '')); ?>" required>
                                    <?php $__errorArgs = ['frontend_hero_title'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                                        <p class="mt-1 text-sm text-red-600"><?php echo e($message); ?></p>
                                    <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                                </div>

                                <div class="sm:col-span-2">
                                    <label for="frontend_hero_subtitle" class="block text-sm font-medium text-gray-700">Hero Subtitle</label>
                                    <textarea id="frontend_hero_subtitle" name="frontend_hero_subtitle" rows="3" class="mt-1 w-full rounded-md border-gray-300 shadow-sm focus:border-indigo-500 focus:ring-indigo-500" required><?php echo e(old('frontend_hero_subtitle', $frontend['frontend_hero_subtitle'] ?? '')); ?></textarea>
                                    <?php $__errorArgs = ['frontend_hero_subtitle'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                                        <p class="mt-1 text-sm text-red-600"><?php echo e($message); ?></p>
                                    <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                                </div>
                            </div>
                        </section>

                        <section class="border-t border-gray-200 pt-6">
                            <h3 class="text-base font-semibold text-gray-900">Contact Us</h3>
                            <div class="mt-4 grid gap-5 sm:grid-cols-2">
                                <div class="sm:col-span-2">
                                    <label for="frontend_contact_title" class="block text-sm font-medium text-gray-700">Section Title</label>
                                    <input id="frontend_contact_title" name="frontend_contact_title" type="text" class="mt-1 w-full rounded-md border-gray-300 shadow-sm focus:border-indigo-500 focus:ring-indigo-500" value="<?php echo e(old('frontend_contact_title', $frontend['frontend_contact_title'] ?? '')); ?>" required>
                                    <?php $__errorArgs = ['frontend_contact_title'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                                        <p class="mt-1 text-sm text-red-600"><?php echo e($message); ?></p>
                                    <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                                </div>

                                <div class="sm:col-span-2">
                                    <label for="frontend_contact_description" class="block text-sm font-medium text-gray-700">Section Description</label>
                                    <textarea id="frontend_contact_description" name="frontend_contact_description" rows="3" class="mt-1 w-full rounded-md border-gray-300 shadow-sm focus:border-indigo-500 focus:ring-indigo-500"><?php echo e(old('frontend_contact_description', $frontend['frontend_contact_description'] ?? '')); ?></textarea>
                                    <?php $__errorArgs = ['frontend_contact_description'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                                        <p class="mt-1 text-sm text-red-600"><?php echo e($message); ?></p>
                                    <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                                </div>

                                <div>
                                    <label for="frontend_contact_email" class="block text-sm font-medium text-gray-700">Support Email</label>
                                    <input id="frontend_contact_email" name="frontend_contact_email" type="email" class="mt-1 w-full rounded-md border-gray-300 shadow-sm focus:border-indigo-500 focus:ring-indigo-500" value="<?php echo e(old('frontend_contact_email', $frontend['frontend_contact_email'] ?? '')); ?>">
                                    <?php $__errorArgs = ['frontend_contact_email'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                                        <p class="mt-1 text-sm text-red-600"><?php echo e($message); ?></p>
                                    <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                                </div>

                                <div>
                                    <label for="frontend_contact_phone" class="block text-sm font-medium text-gray-700">Support Phone</label>
                                    <input id="frontend_contact_phone" name="frontend_contact_phone" type="text" class="mt-1 w-full rounded-md border-gray-300 shadow-sm focus:border-indigo-500 focus:ring-indigo-500" value="<?php echo e(old('frontend_contact_phone', $frontend['frontend_contact_phone'] ?? '')); ?>" placeholder="+234...">
                                    <?php $__errorArgs = ['frontend_contact_phone'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                                        <p class="mt-1 text-sm text-red-600"><?php echo e($message); ?></p>
                                    <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                                </div>

                                <div class="sm:col-span-2">
                                    <label for="frontend_contact_address" class="block text-sm font-medium text-gray-700">Address</label>
                                    <input id="frontend_contact_address" name="frontend_contact_address" type="text" class="mt-1 w-full rounded-md border-gray-300 shadow-sm focus:border-indigo-500 focus:ring-indigo-500" value="<?php echo e(old('frontend_contact_address', $frontend['frontend_contact_address'] ?? '')); ?>">
                                    <?php $__errorArgs = ['frontend_contact_address'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                                        <p class="mt-1 text-sm text-red-600"><?php echo e($message); ?></p>
                                    <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                                </div>

                                <div class="sm:col-span-2">
                                    <label for="frontend_whatsapp_number" class="block text-sm font-medium text-gray-700">Official WhatsApp Business Line</label>
                                    <input id="frontend_whatsapp_number" name="frontend_whatsapp_number" type="text" class="mt-1 w-full rounded-md border-gray-300 shadow-sm focus:border-indigo-500 focus:ring-indigo-500" value="<?php echo e(old('frontend_whatsapp_number', $frontend['frontend_whatsapp_number'] ?? '')); ?>" placeholder="+2348012345678">
                                    <p class="mt-1 text-xs text-gray-500">Use international format so the direct WhatsApp link works correctly.</p>
                                    <?php $__errorArgs = ['frontend_whatsapp_number'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                                        <p class="mt-1 text-sm text-red-600"><?php echo e($message); ?></p>
                                    <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                                </div>
                            </div>
                        </section>

                        <section class="border-t border-gray-200 pt-6">
                            <h3 class="text-base font-semibold text-gray-900">Social Media Links</h3>
                            <div class="mt-4 grid gap-5 sm:grid-cols-2">
                                <div>
                                    <label for="frontend_facebook_url" class="block text-sm font-medium text-gray-700">Facebook URL</label>
                                    <input id="frontend_facebook_url" name="frontend_facebook_url" type="url" class="mt-1 w-full rounded-md border-gray-300 shadow-sm focus:border-indigo-500 focus:ring-indigo-500" value="<?php echo e(old('frontend_facebook_url', $frontend['frontend_facebook_url'] ?? '')); ?>" placeholder="https://facebook.com/...">
                                    <?php $__errorArgs = ['frontend_facebook_url'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                                        <p class="mt-1 text-sm text-red-600"><?php echo e($message); ?></p>
                                    <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                                </div>

                                <div>
                                    <label for="frontend_instagram_url" class="block text-sm font-medium text-gray-700">Instagram URL</label>
                                    <input id="frontend_instagram_url" name="frontend_instagram_url" type="url" class="mt-1 w-full rounded-md border-gray-300 shadow-sm focus:border-indigo-500 focus:ring-indigo-500" value="<?php echo e(old('frontend_instagram_url', $frontend['frontend_instagram_url'] ?? '')); ?>" placeholder="https://instagram.com/...">
                                    <?php $__errorArgs = ['frontend_instagram_url'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                                        <p class="mt-1 text-sm text-red-600"><?php echo e($message); ?></p>
                                    <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                                </div>

                                <div>
                                    <label for="frontend_x_url" class="block text-sm font-medium text-gray-700">X (Twitter) URL</label>
                                    <input id="frontend_x_url" name="frontend_x_url" type="url" class="mt-1 w-full rounded-md border-gray-300 shadow-sm focus:border-indigo-500 focus:ring-indigo-500" value="<?php echo e(old('frontend_x_url', $frontend['frontend_x_url'] ?? '')); ?>" placeholder="https://x.com/...">
                                    <?php $__errorArgs = ['frontend_x_url'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                                        <p class="mt-1 text-sm text-red-600"><?php echo e($message); ?></p>
                                    <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                                </div>

                                <div>
                                    <label for="frontend_linkedin_url" class="block text-sm font-medium text-gray-700">LinkedIn URL</label>
                                    <input id="frontend_linkedin_url" name="frontend_linkedin_url" type="url" class="mt-1 w-full rounded-md border-gray-300 shadow-sm focus:border-indigo-500 focus:ring-indigo-500" value="<?php echo e(old('frontend_linkedin_url', $frontend['frontend_linkedin_url'] ?? '')); ?>" placeholder="https://linkedin.com/company/...">
                                    <?php $__errorArgs = ['frontend_linkedin_url'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                                        <p class="mt-1 text-sm text-red-600"><?php echo e($message); ?></p>
                                    <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                                </div>
                            </div>
                        </section>
                    </div>

                    <div class="mt-8 flex justify-end gap-2">
                        <a href="<?php echo e(route('dashboard')); ?>" class="px-4 py-2 border rounded">Cancel</a>
                        <button class="px-4 py-2 bg-indigo-600 text-white rounded">Save Settings</button>
                    </div>
                </form>
            </div>
        </div>
    </div>
 <?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal9ac128a9029c0e4701924bd2d73d7f54)): ?>
<?php $attributes = $__attributesOriginal9ac128a9029c0e4701924bd2d73d7f54; ?>
<?php unset($__attributesOriginal9ac128a9029c0e4701924bd2d73d7f54); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal9ac128a9029c0e4701924bd2d73d7f54)): ?>
<?php $component = $__componentOriginal9ac128a9029c0e4701924bd2d73d7f54; ?>
<?php unset($__componentOriginal9ac128a9029c0e4701924bd2d73d7f54); ?>
<?php endif; ?>
<?php /**PATH C:\wamp64\www\lab-result-portal\resources\views/admin/branding/edit.blade.php ENDPATH**/ ?>