@extends('admin.layout.app') @section('title', __('front.contact_messages')) @section('body')

{{ __('front.contact_messages') }}

{{ __('front.total_messages') }} {{ $contacts->total() }} @php $unreadCount = $contacts->where('is_read', false)->count(); @endphp @if($unreadCount > 0) | {{ __('front.unread_messages') }} {{ $unreadCount }} @endif

{{-- Export Buttons --}} {{-- Search Form --}}
{{-- Filter Buttons --}}
@if(session('success')) @endif
@csrf @method('DELETE')
{{ __('front.messages') }}
{{ __('front.last_updated') }}: {{ now()->format('Y-m-d h:i A') }}
@forelse($contacts as $c) @empty @endforelse
{{ __('front.status') }} {{ __('front.sender') }} {{ __('front.subject') }} {{ __('front.phone') }} {{ __('front.date') }} {{ __('front.actions') }}
@if(!$c->is_read) {{ __('front.unread') }} @else {{ __('front.read') }} @endif
{{ strtoupper(substr($c->name, 0, 1)) }}
{{ $c->name }}
{{ $c->email }}
{{ $c->subject ?? '—' }}
@if($c->message)
{{ Str::limit($c->message, 60) }}
@endif
@if($c->phone) {{ $c->phone }} @else @endif
{{ $c->created_at?->format('Y-m-d') }}
{{ $c->created_at?->format('h:i A') }}
@csrf @method('DELETE')
...
@if($contacts->hasPages()) @endif
@endsection