@extends('layout.default') @section('title',isset($claim)?'Claim • ' . $claim->name:'Claims Explorer') @section('script') @endsection @section('content') @include('element.header') @if(isset($claim)) @php $a = ['purple', 'orange', 'blue', 'teal', 'green', 'yellow']; $autoThumbText = $claim->getAutoThumbText(); $cost = 'Free'; if (isset($claim->price) && $claim->price > 0) { $cost = \App\Helpers\AmountHelper::formatCurrency($claim->price) . ' LBC'; } else if (isset($claim->fee) && strtolower($claim->fee_currency) === 'lbc') { $cost = \App\Helpers\AmountHelper::formatCurrency($claim->fee) . ' LBC'; } $desc = $claim->description; if (strlen(trim($desc)) == 0) { $desc = null; } else { $desc = preg_replace('#((https?|ftp|lbry)://([A-Za-z0-9\-\/]+|\S*?\.\S*?))([\s)\[\]{},;"\':<]|\.\s|$)#i','$1$4', $desc); $desc = preg_replace('/(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/is', '$0', $desc); } @endphp

LBRY Claims • {{ $claim->name }}

{{ $claim->claim_id }}

@if($claimIsBlocked)
In response to a complaint we received under the US Digital Millennium Copyright Act, we have blocked access to this content from our applications. For more information, please refer to DMCA takedown requests.
@else
@if(!$claim->is_nsfw && strlen(trim($claim->thumbnail_url)) > 0) @else
{{ $autoThumbText }}
@endif
@if($claim->claim_type == 1)
Published By
@if(isset($claim->publisher)) {{ $claim->publisher }} @else Anonymous @endif
@endif
Created On
{{ \DateTime::createFromFormat('U', $claim->transaction_time > 0 ? $claim->transaction_time : $claim->created_at->format('U'))->format('j M Y H:i:s') }} UTC
Transaction ID
@if($claim->claim_type == 1)
Cost
Safe for Work
{{ $cost }}
{{ $claim->is_nsfw ? 'No' : 'Yes' }}
@endif
@if($claim->claim_type == 2)
Identity Claim
This is an identity claim.
@else
{{ $claim->title }}
@if($desc===null)No description available.@else{{ str_replace("\n", '
', $desc) }}@endif
Author
Content Type
@if(strlen(trim($claim->author)) > 0){{ $claim->author }}@elseUnspecified@endif
@if(strlen(trim($claim->content_type)) > 0){{ $claim->content_type }}@elseUnspecified@endif
{{--
License
--}}
Language
{{--
--}} {{-- @if(strlen(trim($claim->License)) > 0)--}} {{-- {{ $claim->License }}--}} {{-- @else--}} {{-- Unspecified--}} {{-- @endif--}} {{--
--}}
@if(strlen(trim($claim->language)) > 0) {{ $claim->language == 'en' ? 'English' : '' }} @else Unspecified @endif
@endif Open in LBRY
@endif @if(count($moreClaims) > 0)

{{ isset($claim->publisher) ? 'More from the publisher' : 'Published by this identity' }}

@php $idx = 1; $row = 1; $rowCount = ceil(count($moreClaims) / 3); @endphp @foreach($moreClaims AS $claim) @php $last_row = ($row == $rowCount); if ($idx % 3 == 0) { $row++; } @endphp @include('element.claimbox',['claim'=>$claim,'idx'=>$idx,'last_row'=>$last_row]) @php $idx++ @endphp @endforeach
@endif
@else

Claims Explorer

@php $idx = 1; $row = 1; $rowCount = ceil(count($claims) / 3); $a = ['purple', 'orange', 'blue', 'teal', 'green', 'yellow']; @endphp @foreach($claims AS $claim) @php $last_row = ($row == $rowCount); if ($idx % 3 == 0) { $row++; } @endphp @include('element.claimbox',['claim'=>$claim,'idx'=>$idx,'last_row'=>$last_row]) @php $idx++ @endphp @endforeach
@include('element.pagination') @endif @endsection