@extends('layouts.app') @section('mobile-title', 'Share Links') @section('mobile-subtitle', $document->title) @section('mobile-back', route('documents.show', $document)) @section('content') @php $shared = $shares->whereNull('revoked_at')->isNotEmpty(); $canCreateShare = auth()->user()->can('share', $document); $humanSize = $document->size >= 1048576 ? number_format($document->size / 1048576, 1).' MB' : number_format(max($document->size, 1) / 1024, 1).' KB'; $fileIcon = str_contains($document->mime_type ?? '', 'pdf') ? 'picture_as_pdf' : 'description'; @endphp
{{ $shared ? 'Shared Internally & Externally' : 'Internal Access Only' }} Last updated {{ $document->updated_at->diffForHumans() }} by {{ $document->uploader->name }}
Approve the document and complete a clean document scan before generating a public link.
| Link Info | Settings | Views | Actions |
|---|---|---|---|
|
{{ $share->recipient_email ?: 'Manual link' }}
{{ route('document-shares.show', $share) }}
@if ($share->expires_at && $share->expires_at->isFuture() && $share->expires_at->lte(now()->addDay()))
Expires Tomorrow
@elseif ($share->expires_at)
Expires {{ $share->expires_at->format('M j, Y') }}
@endif
|
{{ $share->allow_downloads ? 'Downloads ON' : 'Downloads OFF' }}
{{ $share->requiresPin() ? 'Password ON' : 'No Password' }}
|
{{ $share->download_count }} | @if (! $share->revoked_at) @else Revoked @endif |
| No shared links yet. | |||