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

Projects Report - {{ $pm->name ?? '-' }} | Status: {{ ucfirst($status) }}

{{-- Summary Section --}}

Total Projects

{{ $projects->count() }}

Prediction Amount ({{ $monthName }})

${{ number_format($predictionAmount, 2) }}

Amount Received ({{ $monthName }})

${{ number_format($amountReceived, 2) }}

{{-- Filter Form --}}
{{-- Existing Filters: Project Manager, Sales Person, Employee, Department --}} {{-- Add new filters below --}}
{{-- Team Lead --}}
{{-- Hired From --}}
{{-- Month --}}
{{-- Year --}}
{{-- Status --}}
{{-- Client Type --}}
{{-- Submit Button --}}
{{-- Table --}}
@forelse($projects as $index => $project) @php $statusColors = [ 'complete' => 'bg-blue-200 text-blue-800', 'working' => 'bg-green-200 text-green-800', 'hold' => 'bg-yellow-200 text-yellow-800', 'paused' => 'bg-purple-200 text-purple-800', 'issues' => 'bg-red-200 text-red-800', 'temp hold' => 'bg-orange-200 text-orange-800', 'closed' => 'bg-gray-200 text-gray-800', ]; $statusRaw = $project->project_status ?? 'working'; $status = strtolower(trim($statusRaw)); $statusClass = $statusColors[$status] ?? 'bg-gray-200 text-gray-800'; @endphp @empty @endforelse
# Name / URL Office Details Price / Hours Added On Type Project Type Status Client Details Action Attachment Description
{{ $index + 1 }} {{ $project->name_or_url }}
Dashboard
Business: {{ $project->business_type }}
Grade: {{ $project->project_grade }}
PM: {{ optional($project->projectManager)->name ?? '-' }}
TL: {{ optional($project->teamLead)->name ?? '-' }}
Sales: {{ optional($project->salesPerson)->name ?? '-' }}
Dept: {{ optional($project->department)->name ?? '-' }}
Employee: {{ optional($project->assignMainEmployee)->name ?? '-' }}
Price: ${{ $project->price ?? '0' }}
Hours: {{ $project->estimated_hours ?? 'N/A' }}
Received: ${{ $project->received_price ?? '0' }}
Duration: {{ $project->duration_days ?? '-' }} days
{{ $project->created_at->format('d M Y') }} Project: {{ $project->project_type }}
Report: {{ $project->report_type }}
Client Type: {{ $project->client_type }}
Category: {{ optional($project->projectCategory)->name ?? '-' }}
Sub: {{ optional($project->projectSubCategory)->name ?? '-' }}
Country: {{ optional($project->country)->name ?? '-' }}
{{ ucfirst($statusRaw) }} Name: {{ $project->client_name }}
Email: {{ $project->client_email }}
Info: {{ Str::limit($project->client_other_info, 20) }} {{ $project->client_other_info }}
@forelse ($project->attachments as $attachment) {{ basename($attachment->file_path) }} @empty No attachments @endforelse Add Attachment {{ Str::limit($project->description, 100) }}
No projects found for this status.
@endsection