@extends('layouts.admin') @section('section-label', 'Gestão') @section('title', 'Leads') @section('content') @php $currentUser = auth()->user(); $statusLabels = ['new' => 'Novo', 'contact' => 'Em contato', 'closed' => 'Fechado']; @endphp
| Lead | Contato | Imóvel | Status |
|---|---|---|---|
|
{{ $lead->name }}
{{ $lead->created_at->format('d/m/Y H:i') }}
|
{{ $lead->email ?? $lead->phone }} | @if($lead->property) @if($currentUser?->canAdmin('properties', 'edit')) {{ $lead->property->title }} @else {{ $lead->property->title }} @endif @else - @endif | @if($currentUser?->canAdmin('leads', 'edit')) @else {{ $statusLabels[$lead->status] ?? $lead->status }} @endif |
| Nenhum lead encontrado. | |||