@php $useUnifiedSeo = true; $seo = \App\Support\Seo\SeoDataBuilder::fromArray( app(\App\Support\Seo\SeoFactory::class)->fromViewData(get_defined_vars()) ) ->og( type: 'article', title: $meta['title'] ?? ($card['title'] . ' - Nova Cards - Skinbase Nova'), description: $meta['description'] ?? $card['quote_text'], url: $meta['canonical'] ?? $card['public_url'], image: $card['og_preview_url'] ?? $card['preview_url'] ?? null, ) ->addJsonLd([ '@context' => 'https://schema.org', '@type' => 'CreativeWork', 'name' => $card['title'], 'headline' => $card['title'], 'description' => $meta['description'] ?? $card['quote_text'], 'url' => $meta['canonical'] ?? $card['public_url'], 'image' => array_values(array_filter([$card['og_preview_url'] ?? null, $card['preview_url'] ?? null])), 'genre' => $card['format'] ?? null, 'keywords' => collect($card['tags'] ?? [])->pluck('name')->values()->all(), 'datePublished' => $card['published_at'] ?? null, 'dateModified' => $card['updated_at'] ?? null, 'creator' => [ '@type' => 'Person', 'name' => data_get($card, 'creator.username'), 'url' => !empty(data_get($card, 'creator.username')) ? route('cards.creator', ['username' => strtolower(data_get($card, 'creator.username'))]) : null, ], 'publisher' => [ '@type' => 'Organization', 'name' => config('app.name'), 'url' => url('/'), ], ]) ->build(); @endphp @extends('layouts.nova') @section('meta-description', $meta['description'] ?? '') @section('content')
@if(!empty($card['preview_url'])) {{ $card['title'] }} @endif
@if(!empty($card['featured'])) Featured @endif {{ $card['format'] }} @if(!empty($card['category'])) {{ $card['category']['name'] }} @endif

{{ $card['title'] }}

{{ $card['quote_text'] }}
@if(!empty($card['quote_author']))

— {{ $card['quote_author'] }}

@endif @if(!empty($card['quote_source']))

Source: {{ $card['quote_source'] }}

@endif @if(!empty($card['description']))

{{ $card['description'] }}

@endif @if(!empty($card['lineage']['original_card'])) @endif @if(!empty($card['lineage']['original_card']) || (int) ($card['remixes_count'] ?? 0) > 0) @endif

Creator

{{ $card['creator']['name'] ?: ('@' . $card['creator']['username']) }}
@{{ $card['creator']['username'] }}
{{ number_format($card['views_count']) }} views
{{ number_format($card['shares_count']) }} shares
{{ number_format($card['likes_count']) }} likes
Likes
{{ number_format($card['likes_count']) }}
Saved
{{ number_format($card['saves_count']) }}
Remixes
{{ number_format($card['remixes_count']) }}
@if(!empty($card['tags']))
@foreach($card['tags'] as $tag) #{{ $tag['name'] }} @endforeach
@endif
@auth @if(!empty($card['allow_remix'])) @endif @endauth @if(!empty($card['allow_download']) && !empty($card['preview_url'])) Download preview @endif

Discussion

Comments

{{ count($comments ?? []) }}
@if(session('status'))
{{ session('status') }}
@endif @auth
@csrf
@else
Sign in to comment on this Nova Card.
@endauth
@forelse($comments as $comment)
{{ $comment['user']['display'] }}
{{ $comment['user']['display'] }}
{{ $comment['time_ago'] }}
@if($comment['can_report']) @endif @if($comment['can_delete'])
@csrf @method('DELETE')
@endif
{!! $comment['rendered_content'] !!}
@empty
No comments yet.
@endforelse
@foreach([ 'Related in category' => $relatedByCategory, 'Related by tags' => $relatedByTags, 'More from creator' => $moreFromCreator, ] as $sectionTitle => $items) @if(!empty($items))

{{ $sectionTitle }}

@foreach($items as $item) @include('cards.partials.tile', ['card' => $item]) @endforeach
@endif @endforeach @endsection @push('scripts') @endpush