@hotelSettings View Document - {{ hotelName() }}

{{ $document->name }}

@if($document->description)

{{ $document->description }}

@endif
{{ $document->created_at->format('F j, Y') }}
{{ $document->created_at->format('h:i A') }}

Document Information

File Name
{{ $document->file_name }}
File Type
{{ $document->file_type_label }} (.{{ $document->file_extension }})
File Size
{{ $document->formatted_file_size }}
Category
{{ $document->category_label }}
Document Type
{{ $document->type_label }}
Owner
{{ $document->owner_name ?? 'Unknown Owner' }} @if($document->owner_email)
{{ $document->owner_email }} @endif
Uploaded By
{{ $document->uploader->name ?? 'Unknown User' }}
Upload Date
{{ $document->created_at->format('M j, Y \a\t h:i A') }}
@if($document->tags && count($document->tags) > 0)
Tags
@foreach($document->tags as $tag) {{ $tag }} @endforeach
@endif @if($document->fileExists())
File is available in storage
@endif
@php // Generate the public URL for this document $publicUrl = route('documents.preview', $document->id); $storageUrl = Storage::disk('public')->url($document->file_path); @endphp
Preview options: @if($document->can_preview) @if($document->isOfficeDocument()) @endif @endif
Fullscreen
@if($document->is_image) {{ $document->name }} @elseif($document->is_pdf) @elseif($document->isOfficeDocument())
Preview powered by Microsoft Office Online
@elseif(in_array($document->file_extension, ['txt', 'csv', 'log', 'json', 'xml', 'html', 'css', 'js']))
Loading...

Loading text content...

@else

Preview Not Available

This file type cannot be previewed in the browser.

File type: {{ $document->file_type_label }} (.{{ $document->file_extension }})

Download to View
@endif
@if($document->description)
Description

{{ $document->description }}

@endif
Recent Activity
Viewed {{ $document->created_at->diffForHumans() }} {{ $document->created_at->format('M j, Y') }}
Uploaded {{ $document->created_at->diffForHumans() }} {{ $document->created_at->format('M j, Y') }}