@extends('admin.layouts.app') @section('title', 'Contact Messages') @section('subtitle', 'View and manage contact form submissions') @section('content')
All Messages Unread Unreplied
@forelse($messages as $message) @empty @endforelse
From Subject Status Date Actions
{{ substr($message->name, 0, 1) }}

{{ $message->name }}

@if(!$message->is_read) @endif

{{ $message->email }}

{{ $message->subject ?? 'No subject' }}

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

@if($message->is_replied) Replied @else Pending @endif {{ $message->created_at->format('M d, Y') }}
{{ $message->created_at->format('h:i A') }}
@csrf @method('DELETE')
No messages found.
@if($messages->hasPages())
{{ $messages->links() }}
@endif @endsection