@extends('layouts.legacy') @section('content')

{{ $news->headline ?? 'News' }}


{{ $news->uname ?? 'Unknown' }} {{ date('j.F.y @ H:i:s', strtotime($news->create_date ?? now())) }}

{!! nl2br(e($news->headline ?? '')) !!}


{!! html_entity_decode(stripslashes($news->content ?? '')) !!}

User Comments:

@foreach($comments as $ar)
{{ $ar->uname ?? 'Unknown' }} {{ date('j.F.y @ H:i:s', strtotime($ar->posted ?? now())) }}
@if(!empty($ar->icon))
@endif
{!! nl2br(e($ar->message ?? '')) !!}
@if(!empty($ar->signature))
{!! nl2br(e($ar->signature)) !!}
@endif
@endforeach {{-- Comment form (legacy) --}} @php $status = $_SESSION['web_login']['status'] ?? false; $user_type = $_SESSION['web_login']['user_type'] ?? 0; @endphp @if(!$status && $user_type < 2)
You have to login to write comment
@else
Write comment
@csrf
@endif
@endsection