@extends('admin.layouts.app') @section('title', 'Contact Inbox') @section('content')
{{-- Status tabs --}}
@foreach(['' => 'Active', 'unread' => 'Unread', 'read' => 'Read', 'replied' => 'Replied', 'archived' => 'Archived'] as $s => $l) {{ $l }} @if($s && isset($counts[$s]) && $counts[$s] > 0) {{ $counts[$s] }} @endif @endforeach
{{-- Search --}}
@if(request('q'))Clear@endif
@forelse($contacts as $c) @empty @endforelse
FromSubject / MessageStatusReceived
{{ $c->name }} @if($c->status === 'unread')@endif
{{ $c->email }}
@if($c->phone)
{{ $c->phone }}
@endif
@if($c->subject)
{{ $c->subject }}
@endif
{{ Str::limit($c->message, 80) }}
{{ ucfirst($c->status) }} {{ $c->created_at->diffForHumans() }}
@csrf @method('DELETE')
No messages
Contact form submissions will appear here.
@if($contacts->hasPages())
{{ $contacts->appends(request()->query())->links() }}
@endif
@endsection