@extends('layouts/layoutMaster') @section('title', 'Cliente - Admin') @section('content') @php use App\Models\MariachiReview; use App\Models\QuoteConversation; use App\Models\User; $statusClass = match ($client->status) { User::STATUS_ACTIVE => 'bg-label-success', User::STATUS_INACTIVE => 'bg-label-secondary', default => 'bg-label-warning', }; $statusLabel = $client->statusLabel(); $preferences = $profile?->preferences ?? []; $recommendationsEnabled = (bool) ($preferences['share_data_for_recommendations'] ?? false); $marketingEnabled = (bool) ($preferences['share_data_for_marketing'] ?? false); @endphp @if (session('status'))
Ficha administrativa del cliente, su actividad y sus preferencias.
| Mariachi / anuncio | Evento | Mensajes | Estado | Reseña |
|---|---|---|---|---|
|
{{ $profileName }}
{{ $conversation->mariachiProfile?->city_name ?: $conversation->event_city ?: 'Sin ciudad' }}
|
{{ $conversation->event_city ?: 'Sin ciudad' }}
{{ $conversation->event_date?->format('Y-m-d') ?: 'Sin fecha' }}
|
{{ (int) $conversation->messages_count }} mensaje(s)
{{ (int) $conversation->unread_for_client_count }} sin leer para cliente
|
{{ $conversationStatusLabel }} | @if ($conversation->review) Con reseña @else Sin reseña @endif |
| Este cliente aún no tiene solicitudes registradas. | ||||
Este cliente aún no guardó anuncios como favoritos.
@endforelseEste cliente aún no tiene actividad de vistos recientes.
@endforelse| Mariachi / anuncio | Calificación | Moderación | Verificación | Fecha |
|---|---|---|---|---|
|
{{ $reviewTarget }}
@if ($review->title)
{{ $review->title }}
@endif
|
{{ str_repeat('★', (int) $review->rating) }}{{ str_repeat('☆', max(0, 5 - (int) $review->rating)) }} | {{ $moderationLabel }} | {{ $review->verification_label }} | {{ optional($review->created_at)->format('Y-m-d H:i') ?: 'N/D' }} |
| Este cliente aún no ha dejado reseñas. | ||||