@extends('admin.layouts.master') @section('title', 'Mensajes - Lash Vanshy') @section('page-title', 'Mensajes de Contacto') @section('content')

Mensajes

Gestiona los mensajes recibidos del formulario de contacto

@if($mensajes->where('leido', false)->count() > 0)
@csrf
@endif

{{ $mensajes->total() }}

Total Mensajes

{{ $mensajes->where('leido', false)->count() }}

Sin Leer

{{ $mensajes->where('leido', true)->count() }}

Leídos

@if($mensajes->isNotEmpty())
@foreach($mensajes as $mensaje) @endforeach
Nombre Email Mensaje Fecha Estado Acciones
{{ $mensaje->nombre }} @if($mensaje->telefono)
{{ $mensaje->telefono }} @endif
{{ $mensaje->email }} {{ Str::limit($mensaje->mensaje, 50) }} {{ $mensaje->created_at->format('d/m/Y H:i') }} @if($mensaje->leido) Leído @else Nuevo @endif
@if(!$mensaje->leido)
@csrf @method('PATCH')
@endif
@csrf @method('DELETE')
{{ $mensajes->links() }}
@else

No hay mensajes

Los mensajes del formulario de contacto aparecerán aquí

@endif
@endsection