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

All Projects

{{-- Filter Form --}}

New Projects ({{ date('F', mktime(0, 0, 0, request('report_month', now()->month), 10)) }})

{{ $newProjectsCount }}

Active Projects ({{ date('F', mktime(0, 0, 0, request('report_month', now()->month), 10)) }})

{{ $activeProjectsCount }}

Prediction Amount ({{ date('F', mktime(0, 0, 0, request('report_month', now()->month), 10)) }})

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

Amount Received ({{ date('F', mktime(0, 0, 0, request('report_month', now()->month), 10)) }})

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

@forelse($paginatedProjects as $key => $project) @php $statusColors = [ 'complete' => 'text-green-600 font-bold', 'working' => 'text-green-600 font-bold', 'hold' => 'text-yellow-600 font-bold', 'paused' => 'text-purple-600 font-bold', 'issues' => 'text-red-600 font-bold', 'temp hold' => 'text-orange-600 font-bold', 'closed' => 'text-gray-600 font-bold', ]; $statusRaw = $project->project_status ?? 'working'; $status = strtolower(trim($statusRaw)); $statusClass = $statusColors[$status] ?? 'text-gray-500 font-bold'; @endphp @empty @endforelse
# Name/URL Office Details Price/Hours Added On Action Type Project Type Project Status Client Details Reason Attachment Description
SEODIS-{{ $paginatedProjects->firstItem() + $key }} {{ $project->name_or_url }}
Dashboard Link
Business: {{ $project->business_type }}
Grade: {{ $project->project_grade }}
PM: {{ optional($project->projectManager)->name ?? '-' }}
TL: {{ optional($project->teamLead)->name ?? '-' }}
Sales: {{ optional($project->salesPerson)->name ?? '-' }}
Department: {{ optional($project->department)->name ?? '-' }}
Assigned Employee: {{ optional($project->assignMainEmployee)->name ?? '-' }}
@if($project->upsell_employee_id && optional($project->upsellEmployee)->name)
Upsell Employee: {{ $project->upsellEmployee->name }}
@endif
Can Client Rehire? {{ $project->can_client_rehire ?? 'No' }}
Price: ${{ number_format($project->display_price ?? 0, 2) }}
Content Price: ${{ $project->content_price ?? '0' }}
Hours: {{ $project->display_hours ?? 'N/A' }}
@if($project->duration_days) Project Duration: {{ $project->duration_days }} day(s) @else Project Duration: N/A @endif
{{ $project->created_at->format('d-M-Y') }}
Project Type: {{ $project->project_type }}
Report: {{ $project->report_type }}
Client Type: {{ $project->client_type }}
Category: {{ optional($project->projectCategory)->name ?? '-' }}
Sub Category: {{ optional($project->projectSubCategory)->name ?? '-' }}
Country: {{ optional($project->country)->name ?? '-' }}
{{ ucfirst($statusRaw) }} Name: {{ $project->client_name }}
Email: {{ $project->client_email }}
Other Info: {{ Str::limit($project->client_other_info, 20) }} {{ $project->client_other_info }}
@if (!empty($project->reason_description)) {{ Str::limit($project->reason_description, 20) }} {{ $project->reason_description }} @else - @endif
Updated At: @if (!empty($project->status_date)) {{ \Carbon\Carbon::parse($project->status_date)->format('d-M-Y') }} @else - @endif
@php $pmAttachments = $project->attachments ?? []; $salesAttachments = $project->saleTeamAttachments ?? []; @endphp @foreach ($pmAttachments as $attachment) 📎 {{ basename($attachment->file_path) }} (PM) @endforeach @foreach ($salesAttachments as $attachment) 📎 {{ basename($attachment->file_path) }} (Sales) @endforeach @if (count($pmAttachments) + count($salesAttachments) === 0) No attachments @endif Add Attachment {!! nl2br(e($project->display_description)) !!}
No projects found.
{{-- Pagination --}}
{{ $paginatedProjects->withQueryString()->links() }}
@endsection