@extends('layouts.portal') @section('header_title', 'Executive Overview') @section('content')

Welcome back, {{ Auth::user()->name }}.

"Creativity is intelligence having fun." — {{ Auth::user()->designation ?: 'Team Member' }}

{{ strtoupper(str_replace('_', ' ', Auth::user()->role)) }}
@if(Auth::user()->isCeo() || Auth::user()->isManager())

Total Projects

{{ $data['total_projects'] ?? 0 }}

Total Employees

{{ $data['total_employees'] ?? 0 }}
@if(($data['pending_leaves'] ?? 0) > 0) Action Needed @endif

Pending Leaves

{{ $data['pending_leaves'] ?? 0 }}

Active Tasks

{{ $data['active_tasks'] ?? 0 }}
@elseif(Auth::user()->isTeamLeader())

Team Members

{{ $data['dept_members'] ?? 0 }}
@elseif(Auth::user()->isTeamMember())

My Active Tasks

{{ $data['my_tasks_count'] ?? 0 }}

Latest Rating

{{ $data['latest_rating']->rating ?? 'N/A' }}
@endif
@if(Auth::user()->isCeo())

Revenue Distribution

Company performance over the last 6 months

Direct
Affiliate
@endif @if(Auth::user()->isTeamMember() || Auth::user()->isTeamLeader())

Your Active Tasks

Keep track of your ongoing responsibilities.

Pending tasks will appear here. Stay productive!

@endif

Recent Activity

View All
@if(isset($data['recent_reports']) && $data['recent_reports']->count() > 0) @foreach($data['recent_reports'] as $report)
User

{{ $report->user->name }} submitted a Daily Report

{{ $report->created_at->diffForHumans() }}

@endforeach @else

No recent activity found.

@endif
@endsection @push('scripts') @endpush