@extends('layouts.user_type.auth') @section('contactUs')
@include('components.alert')
All enquiries
Incoming contact and inquiry requests.
{{ $contactUs->total() ?? 0 }} records
@forelse($contactUs as $index => $contact) @php $cuInitials = strtoupper(collect(preg_split('/\s+/', trim($contact->name ?: '?')))->filter()->take(2)->map(fn ($p) => mb_substr($p, 0, 1))->implode('')); $cuTone = 'c' . ((array_sum(array_map('ord', str_split($contact->name ?: ''))) % 6) + 1); @endphp @empty @endforelse
Contact Phone Company Subject Received Status Action
{{ $cuInitials }} {{ $contact->name }} {{ $contact->email }}
{{ $contact->contact_number }} {{ $contact->company_name }} {{ \Illuminate\Support\Str::limit(ucfirst(str_replace('_', ' ', $contact->subject)), 30) }} @if($contact->created_at) {{ $contact->created_at->format('d M Y') }}{{ $contact->created_at->format('h:i A') }} @else — @endif {{ ucfirst($contact->status) }}
@if (hasPermission('contactUs', 'insert') && $contact->email) @endif
No contact requests found
Messages sent from the website contact form will appear here.
@include('components.pagination', ['paginator' => $contactUs])
Contact details
Full enquiry as submitted from the website.
@php $fields = [ ['label' => 'Name', 'id' => 'contact-name'], ['label' => 'Email', 'id' => 'contact-email'], ['label' => 'Contact Number', 'id' => 'contact-contact-number'], ['label' => 'Company Name', 'id' => 'contact-company-name'], ['label' => 'Subject', 'id' => 'contact-subject'], ['label' => 'Message', 'id' => 'contact-message'], ['label' => 'Hear About Us', 'id' => 'contact-hear_about_us'], ['label' => 'Status', 'id' => 'contact-status'], ['label' => 'Date', 'id' => 'contact-created_at'], ]; @endphp
@foreach($fields as $field)
{{ $field['label'] }}
@endforeach
@if (hasPermission('contactUs', 'insert')) @endif Mark as contacted
@if (hasPermission('contactUs', 'insert')) @endif
@endsection