@extends('layouts.app') @section('title', 'Contact Inquiries') @section('nav_inquiries', 'bg-teal-50 text-teal-700 font-semibold') @section('page_title', 'Contact Inquiries') @section('page_subtitle', 'Messages submitted through the public contact form') @section('content') @if(session('success'))
{{ session('success') }}
@endif {{-- Filter tabs + search --}}
All {{ $counts['all'] }} New {{ $counts['new'] }} Read {{ $counts['read'] }} Archived {{ $counts['archived'] }}
@if($filter !== 'all') @endif @if($search) Clear @endif
{{-- List --}} @if($inquiries->isEmpty())
@if($search) No inquiries match "{{ $search }}". @else No inquiries yet. The contact form is live on the public website. @endif
@else
@foreach($inquiries as $inq)
{{ $inq->name }} @if($inq->status === 'new') New @elseif($inq->status === 'archived') Archived @else Read @endif
{{ $inq->email }} @if($inq->phone)·{{ $inq->phone }}@endif
@if($inq->subject)

{{ $inq->subject }}

@endif

{{ $inq->message }}

@if(strlen($inq->message) > 140) @endif

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

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

{{-- Actions --}}
@if($inq->status !== 'read')
@csrf
@endif @if($inq->status !== 'archived') ·
@csrf
@else ·
@csrf
@endif · Reply by email
@csrf @method('DELETE')
@endforeach
@if($inquiries->hasPages())
{{ $inquiries->links() }}
@endif @endif @endsection