<header class="header">
    <div class="header-row">

        <div class="header-left">
            <div class="menu-icon">
                <i class="ti ti-menu-2"></i>
            </div>
            <div class="header-logo">
                <a href="<?php echo e(route('user.dashboard')); ?>">
                    <?php if(optional($settings)->logo_white): ?>
                    <img src="<?php echo e(asset($settings->logo_white)); ?>" alt="<?php echo e(optional($settings)->website_name ?? 'Logo'); ?>" class="logo">
                    <?php else: ?>
                    <span class="logo-text"><?php echo e(optional($settings)->website_name ?? config('app.name')); ?></span>
                    <?php endif; ?>
                </a>
            </div>
        </div>

        <div class="header-right">
            <div class="header-balance">Balance: <?php echo e(optional($settings)->website_currency ?? 'NGN'); ?><?php echo e(number_format(auth()->user()->balance ?? 0, 2)); ?></div>

            <div class="theme-toggle">
                <div class="toggle-switch">
                    <input type="checkbox" id="toggle" checked>
                    <label for="toggle" class="toggle-label">
                        <span class="toggle-text">On</span>
                    </label>
                </div>
            </div>

            <div class="header-profile">
                <div class="header-profile-top">
                    <div class="header-profile-image">
                        <img src="<?php echo e(auth()->user()->image ? asset(auth()->user()->image) : 'https://ui-avatars.com/api/?name=' . urlencode(auth()->user()->fname . ' ' . auth()->user()->lname) . '&background=random'); ?>" alt="Profile">
                    </div>
                </div>
                <div class="header-dropdown">
                    <ul class="header-profile-menu">
                        <li class="header-profile-item">
                            <a href="<?php echo e(route('user.profile')); ?>" class="header-profile-link">
                                <i class="ti ti-user"></i>
                                <span>Profile</span>
                            </a>
                        </li>
                        <li class="header-profile-item">
                            <form action="<?php echo e(route('user.logout')); ?>" method="POST" class="logout-form">
                                <?php echo csrf_field(); ?>
                                <button type="submit" class="header-profile-link logout-btn">
                                    <i class="ti ti-logout"></i>
                                    <span>Logout</span>
                                </button>
                            </form>
                        </li>
                    </ul>
                </div>
            </div>
        </div>
    </div>
</header><?php /**PATH C:\Users\HP\Desktop\social\product\core\resources\views/frontend/partial/header.blade.php ENDPATH**/ ?>