@extends('master') @section('title'){{ strip_tags($note->getOriginal('note')) }} « Notes « @stop @section('content') @include('templates.note', ['note' => $note]) @foreach($note->webmentions->filter(function ($webmention) { return ($webmention->type == 'in-reply-to'); }) as $reply)
@if ($reply['author']) @if (array_key_exists('photo', $reply['author']['properties'])) @endif {{ $reply['author']['properties']['name'][0] ?? $reply['author']['properties']['nickname'][0] ?? 'unknown' }} @else Unknown author @endif said at {{ $reply['published'] }}
{!! $reply['reply'] !!}
@endforeach @if($note->webmentions->filter(function ($webmention) { return ($webmention->type === 'like-of'); })->count() > 0)

Likes

@foreach($note->webmentions->filter(function ($webmention) { return ($webmention->type === 'like-of'); }) as $like) @endforeach
@endif @if($note->webmentions->filter(function ($webmention) { return ($webmention->type === 'repost-of'); })->count() > 0)

Reposts

@foreach($note->webmentions->filter(function ($webmention) { return ($webmention->type == 'repost-of'); }) as $repost) {{ $repost['author']['properties']['name'][0] ?? $repost['author']['properties']['nickname'][0] ?? 'unknown' }} reposted this at {{ $repost['published'] }} @endforeach
@endif @stop @section('scripts') @parent @stop