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

Dashboard Data

Working

{{ $workingCount }}

Paused

{{ $pausedCount }}

Issue

{{ $issueCount }}

Temp Hold

{{ $tempHoldCount }}

{{-- Use 3 columns grid, responsive --}}
Hired

{{ $hiredLeads->sum() }}

Hired Projects by Profile

@forelse ($profiles as $profile) @php $count = $hiredLeads[$profile->id] ?? 0; if ($count > 10) { $bgClass = 'bg-blue-600 text-white'; $btnBg = 'bg-white text-blue-700'; } elseif ($count > 5) { $bgClass = 'bg-yellow-400 text-gray-900'; $btnBg = 'bg-white text-yellow-700'; } elseif ($count > 0) { $bgClass = 'bg-cyan-500 text-white'; $btnBg = 'bg-white text-cyan-700'; } else { $bgClass = 'bg-gray-200 text-gray-600'; $btnBg = 'bg-gray-300 text-gray-600'; } @endphp
{{ $profile->name ?? 'N/A' }}
{{ $count }}
@if($count > 0) View @endif
@empty
No hired leads found.
@endforelse
Bids

{{ $bidLeads->sum() }}

Bids by Profile

@forelse ($profiles as $profile) @php $count = $bidLeads[$profile->id] ?? 0; if ($count > 10) { $bgClass = 'bg-purple-600 text-white'; } elseif ($count > 5) { $bgClass = 'bg-pink-400 text-gray-900'; } elseif ($count > 0) { $bgClass = 'bg-yellow-300 text-gray-800'; } else { $bgClass = 'bg-gray-200 text-gray-600'; } @endphp
{{ $profile->name ?? 'N/A' }} {{ $count }}
@empty
No bids found.
@endforelse
Good Bids

{{ $goodBidLeads->sum() }}

Good Bids by Profile

@forelse ($profiles as $profile) @php $count = $goodBidLeads[$profile->id] ?? 0; if ($count > 10) { $bgClass = 'bg-emerald-700 text-white'; } elseif ($count > 5) { $bgClass = 'bg-lime-400 text-gray-900'; } elseif ($count > 0) { $bgClass = 'bg-green-300 text-gray-800'; } else { $bgClass = 'bg-gray-200 text-gray-600'; } @endphp
{{ $profile->name ?? 'N/A' }} {{ $count }}
@empty
No good bids found.
@endforelse
@foreach ([ '2nd Day Follow-up' => $followUps2, '3rd Day Follow-up' => $followUps3, '7th Day Follow-up' => $followUps7, '30th Day Follow-up' => $followUps30 ] as $title => $leads)

{{ explode(' ', $title)[0] }}

{{ $title }}
@endforeach
@endsection