@if ($data->attachments->isNotEmpty())
@foreach ($data->attachments as $attachment)
@php
$extension = pathinfo($attachment->file_path, PATHINFO_EXTENSION);
@endphp
@if (strtolower($extension) == 'pdf')
PDF
@else
 }})
@endif
{{ basename($attachment->file_path) }}
{{ $attachment->created_at->format('d M Y') }}
@endforeach
@else
No attachments available.
@endif