blob: fb0fde869ec07cf6e4f7b0ddfed83120d25af658 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
|
@extends('template')
@section('content')
<section>
<h5>Uploaded Files</h5>
<h6><a href="{{ route('files.upload.form') }}">Upload Files</a></h6>
<div class="widget">
<!-- Search/Filter -->
<form method="GET" class="search-container">
<input type="text"
name="search"
value="{{ request('search') }}"
placeholder="Search filename..."
class="search-input">
<button type="submit" style="padding: 8px 16px; background-color: #333; color: #fff; border: none; cursor: pointer;">
Search
</button>
@if(request('search'))
<a href="{{ route('files.browse') }}" style="padding: 8px 16px; background-color: #555; color: #fff; text-decoration: none; display: inline-block;">
Clear
</a>
@endif
</form>
<!-- Files List -->
<ul style="list-style: none; padding: 0; margin: 0;">
@forelse($files as $file)
<li style="padding: 10px 0; border-bottom: 1px solid #ddd;">
<div style="margin-bottom: 5px;">
<a href="{{ route('files.download', $file) }}" style="color: #3f6d87; text-decoration: none; font-weight: 500;">
{{ $file->filename_og }}
</a>
<span style="color: #5a5a5a; font-size: 0.85em; margin-left: 10px;">
({{ $file->formatted_size }})
</span>
</div>
<div style="color: #525252; font-size: 0.85em;">
<span>{{ $file->mime_type }}</span>
<span style="margin: 0 10px;">•</span>
<span>Uploaded {{ $file->created_at->diffForHumans() }}</span>
<span style="margin: 0 10px;">•</span>
<span>{{ $file->download_count }} downloads</span>
@if($file->expires_at)
<span style="margin: 0 10px;">•</span>
<span>Expires {{ $file->expires_at->diffForHumans() }}</span>
@endif
</div>
</li>
@empty
<li style="text-align: center; padding: 20px; color: #666;">
@if(request('search'))
No files found matching "{{ request('search') }}"
@else
No files uploaded yet
@endif
</li>
@endforelse
</ul>
<!-- Pagination -->
@if($files->hasPages())
<div style="margin-top: 20px; text-align: center;">
{{ $files->links() }}
</div>
@endif
</div>
</section>
<footer>
<p>Last updated December 28th, 2025</p>
</footer>
@endsection
|