@extends('layout.backend') @section('styles') @parent @endsection @section('scripts') @parent @vite(['resources/js/documents.js']) @endsection @section('content') @if(session()->has('alert-success'))
| Documento | Tipo | Ações |
|---|---|---|
|
{!! $document->name !!}
@if($document->shareable)
Compartilhável
@endif
{{ $document->slug }}
{{ $document->created_at ? $document->created_at->format('d/m/Y') : '' }}
|
@php $typeInfo = [ 'application/pdf' => ['label' => 'PDF', 'class' => 'btn-danger'], 'application/msword' => ['label' => 'Word', 'class' => 'btn-primary'], 'application/vnd.openxmlformats-officedocument.wordprocessingml.document' => ['label' => 'Word', 'class' => 'btn-primary'], 'application/vnd.ms-excel' => ['label' => 'Excel', 'class' => 'btn-success'], 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet' => ['label' => 'Excel', 'class' => 'btn-success'], 'text/plain' => ['label' => 'TXT', 'class' => 'btn-secondary'], ]; $info = $typeInfo[$document->type] ?? ['label' => 'Arquivo', 'class' => 'btn-secondary']; $iconMap = [ 'PDF' => 'fa-file-pdf', 'Word' => 'fa-file-word', 'Excel' => 'fa-file-excel', 'TXT' => 'fa-file-alt', ]; @endphp {{ $info['label'] }} |
Nenhum documento encontrado nesta pasta.