<?php $__env->startSection('title', 'My Profile'); ?>
<?php $__env->startSection('breadcrumb'); ?>
    <span style="font-weight:600;color:var(--text-primary);">My Profile</span>
<?php $__env->stopSection(); ?>

<?php $__env->startSection('content'); ?>
    <div style="max-width:960px;">
        
        <div class="card mb-4">
            <div class="card-body" style="display:flex;gap:24px;align-items:center;">
                <div class="avatar" style="width:80px;height:80px;font-size:2rem;"><?php echo e($user->initials); ?></div>
                <div style="flex:1;">
                    <h2 style="margin:0;font-size:1.5rem;"><?php echo e($user->name); ?></h2>
                    <div style="color:var(--text-secondary);margin-top:2px;"><?php echo e($user->job_title ?? 'Team Member'); ?></div>
                    <div style="display:flex;gap:12px;margin-top:8px;flex-wrap:wrap;">
                        <?php $__currentLoopData = $user->roles; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $role): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                            <span class="badge badge-primary"><?php echo e($role->name); ?></span>
                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                        <span class="badge badge-secondary"><?php echo e($user->department ?? 'No Department'); ?></span>
                        <?php if($user->company): ?>
                            <span class="badge badge-secondary"><?php echo e($user->company->name); ?></span>
                        <?php endif; ?>
                    </div>
                </div>
                <a href="<?php echo e(route('profile.edit')); ?>" class="btn btn-secondary">
                    <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" style="width:14px;height:14px;"><path d="M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7"></path><path d="M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z"></path></svg>
                    Edit Profile
                </a>
            </div>
        </div>

        
        <div class="grid grid-4 mb-4">
            <div class="stat-card">
                <div class="stat-card-value" style="color:var(--accent-primary);"><?php echo e($stats['assignedTasks']); ?></div>
                <div class="stat-card-label">Assigned Tasks</div>
            </div>
            <div class="stat-card">
                <div class="stat-card-value" style="color:var(--accent-green);"><?php echo e($stats['completedTasks']); ?></div>
                <div class="stat-card-label">Completed</div>
            </div>
            <div class="stat-card">
                <div class="stat-card-value" style="color:var(--accent-pink);"><?php echo e($stats['projects']); ?></div>
                <div class="stat-card-label">Projects</div>
            </div>
            <div class="stat-card">
                <div class="stat-card-value" style="color:var(--accent-orange);"><?php echo e($stats['teams']); ?></div>
                <div class="stat-card-label">Teams</div>
            </div>
        </div>

        <div style="display:grid;grid-template-columns:1fr 1fr;gap:24px;">
            
            <div class="card">
                <div class="card-header"><span class="card-header-title">Contact Information</span></div>
                <div class="card-body">
                    <div style="display:grid;gap:16px;">
                        <div>
                            <div class="text-xs text-muted" style="margin-bottom:2px;">Email</div>
                            <div style="color:var(--text-primary);"><?php echo e($user->email); ?></div>
                        </div>
                        <div>
                            <div class="text-xs text-muted" style="margin-bottom:2px;">Phone</div>
                            <div style="color:var(--text-primary);"><?php echo e($user->phone ?? '—'); ?></div>
                        </div>
                        <div>
                            <div class="text-xs text-muted" style="margin-bottom:2px;">Department</div>
                            <div style="color:var(--text-primary);"><?php echo e($user->department ?? '—'); ?></div>
                        </div>
                        <div>
                            <div class="text-xs text-muted" style="margin-bottom:2px;">Member Since</div>
                            <div style="color:var(--text-primary);"><?php echo e($user->created_at->format('F j, Y')); ?></div>
                        </div>
                    </div>
                </div>
            </div>

            
            <div class="card">
                <div class="card-header"><span class="card-header-title">Upcoming Tasks</span></div>
                <div class="card-body">
                    <?php $__empty_1 = true; $__currentLoopData = $recentTasks; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $task): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>
                        <a href="<?php echo e(route('tasks.show', $task)); ?>" class="task-item" style="text-decoration:none;">
                            <div class="task-info">
                                <div class="task-title"><?php echo e($task->title); ?></div>
                                <div class="text-xs text-muted">
                                    <?php echo e($task->project->name ?? ''); ?>

                                    <?php if($task->due_date): ?>
                                        · Due <?php echo e($task->due_date->format('M d')); ?>

                                    <?php endif; ?>
                                </div>
                            </div>
                            <span class="badge badge-<?php echo e($task->status === 'in_progress' ? 'primary' : 'secondary'); ?>">
                                <?php echo e(ucfirst(str_replace('_', ' ', $task->status))); ?>

                            </span>
                        </a>
                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?>
                        <div style="text-align:center;padding:24px;color:var(--text-tertiary);">
                            🎉 You're all caught up!
                        </div>
                    <?php endif; ?>
                </div>
            </div>
        </div>

        
        <div class="card mt-4">
            <div class="card-header"><span class="card-header-title">Recent Activity</span></div>
            <div class="card-body">
                <?php $__empty_1 = true; $__currentLoopData = $activities; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $activity): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>
                    <div class="task-item">
                        <div class="task-info">
                            <div class="task-title" style="font-weight:400;"><?php echo e($activity->description); ?></div>
                            <div class="text-xs text-muted"><?php echo e($activity->created_at->diffForHumans()); ?></div>
                        </div>
                    </div>
                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?>
                    <div style="text-align:center;padding:24px;color:var(--text-tertiary);">No recent activity.</div>
                <?php endif; ?>
            </div>
        </div>
    </div>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /Applications/XAMPP/xamppfiles/htdocs/asana/resources/views/profile/show.blade.php ENDPATH**/ ?>