@php $lines = preg_split('/\r\n|\r|\n/', $contents); $downloadUrl = route('helpdesk.attachments.download', $attachment->id); @endphp @extends('helpdesk::layouts.master') @section('content')

Read-only source viewer

{{ $attachment->original_name ?? 'Attachment' }}

Language: {{ strtoupper($language) }} • Size: {{ Number::fileSize($attachment->size) }}

Download
@foreach ($lines as $index => $line) @endforeach
{{ $index + 1 }} {{ $line }}
@endsection