@extends('admin.layouts.app') @section('title', 'Contact Enquiries - Admin Dashboard') @section('content')

Contact Enquiries

@forelse($contacts as $contact) @empty @endforelse
ID Name Email Phone Subject Message Status Created At Actions
{{ $contact->id }} {{ $contact->name }} {{ $contact->email }} {{ $contact->phone ?? 'N/A' }} {{ Str::limit($contact->subject ?? 'N/A', 30) }} {{ Str::limit($contact->message ?? 'N/A', 50) }} @if($contact->status === 'new') Unread @elseif($contact->status === 'read') Read @elseif($contact->status === 'replied') Replied @elseif($contact->status === 'closed') Closed @endif {{ $contact->created_at->format('M d, Y H:i') }}
No contact enquiries found.
@if($contacts->hasPages())
Showing {{ $contacts->firstItem() }} to {{ $contacts->lastItem() }} of {{ $contacts->total() }} entries
{{ $contacts->appends(request()->query())->links() }}
@endif
@endsection