@extends('layout') @section('title', $contact->name) @section('content') @php $in = 'rounded-xl border border-slate-200 px-3 py-2 text-sm focus:ring-2 focus:ring-indigo-400 outline-none'; @endphp
{{ $contact->initials }}

{{ $contact->name }}

{{ $contact->status }} @if($contact->converted_at)Cliente desde {{ $contact->converted_at->format('d/m/Y') }}@endif
@csrf @method('PUT')

Datos

@include('contacts._fields', ['contact' => $contact])

Servicios contratados

${{ number_format($contact->mrr) }}/mes
@foreach($contact->services as $s)
{{ $s->name }}
${{ number_format($s->price) }}/mes @if($s->started_at)· desde {{ $s->started_at->format('d/m/Y') }}@endif
@csrf @method('PATCH')
@csrf @method('DELETE')
@endforeach
@csrf
@csrf @method('DELETE')
💬 WhatsApp {{ $contact->phone ? '· +'.$contact->phone : '' }}
@forelse($contact->messages as $m)
{{ $m->body }}
{{ $m->sent_at->format('d/m H:i') }}@if($m->user) · {{ $m->user->name }}@endif
@empty

Aún no hay mensajes. Aparecerán cuando el contacto escriba a tu número de WhatsApp Business.

@endforelse
@if($contact->phone)
@csrf
@endif

Bitácora

@csrf
@forelse($contact->notes as $n)
{{ $n->user->name ?? 'Sistema' }} {{ $n->created_at->format('d/m/Y H:i') }}
{{ $n->body }}
@empty

Sin notas todavía.

@endforelse
@endsection