@extends('layouts.app') @section('title', $material->title) @section('page-title', $material->title) @section('content')
{{ ucfirst($material->category_type) }} {{ ucfirst($material->type) }}
{{ $material->views_count }} views | {{ $material->downloads_count }} downloads
@if($material->description)
{{ $material->description }}
@endif @if($material->file_path)

{{ $material->file_name }}

Size: {{ number_format($material->file_size / 1024, 2) }} KB

Download File
@else
{!! nl2br(e($material->content)) !!}
@endif @if($material->activities->count() > 0)
Used in Tasks:
@endif
@endsection