@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