@extends('layouts.dashboard') @section('content')

Team Report

{{-- Filter Form --}}
{{-- Stats Summary --}}
Total Employees: {{ $stats['totalEmployees'] }}
Total Assigned Hours: {{ $stats['totalAssignedHours'] }}
Total Worked Hours: {{ $stats['totalWorkedHours'] }}
Total Payment:$ {{ number_format($stats['totalPayment'], 2) }}
Total Received:$ {{ number_format($stats['totalReceived'], 2) }}
Total Upsell Amount: {{ number_format($stats['totalUpsellAmount'], 2) }}

Team Members

@php $currentUser = auth()->user(); @endphp
@foreach($membersData as $index => $member) @php $isProjectManager = $member['user']->id === $currentUser->id; @endphp @endforeach
# Name Experience Assigned Hours Worked Hours Total Payment Received Payment Upsell Amount
{{ $index + 1 }} {{ $member['user']->name }} @if($isProjectManager) (PM) @endif {{ $member['user']->experience ?? '-' }} {{ $member['assignedHours'] }} {{ $member['workedHours'] }} ${{ number_format($member['payment'] ?? 0, 2) }} ${{ number_format($member['received'] ?? 0, 2) }} @if($isProjectManager) {{ number_format($member['upsell'], 2) }} @else - @endif
Total Employees: {{ $stats['totalEmployees'] }} {{ $stats['totalAssignedHours'] }} {{ $stats['totalWorkedHours'] }} ${{ number_format($stats['totalPayment'], 2) }} ${{ number_format($stats['totalReceived'], 2) }} {{ number_format($stats['totalUpsellAmount'], 2) }}
@endsection