@extends('layouts.app') @section('title', 'Enquiries') @section('page-title', 'Enquiries') @section('breadcrumb', 'Website / Enquiries') @section('content') @php $status = request('status', 'all'); $newCount = $company->enquiries()->where('status', 'new')->count(); @endphp

Contact enquiries

Messages from your public institute page ({{ $company->name }}).

@if($newCount > 0) {{ $newCount }} new @endif
@if(session('success'))
{{ session('success') }}
@endif
@foreach(['all' => 'All', 'new' => 'New', 'read' => 'Read', 'replied' => 'Replied'] as $key => $label) {{ $label }} @endforeach
@forelse($items as $item)
{{ $item->name }}
{{ $item->email }} @if($item->phone) · {{ $item->phone }} @endif
{{ $item->created_at?->format('M d, Y · H:i') }}
@if($item->subject)
{{ $item->subject }}
@endif

{{ $item->message }}

{{ ucfirst($item->status) }}
@if($item->status !== 'read')
@csrf
@endif @if($item->status !== 'replied')
@csrf
@endif @if($item->status !== 'new')
@csrf
@endif
@csrf @method('DELETE')
@empty

No enquiries yet.

When visitors submit the form on your public institute page, they will appear here.

Open public contact form →
@endforelse
{{ $items->withQueryString()->links() }}
@endsection