@foreach ($updates as $response) @auth @php $checkUserSubscription = auth()->user()->checkSubscription($response->user()); $checkPayPerView = auth()->user()->payPerView()->where('updates_id', $response->id)->first(); @endphp @endauth
{{ trans('general.pinned_post') }}
{{$response->user()->hide_name == 'yes' ? $response->user()->username : $response->user()->name}}
{{$response->user()->hide_name == 'yes' ? $response->user()->username : $response->user()->name}} @if($response->user()->verified_id == 'yes') @endif {{'@'.$response->user()->username}} @if (auth()->check() && auth()->user()->id == $response->user()->id) @endif @if(auth()->check() && auth()->user()->id != $response->user()->id && $response->locked == 'yes' && $checkUserSubscription && $response->price == 0.00 || auth()->check() && auth()->user()->id != $response->user()->id && $response->locked == 'yes' && $checkUserSubscription && $checkUserSubscription->free == 'yes' && $response->price != 0.00 && $checkPayPerView || auth()->check() && auth()->user()->id != $response->user()->id && $response->price != 0.00 && $checkPayPerView || auth()->check() && auth()->user()->id != $response->user()->id && auth()->user()->role == 'admin' && auth()->user()->permission == 'all' || auth()->check() && auth()->user()->id != $response->user()->id && $response->locked == 'no' ) @endif
@if ($response->locked == 'yes') @if (auth()->check() && $response->price != 0.00) {{ Helper::amountFormatDecimal($response->price) }} @endif @endif
@if (auth()->check() && auth()->user()->id == $response->user()->id || $response->locked == 'yes' && $response->image != '' || $response->locked == 'yes' && $response->video != '' || $response->locked == 'yes' && $response->music != '' || $response->locked == 'yes' && $response->file != '' || $response->locked == 'yes' && $response->video_embed != '' || auth()->check() && $response->locked == 'yes' && $checkUserSubscription && $response->price == 0.00 || auth()->check() && $response->locked == 'yes' && $checkUserSubscription && $checkUserSubscription->free == 'yes' && $response->price != 0.00 && $checkPayPerView || auth()->check() && $response->locked == 'yes' && $response->price != 0.00 && $checkPayPerView || auth()->check() && auth()->user()->role == 'admin' && auth()->user()->permission == 'all' || $response->locked == 'no' )

{!! Helper::linkText(Helper::checkText($response->description, $response->video_embed)) !!}

@endif @if (auth()->check() && auth()->user()->id == $response->user()->id || auth()->check() && $response->locked == 'yes' && $checkUserSubscription && $response->price == 0.00 || auth()->check() && $response->locked == 'yes' && $checkUserSubscription && $checkUserSubscription->free == 'yes' && $response->price != 0.00 && $checkPayPerView || auth()->check() && $response->locked == 'yes' && $response->price != 0.00 && $checkPayPerView || auth()->check() && auth()->user()->role == 'admin' && auth()->user()->permission == 'all' || $response->locked == 'no' )
@if($response->image != '') @php if ($response->img_type == 'gif') { $urlImg = Helper::getFile(config('path.images').$response->image); } else { $urlImg = url("files/storage", $response->id).'/'.$response->image; } @endphp {{ e($response->description) }} @endif @if($response->video != '') @endif @if ($response->music != '')
@endif @if ($response->file != '')
{{ $response->file_name }}.zip

{{ $response->file_size }}

@endif @if ($response->video_embed != '' && in_array(Helper::videoUrl($response->video_embed), array('youtube.com','www.youtube.com','youtu.be','www.youtu.be')))
@endif @if ($response->video_embed != '' && in_array(Helper::videoUrl($response->video_embed), array('vimeo.com','player.vimeo.com')))
@endif
@else
@if ($response->user()->price != 0.00 && $response->price == 0.00 || $response->user()->free_subscription == 'yes' && $response->price == 0.00) user()->free_subscription == 'yes') data-toggle="modal" data-target="#subscriptionFreeForm" @else data-toggle="modal" data-target="#subscriptionForm" @endif @endguest class="btn btn-primary w-100"> {{ trans('general.content_locked_user_logged') }} @elseif ($response->user()->price != 0.00 && $response->price != 0.00 || $response->user()->free_subscription == 'yes' && $response->price != 0.00) @guest {{ trans('general.content_locked_user_logged') }} @else {{ trans('general.unlock_post_for') }} {{Helper::amountFormatDecimal($response->price)}} @endguest @else {{ trans('general.subscription_not_available') }} @endif @if ($response->image != '')
{{ __('general.photo') }}
@endif @if ($response->video != '' || $response->video_embed)
{{ __('general.video') }}
@endif @if ($response->music != '')
{{ __('general.audio') }}
@endif @if ($response->file != '')
{{ __('general.file') }} - {{ $response->file_size }}
@endif @if ($response->image == '' && $response->video == '' && ! $response->video_embed && $response->music == '' && $response->file == '' )
{{ __('admin.text') }}
@endif
@endif
@endforeach

@php if (isset($ajaxRequest)) { $totalPosts = $total; } else { $totalPosts = $updates->total(); } @endphp @if ($totalPosts > $settings->number_posts_show && $counterPosts >= 1) @endif