Skip to content

Commit

Permalink
Dev
Browse files Browse the repository at this point in the history
  • Loading branch information
wdda committed Feb 2, 2023
1 parent d897cef commit b14e13c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 4 additions & 2 deletions app/Models/Resources/Files.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,13 @@ public static function getList(): array

foreach ($files as $file) {
if ($file != '.' && $file != '..') {
if (file_exists($pathDir . '/' . $file)) {
$pathFile = $pathDir . '/' . $file;
if (file_exists($pathFile)) {
$result[] = [
'name' => $file,
'path' => $pathDir,
'folder' => $dir
'folder' => $dir,
'date_time' => date ("d.m.Y H:i:s", filemtime($pathFile))
];
}
}
Expand Down
6 changes: 2 additions & 4 deletions resources/views/resources/files/index.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
<tr>
<th>name</th>
<th>folder</th>
<th>date</th>
<th>action</th>
</tr>
</thead>
Expand All @@ -22,6 +23,7 @@
<tr>
<td>{{ $file['name'] }}</td>
<td>{{ $file['folder'] }}</td>
<td>{{ $file['date_time'] }}</td>
<td>
<div class="uk-grid uk-grid-small">
<div>
Expand All @@ -42,10 +44,6 @@
</a>
</div>
</div>




</td>
</tr>
@endforeach
Expand Down

0 comments on commit b14e13c

Please sign in to comment.