{{ $metric['label'] }}
{{ $metric['value'] }}
@extends('layouts.dashboard.inface', ['section' => 'agents']) @section('content') @php $performance = $agent->performance; $fullName = trim(($agent->firstName ?? '').' '.($agent->lastName ?? '')) ?: 'Agente sin nombre'; $imageUrl = $agent->imageUrl ? (\Illuminate\Support\Str::startsWith($agent->imageUrl, ['http://', 'https://']) ? $agent->imageUrl : \Illuminate\Support\Facades\Storage::disk('public')->url($agent->imageUrl)) : null; $initials = mb_strtoupper(mb_substr($agent->firstName ?? 'A', 0, 1).mb_substr($agent->lastName ?? '', 0, 1)); $target = $performance['target'] ?? []; $pipelineColors = ['bg-blue-400', 'bg-sky-500', 'bg-indigo-500', 'bg-emerald-500']; @endphp
{{ $agent->experienceLevel ?? 'Sin nivel asignado' }}
{{ implode(' · ', array_filter([ $agent->place, implode(', ', $performance['agencies'] ?? []), ])) ?: 'Sin ubicación o inmobiliaria asignada' }}
{{ $metric['label'] }}
{{ $metric['value'] }}
Meta: {{ $target['revenue_formatted'] ?? '$0.00' }}
{{ $target['achieved_formatted'] ?? '$0.00' }}
{{ number_format((float) ($target['progress'] ?? 0), 1) }}% completado
Define objetivos mensuales de prospección, ventas y cobranza.
Prospectos vinculados con este agente.
| Prospecto | Interés | Estatus | Último contacto | |
|---|---|---|---|---|
|
{{ $lead['name'] }} {{ $lead['email'] }} |
{{ $lead['interest'] }} | {{ $lead['status'] }} | {{ $lead['last_contact'] ? \Carbon\Carbon::parse($lead['last_contact'])->format('d/m/Y') : 'Sin actividad' }} | Ver |
| Este agente todavía no tiene prospectos asignados. | ||||