
<?php $__env->startSection('content'); ?>
<div class="tm-member-panel" style="max-width:1200px;margin:30px auto;padding:0 16px;">
    <div style="display:grid;grid-template-columns:250px 1fr;gap:30px;min-height:600px;">
        <!-- Sidebar -->
        <aside class="tm-member-sidebar" style="background:#fff;border-radius:8px;box-shadow:0 2px 10px rgba(0,0,0,0.1);padding:20px;height:fit-content;">
            <div style="text-align:center;padding-bottom:20px;border-bottom:1px solid #e5e7eb;margin-bottom:20px;">
                <div style="width:60px;height:60px;background:#7db64f;border-radius:50%;display:flex;align-items:center;justify-content:center;margin:0 auto 10px;color:#fff;font-size:24px;font-weight:bold;">
                    <?php echo e(strtoupper(substr(Auth::user()->name, 0, 1))); ?>

                </div>
                <h3 style="margin:0;color:#414141;font-size:16px;"><?php echo e(Auth::user()->name); ?></h3>
                <p style="margin:5px 0 0;color:#666;font-size:12px;"><?php echo e(Auth::user()->email); ?></p>
            </div>
            
            <nav style="display:flex;flex-direction:column;gap:4px;">
                <a href="<?php echo e(route('member.dashboard')); ?>" class="tm-nav-item <?php echo e(request()->routeIs('member.dashboard') ? 'active' : ''); ?>" style="display:flex;align-items:center;gap:10px;padding:12px;color:#414141;text-decoration:none;border-radius:4px;transition:all 0.3s;">
                    <span style="font-size:18px;">📊</span>
                    <span>Üye Paneli</span>
                </a>
                <a href="<?php echo e(route('member.orders.index')); ?>" class="tm-nav-item <?php echo e(request()->routeIs('member.orders.*') ? 'active' : ''); ?>" style="display:flex;align-items:center;gap:10px;padding:12px;color:#414141;text-decoration:none;border-radius:4px;transition:all 0.3s;">
                    <span style="font-size:18px;">📦</span>
                    <span>Siparişlerim</span>
                </a>
                <a href="<?php echo e(route('member.addresses.index')); ?>" class="tm-nav-item <?php echo e(request()->routeIs('member.addresses.*') ? 'active' : ''); ?>" style="display:flex;align-items:center;gap:10px;padding:12px;color:#414141;text-decoration:none;border-radius:4px;transition:all 0.3s;">
                    <span style="font-size:18px;">📍</span>
                    <span>Adreslerim</span>
                </a>
                <a href="<?php echo e(route('member.favorites.index')); ?>" class="tm-nav-item <?php echo e(request()->routeIs('member.favorites.*') ? 'active' : ''); ?>" style="display:flex;align-items:center;gap:10px;padding:12px;color:#414141;text-decoration:none;border-radius:4px;transition:all 0.3s;">
                    <span style="font-size:18px;">💚</span>
                    <span>Favorilerim</span>
                </a>
                <a href="<?php echo e(route('member.returns.index')); ?>" class="tm-nav-item <?php echo e(request()->routeIs('member.returns.*') ? 'active' : ''); ?>" style="display:flex;align-items:center;gap:10px;padding:12px;color:#414141;text-decoration:none;border-radius:4px;transition:all 0.3s;">
                    <span style="font-size:18px;">↩️</span>
                    <span>İade/İptal</span>
                </a>
                <a href="<?php echo e(route('profile.index')); ?>" class="tm-nav-item <?php echo e(request()->routeIs('profile.*') ? 'active' : ''); ?>" style="display:flex;align-items:center;gap:10px;padding:12px;color:#414141;text-decoration:none;border-radius:4px;transition:all 0.3s;">
                    <span style="font-size:18px;">⚙️</span>
                    <span>Hesap Ayarları</span>
                </a>
            </nav>
        </aside>

        <!-- Main Content -->
        <main class="tm-member-content" style="background:#fff;border-radius:8px;box-shadow:0 2px 10px rgba(0,0,0,0.1);padding:30px;">
            <?php if(session('success')): ?>
                <div style="background:#d4edda;color:#155724;padding:12px 16px;border-radius:4px;margin-bottom:20px;border:1px solid #c3e6cb;">
                    <?php echo e(session('success')); ?>

                </div>
            <?php endif; ?>

            <?php if(session('info')): ?>
                <div style="background:#d1ecf1;color:#0c5460;padding:12px 16px;border-radius:4px;margin-bottom:20px;border:1px solid #bee5eb;">
                    <?php echo e(session('info')); ?>

                </div>
            <?php endif; ?>

            <?php if($errors->any()): ?>
                <div style="background:#f8d7da;color:#721c24;padding:12px 16px;border-radius:4px;margin-bottom:20px;border:1px solid #f5c6cb;">
                    <ul style="margin:0;padding-left:20px;">
                        <?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; ?>

            <?php echo $__env->yieldContent('member-content'); ?>
        </main>
    </div>
</div>

<style>
    .tm-nav-item:hover {
        background:#f7f7f7;
    }
    .tm-nav-item.active {
        background:#7db64f;
        color:#fff !important;
    }
    @media (max-width: 768px) {
        .tm-member-panel > div {
            grid-template-columns: 1fr !important;
        }
        .tm-member-sidebar {
            order: 2;
        }
        .tm-member-content {
            order: 1;
        }
    }
</style>
<?php $__env->stopSection(); ?>


<?php echo $__env->make('layouts.app', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH C:\xamp\htdocs\laravel-full\resources\views/member/layout.blade.php ENDPATH**/ ?>