Files

34 lines
839 B
PHP
Raw Permalink Normal View History

2024-08-14 22:04:34 +03:00
@php
$schema = $schemas->where("name",$record->schema)->first();
@endphp
<td>
2024-08-15 14:44:53 +03:00
@if($schema->type === "files")
<Preview {record} size="tiny"/>
@else
2024-08-14 22:04:34 +03:00
<a
href="/lucent/records/{{$record->id}}"
class="text-decoration-none text-dark d-block"
>
{{$viewModel->getRecordName($record, $schemas)}}
</a>
{{$record->status->value === "draft" ? "Draft" : ""}}
2024-08-15 14:44:53 +03:00
@endif
2024-08-14 22:04:34 +03:00
</td>
<td><a
class="text-decoration-none lx-small-text"
href="/lucent/content/{{$schema->name}}">{{$schema->label}}</a
>
</td>
<td>
{{-- <div class="d-flex">--}}
{{-- <Avatar name={usernameById(users, record._sys.updatedBy)} side={24}/>--}}
{{-- <div class="ms-2">--}}
{{-- {frieldlyUpdatedAt}--}}
{{-- </div>--}}
{{-- </div>--}}
</td>