|
@php
$extensoesImagem = ['jpg', 'jpeg', 'png', 'gif'];
$extensao = pathinfo($repository->url, PATHINFO_EXTENSION);
@endphp
@if (in_array(strtolower($extensao), $extensoesImagem))
@include('components.tables._openPhoto', [
'asset' => $repository->url,
'index' => $index,
'alt' => $repository->title,
'title' => $repository->title,
'text' => __('Visualizar arquivo'),
'style' => 'width: 90px;'
])
@else
{{ __('Baixar arquivo') }}
@endif
|
{{ date("d/m/Y", strtotime($repository->created_at)) }}
|
{{ $repository->title }}
@if($canEdit)
@else
-
@endif
@if($canDelete)
@else
-
@endif
|
{{ $repository->summary ?? '-' }} |
@php
$fileUrl = asset($repository->url);
$urlDisplay = strlen($fileUrl) > 40 ? substr($fileUrl, 0, 40) . '...' : $fileUrl;
@endphp
|
@if($canEdit)
@else
{{ __($repository->status === 'ATIVADO' ? 'Ativado' : 'Desativado') }}
@endif
|
@php $index++; @endphp
@empty