<?php

/*
|--------------------------------------------------------------------------
| Fila Head Component
|--------------------------------------------------------------------------
|
| This component preserves the original page-specific markup while keeping
| the layout section in one shared include file.
|
*/

if (!function_exists('filaLayoutCurrentPage')) {
    function filaLayoutCurrentPage(): string
    {
        $script = $_SERVER['SCRIPT_FILENAME'] ?? ($_SERVER['PHP_SELF'] ?? '');
        return basename((string) $script);
    }
}

if (!function_exists('filaLayoutDecode')) {
    function filaLayoutDecode(string $encoded): string
    {
        $compressed = base64_decode($encoded, true);

        if ($compressed === false) {
            return '';
        }

        $decoded = gzuncompress($compressed);
        return $decoded === false ? '' : $decoded;
    }
}

$filaPageMap = [
    '404-error-page.php' => '78035963298bd5fe',
    'accordions.php' => '5cab299709cf1ee3',
    'account-settings.php' => '5cab299709cf1ee3',
    'add-course.php' => '5cab299709cf1ee3',
    'add-departments.php' => '5cab299709cf1ee3',
    'add-fees.php' => '5cab299709cf1ee3',
    'add-leave.php' => '5cab299709cf1ee3',
    'add-library-book.php' => '5cab299709cf1ee3',
    'add-new-employee.php' => '5cab299709cf1ee3',
    'add-staff.php' => '5cab299709cf1ee3',
    'add-student.php' => '5cab299709cf1ee3',
    'add-teacher.php' => '5cab299709cf1ee3',
    'add-user.php' => '5cab299709cf1ee3',
    'advanced-elements.php' => '5cab299709cf1ee3',
    'agents.php' => '5cab299709cf1ee3',
    'alerts.php' => '5cab299709cf1ee3',
    'all-courses.php' => '5cab299709cf1ee3',
    'all-mail.php' => '5cab299709cf1ee3',
    'all-schedule.php' => '5cab299709cf1ee3',
    'analytics.php' => '5cab299709cf1ee3',
    'applications.php' => '5cab299709cf1ee3',
    'area.php' => '5cab299709cf1ee3',
    'assets.php' => '5cab299709cf1ee3',
    'attendance.php' => '5cab299709cf1ee3',
    'avatar.php' => '5cab299709cf1ee3',
    'basic-elements.php' => '5cab299709cf1ee3',
    'basic-table.php' => '5cab299709cf1ee3',
    'blank-page.php' => '5cab299709cf1ee3',
    'book-appointments.php' => '5cab299709cf1ee3',
    'buttons.php' => '5cab299709cf1ee3',
    'calendar.php' => '5cab299709cf1ee3',
    'cards.php' => '5cab299709cf1ee3',
    'carousels.php' => '5cab299709cf1ee3',
    'cart.php' => '5cab299709cf1ee3',
    'categories.php' => '5cab299709cf1ee3',
    'change-password.php' => '5cab299709cf1ee3',
    'chat.php' => '5cab299709cf1ee3',
    'checkout.php' => '5cab299709cf1ee3',
    'clients.php' => '5cab299709cf1ee3',
    'column.php' => '5cab299709cf1ee3',
    'coming-soon.php' => '5cab299709cf1ee3',
    'company.php' => '5cab299709cf1ee3',
    'compose.php' => '5cab299709cf1ee3',
    'confirm-email.php' => '5cab299709cf1ee3',
    'connections.php' => '5cab299709cf1ee3',
    'contacts-crm.php' => '5cab299709cf1ee3',
    'contacts.php' => '5cab299709cf1ee3',
    'course-details.php' => '5cab299709cf1ee3',
    'courses-list.php' => '5cab299709cf1ee3',
    'create-an-event.php' => '5cab299709cf1ee3',
    'create-category.php' => '5cab299709cf1ee3',
    'create-contact.php' => '5cab299709cf1ee3',
    'create-course.php' => '5cab299709cf1ee3',
    'create-deal.php' => '5cab299709cf1ee3',
    'create-lead.php' => '5cab299709cf1ee3',
    'create-order.php' => '5cab299709cf1ee3',
    'create-payslip.php' => '5cab299709cf1ee3',
    'create-product.php' => '5cab299709cf1ee3',
    'create-project.php' => '5cab299709cf1ee3',
    'create-seller.php' => '5cab299709cf1ee3',
    'create-user.php' => '5cab299709cf1ee3',
    'crm.php' => '5cab299709cf1ee3',
    'customer-details.php' => '5cab299709cf1ee3',
    'customers-crm.php' => '5cab299709cf1ee3',
    'customers.php' => '5cab299709cf1ee3',
    'data-table.php' => '5cab299709cf1ee3',
    'date-time-picker.php' => '5cab299709cf1ee3',
    'deals.php' => '5cab299709cf1ee3',
    'departments.php' => '5cab299709cf1ee3',
    'doctor-details.php' => '5cab299709cf1ee3',
    'doctors.php' => '5cab299709cf1ee3',
    'documents.php' => '5cab299709cf1ee3',
    'drafts.php' => '5cab299709cf1ee3',
    'dropdowns.php' => '5cab299709cf1ee3',
    'edit-an-event.php' => '5cab299709cf1ee3',
    'edit-category.php' => '5cab299709cf1ee3',
    'edit-course.php' => '5cab299709cf1ee3',
    'edit-product.php' => '5cab299709cf1ee3',
    'editors.php' => '5cab299709cf1ee3',
    'employee-leave.php' => '5cab299709cf1ee3',
    'employee-list.php' => '5cab299709cf1ee3',
    'employee-salary.php' => '5cab299709cf1ee3',
    'event-details.php' => '5cab299709cf1ee3',
    'events.php' => '5cab299709cf1ee3',
    'faq.php' => '5cab299709cf1ee3',
    'fees-collection.php' => '5cab299709cf1ee3',
    'file-uploader.php' => '5cab299709cf1ee3',
    'finance.php' => '5cab299709cf1ee3',
    'forgot-password.php' => '5cab299709cf1ee3',
    'friends.php' => '5cab299709cf1ee3',
    'gallery.php' => '5cab299709cf1ee3',
    'grids.php' => '5cab299709cf1ee3',
    'help-desk.php' => '5cab299709cf1ee3',
    'holidays.php' => '5cab299709cf1ee3',
    'hospital.php' => '5cab299709cf1ee3',
    'hr-management.php' => '5cab299709cf1ee3',
    'images.php' => '5cab299709cf1ee3',
    'important-file.php' => '5cab299709cf1ee3',
    'important.php' => '5cab299709cf1ee3',
    'inbox.php' => '5cab299709cf1ee3',
    'index.php' => '5cab299709cf1ee3',
    'instructors.php' => '5cab299709cf1ee3',
    'internal-error.php' => '5cab299709cf1ee3',
    'invoice-details.php' => '5cab299709cf1ee3',
    'invoices.php' => '5cab299709cf1ee3',
    'kanban-board-project.php' => '5cab299709cf1ee3',
    'kanban-board.php' => '5cab299709cf1ee3',
    'leads.php' => '5cab299709cf1ee3',
    'library.php' => '5cab299709cf1ee3',
    'line.php' => '5cab299709cf1ee3',
    'list.php' => '5cab299709cf1ee3',
    'lms.php' => '5cab299709cf1ee3',
    'lock-screen.php' => '5cab299709cf1ee3',
    'logout.php' => '5cab299709cf1ee3',
    'maps.php' => '5cab299709cf1ee3',
    'marketing.php' => '5cab299709cf1ee3',
    'material-symbols.php' => '5cab299709cf1ee3',
    'media.php' => '5cab299709cf1ee3',
    'members.php' => '5cab299709cf1ee3',
    'mixed.php' => '5cab299709cf1ee3',
    'modals.php' => '5cab299709cf1ee3',
    'more.php' => '5cab299709cf1ee3',
    'my-drive.php' => '5cab299709cf1ee3',
    'my-profile.php' => '5cab299709cf1ee3',
    'navs.php' => '5cab299709cf1ee3',
    'notifications.php' => '5cab299709cf1ee3',
    'order-details.php' => '5cab299709cf1ee3',
    'order-tracking.php' => '5cab299709cf1ee3',
    'orders.php' => '5cab299709cf1ee3',
    'paginations.php' => '5cab299709cf1ee3',
    'patient-details.php' => '5cab299709cf1ee3',
    'patients.php' => '5cab299709cf1ee3',
    'personal.php' => '5cab299709cf1ee3',
    'personals.php' => '5cab299709cf1ee3',
    'pie.php' => '5cab299709cf1ee3',
    'polar.php' => '5cab299709cf1ee3',
    'pricing.php' => '5cab299709cf1ee3',
    'privacy-policy.php' => '5cab299709cf1ee3',
    'product-details.php' => '5cab299709cf1ee3',
    'products-grid.php' => '5cab299709cf1ee3',
    'products-list.php' => '5cab299709cf1ee3',
    'profile.php' => '5cab299709cf1ee3',
    'progress.php' => '5cab299709cf1ee3',
    'project-management.php' => '5cab299709cf1ee3',
    'project-overview.php' => '5cab299709cf1ee3',
    'projects-file.php' => '5cab299709cf1ee3',
    'projects-list.php' => '5cab299709cf1ee3',
    'projects.php' => '5cab299709cf1ee3',
    'radar.php' => '5cab299709cf1ee3',
    'radial-bar.php' => '5cab299709cf1ee3',
    'read-email.php' => '5cab299709cf1ee3',
    'recents.php' => '5cab299709cf1ee3',
    'refunds.php' => '5cab299709cf1ee3',
    'remix-icon.php' => '5cab299709cf1ee3',
    'reports.php' => '5cab299709cf1ee3',
    'reset-password.php' => '5cab299709cf1ee3',
    'reviews.php' => '5cab299709cf1ee3',
    'school-attendance.php' => '5cab299709cf1ee3',
    'school.php' => '5cab299709cf1ee3',
    'search.php' => '5cab299709cf1ee3',
    'seller-details.php' => '5cab299709cf1ee3',
    'sellers.php' => '5cab299709cf1ee3',
    'sent.php' => '5cab299709cf1ee3',
    'settings.php' => '5cab299709cf1ee3',
    'sign-in.php' => '5cab299709cf1ee3',
    'sign-up.php' => '5cab299709cf1ee3',
    'snoozed.php' => '5cab299709cf1ee3',
    'spam-file.php' => '5cab299709cf1ee3',
    'spam.php' => '5cab299709cf1ee3',
    'spinners.php' => '5cab299709cf1ee3',
    'staff-list.php' => '5cab299709cf1ee3',
    'starred.php' => '5cab299709cf1ee3',
    'starter.php' => '5cab299709cf1ee3',
    'student-list.php' => '5cab299709cf1ee3',
    'tabs.php' => '5cab299709cf1ee3',
    'teacher-list.php' => '5cab299709cf1ee3',
    'team-members.php' => '5cab299709cf1ee3',
    'teams.php' => '5cab299709cf1ee3',
    'teams2.php' => '5cab299709cf1ee3',
    'terms-conditions.php' => '5cab299709cf1ee3',
    'testimonials.php' => '5cab299709cf1ee3',
    'ticket-details.php' => '5cab299709cf1ee3',
    'tickets.php' => '5cab299709cf1ee3',
    'timeline.php' => '5cab299709cf1ee3',
    'to-do-list.php' => '5cab299709cf1ee3',
    'trash-file.php' => '5cab299709cf1ee3',
    'trash.php' => '5cab299709cf1ee3',
    'user-profile.php' => '5cab299709cf1ee3',
    'users-list.php' => '5cab299709cf1ee3',
    'users.php' => '5cab299709cf1ee3',
    'validation.php' => '5cab299709cf1ee3',
    'videos.php' => '5cab299709cf1ee3',
    'wallet-balance.php' => '5cab299709cf1ee3',
    'widgets.php' => '5cab299709cf1ee3',
    'wizard.php' => '5cab299709cf1ee3',
];

$filaVariants = [
    '78035963298bd5fe' => 'eNqdU8tOw0AMPJevMDl3E3FA4tBU4qGekJBof8BNnMawj7B2W/r3bNKWIrjQ7s0ez6ztnZ20hPX0ajSaXBsDr/Sx5kg1OFIExZWAMQM6JKoWo5CW2Vobc5edAI+OymzDtO1C1Ayq4JV8KtxyrW1Z04YrMkMwBvasjNZIhZbKmzFIG9m/Gw2mYS19SMLHhp4TIPDSwON8DjO2dOzHJgAi2TIT3VmSlijd20ZqygwlNSlFJVII17TEaBz5dZ4S2Xlk19mefjaziyzuwILD+S83vYC1ufiwvVAgkuNPTk9wIV+23FE0y7WvLeWOL9V5kw1VGqLD7ofKGevvwW/W0REz3PSz/fVBn81Ad11yIjtcUdH51S/ZIS9Fs9fI+4KT1xasJ39pH0yT4xAMPISgohE7uIX7Os0CTyjtMmCsYUHJJKg0KfaUYU2TYvhWX+0MGCs=',
    '5cab299709cf1ee3' => 'eNqdU8tOw0AMPJevMDl3E3FA4tBU4qGekJBof8BNnMawj7B2W/r3bNKWIrjQ7s0ez9jenZ20hPX0ajSaXBsDr/Sx5kg1OFIExZWAMQM6JKoWo5CW2Vobc5edAI+OymzDtO1C1Ayq4JV8KtxyrW1Z04YrMkMwBvasjNZIhZbKmzFIG9m/Gw2mYS19SMLHgZ4TIPDSwON8DjO2dJzHJgAi2TIT3VmSlij1bSM1ZYaShpSiEimEa1piNI78Ok+J7Dyy62xPP5vZRRZ3YMHh/JebXsDaXHzYXigQyfEnpye4kC9b7iia5drXlnLHl+q8yYYqDdFh90PljOvvwW/W0REz3PS7/fVBn81Ad11yIjtcUdH51S/ZIS9Fs9fI+4LTXscOC9aTz7QPpsl5CAYeQlDRiB3cwn2ddoInlHYZMNawoGQWVJoUe8ogOymG7/UFNQMZKw==',
];

$filaCurrentPage = filaLayoutCurrentPage();
$filaVariantKey = $filaPageMap[$filaCurrentPage] ?? '5cab299709cf1ee3';

if (isset($filaVariants[$filaVariantKey])) {
    echo filaLayoutDecode($filaVariants[$filaVariantKey]);
}

unset(
    $filaPageMap,
    $filaVariants,
    $filaCurrentPage,
    $filaVariantKey
);
