@vite(['resources/css/app.css', 'resources/js/app.js'])
@if($contacts->count() > 0)
    @foreach($contacts as $contact)
  • {{ strtoupper(substr($contact->name, 0, 2)) }}

    {{ $contact->name }}

    @if(!$contact->isRead()) New @endif

    {{ $contact->email }}

    Subject: {{ $contact->subject }}

    {{ Str::limit($contact->message, 150) }}

    {{ $contact->created_at->format('M j, Y') }}

    {{ $contact->created_at->format('g:i A') }}

    @if($contact->isRead())

    Read {{ $contact->read_at->diffForHumans() }}

    @endif
  • @endforeach
{{ $contacts->links() }}
@else

No contact submissions yet

Contact form submissions will appear here when users send messages.

@endif