@foreach ($postlist as $key => $post)
@if($post->type=="Wishlist") @elseif($post->post_type == "Data") @elseif($post->post_type == "Sample") @elseif($post->post_type == "Skills") @endif
{{\Carbon\Carbon::parse($post->approved_time)->format('F j, Y g:i A')}}

Offering: {{($post->post_type == 'Sample') ? 'Samples' : $post->post_type}}

Origin: {{config("const.post_type.".$post->post_origin)}}

Species: @if($mainPostSpecies!="") {{$mainPostSpecies}} @endif

Keywords: @foreach($post->PostKeywords as $key => $keyword){{$keyword->keyword}}@isset($post->PostKeywords[$key + 1]), @endisset @endforeach

@php $stringLength = strlen($post->description); @endphp

{!!nl2br(substr($post->description, 0, $textLength))!!}@if($stringLength >= $textLength) See More{!!nl2br(substr($post->description, $textLength))!!} See Less@endif

@foreach($post->message as $key => $message)

{{$message->message}}

@foreach($message->reply as $reply)

{{$reply->message}}

@endforeach
@endforeach
@endforeach
@push('footerscript') @endpush