wip content index

This commit is contained in:
2024-10-01 22:31:07 +03:00
parent 39e7a3aed4
commit fa388ea302
21 changed files with 356 additions and 22 deletions
+19
View File
@@ -0,0 +1,19 @@
<?php
namespace Lucent\Schema\Renderer\Row;
use Lucent\Record\QueryRecord;
use Lucent\Schema\FieldInterface;
class File implements IRowRenderer
{
public function __invoke(QueryRecord $record, FieldInterface $field): string
{
$reference = data_get($record,"_children.".$field->name);
if(!isset($reference[0])){
return "";
}
return view("lucent::records-editor.fields.file.thumb",["size" => "tiny", "record" => $reference[0]])->render();
}
}