@if (isset($list))
{{-- TEL: bulk delete --}}
{{ $records->links() }}
@elseif(isset($show))
| Fields |
: |
Values |
| Name |
: |
{{ $record->name }} |
| Email |
: |
{{ $record->email }} |
| Phone |
: |
{{ $record->phone }} |
| Company Name |
: |
{{ $record->company_name }} |
| Subject |
: |
{{ $record->subject }} |
| Message |
: |
{{ $record->message }} |
@php
$attachment = $record->attachment;
$extension = pathinfo($attachment, PATHINFO_EXTENSION);
$imageOrPdf = in_array(strtolower($extension), ['jpg', 'jpeg', 'png', 'gif', 'bmp', 'svg', 'webp', 'pdf']);
@endphp
| Attachment |
: |
@if ($attachment)
@if ($imageOrPdf)
View
@else
Download
@endif
@else
No attachment
@endif
|
| Date |
: |
{{ $record->created_at->format('d M Y l g:i A') }} |
@endif