All Contacts
@if (Session::has('msg'))
{{ Session::get('msg') }}
@endif
| # |
Name |
Email |
Phone |
Message |
Received At |
Action |
@php
$startIndex = ($contacts->currentPage() - 1) * $contacts->perPage() + 1;
@endphp
@foreach ($contacts as $contact)
| {{ $startIndex++ }} |
{{ $contact->first_name }} {{ $contact->last_name }} |
{{ $contact->email }} |
{{ $contact->phone_number }} |
{{ Str::limit($contact->message, 50) }} |
{{ \Carbon\Carbon::parse($contact->created_at)->isoFormat('Do MMMM YYYY, h:mm A') }} |
|
@endforeach
{{ $contacts->links() }}