Return a folder icon

parent cf0721d1
......@@ -48,6 +48,9 @@ class MediaController extends Controller
return Datatables::eloquent($files)
->addColumn('thumbnail', function ($file) {
if ($file->isFolder()) {
return '<i class="fa fa-folder" style="font-size: 20px;"></i>';
}
if ($file->isImage()) {
return '<img src="' . Imagy::getThumbnail($file->path, 'smallThumb') . '"/>';
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment