@extends('layouts.public') @section('title', 'Material partilhado') @section('content')
{{ strtoupper($link->material?->file_type ?: 'file') }}

{{ $link->material?->title ?? 'Material' }}

{{ $link->material?->category?->name }}

@if ($link->material?->description)

{{ $link->material->description }}

@endif @if (! $unlocked)

Este material está protegido por palavra-passe.

@csrf
@if ($errors->any())

{{ $errors->first() }}

@endif @else Descarregar ficheiro @if ($link->max_downloads)

{{ $link->download_count }}/{{ $link->max_downloads }} downloads usados.

@endif @if ($link->expires_at)

Disponível até {{ $link->expires_at->format('d/m/Y H:i') }}.

@endif @endif
@endsection