@extends("app.layout.base")
@section("content")
@foreach($news as $new)
@if($new->type_id == 1)
{{ $new->subname }}
@if($new->resource_id !== null)
resource_id)->first()->filename) }}');">
@endif
{!! $new->content !!}
@elseif($new->type_id == 2)
{{ $new->subname }}
@if($new->resource_id !== null)
resource_id)->first()->filename) }}');">
@endif
@if ($new->type_id == 1 || $new->type_id == 2) {{-- If it's a news or menu then display the whole message --}}
{!! $new->content !!}
@else {{-- If it's a menu, guide or event. Then display up to 300 characters of text --}}
{!! \App\Helpers::closetags(substr($new->content, 0, 300) ) !!}
@endif