@extends('layouts.app') @push('meta') {{env('APP_NAME')}} : {{$story->title}} @if ($story->translations->where('is_active',1)->where('locale',$locale)->count()>0) {!! \App\Helper::seoJsonLd($translation->language->name) !!} @endif @if ($video) @endif @endpush @section('content')
@include('layouts.partials.media')

@foreach ($story->categories as $category) {{$category->category->name}} @if (!$loop->last) , @endif @endforeach @if ($story->tags->count()>0) | @foreach ($story->tags as $tag) {{$tag->tag->name}} @if (!$loop->last) , @endif @endforeach @endif

@if ($story->translations->where('is_active',1)->where('locale',$locale)->count()>0)

{{$translation->title}}

@foreach ($story->translations->where('is_active',1) as $language) {{$language->language->shortname}} @endforeach
@else

{{$story->title}}

@endif
@if ($story->translations->where('is_active',1)->where('locale',$locale)->count()>0)
@if (!$translation->content && ( $translation->shotlist || $translation->more_info)) @if ($translation->shotlist && !$translation->more_info)
@if ($translation->is_ai_generated) ({{\App\Helper::getSetting("AI Generated Notice - ".$locale)}} ) @endif {!! \App\Helper::resetStyle($translation->shotlist)!!}
@endif @if ($translation->more_info && !$translation->shotlist)
@if ($translation->is_ai_generated) ({{\App\Helper::getSetting("AI Generated Notice - ".$locale)}} ) @endif {!! \App\Helper::resetStyle($translation->more_info)!!}
@endif @endif @if (($translation->shotlist && $translation->content) || ($translation->content && $translation->more_info)) @endif @if (($translation->shotlist && $translation->content) || ($translation->content && $translation->more_info))
@if ($translation->is_ai_generated)
{!! \App\Helper::getTranslationNotice($locale) !!} @endif {!! \App\Helper::resetStyle($translation->content)!!}
@if ($translation->shotlist)
@if ($translation->is_ai_generated)
{!! \App\Helper::getTranslationNotice($locale) !!} @endif {!! \App\Helper::resetStyle($translation->shotlist)!!}
@endif @if ($translation->more_info)
@if ($translation->is_ai_generated)
{!! \App\Helper::getTranslationNotice($locale) !!} @endif {!! \App\Helper::resetStyle($translation->more_info)!!}
@endif @else @if ($translation->content )
@if ($translation->is_ai_generated)
{!! \App\Helper::getTranslationNotice($locale) !!} @endif {!! \App\Helper::resetStyle($translation->content)!!}
@endif @if ($translation->shotlist && !$displayed_shotlist)
@if ($translation->is_ai_generated)
{!! \App\Helper::getTranslationNotice($locale) !!} @endif {!! \App\Helper::resetStyle($translation->shotlist)!!}
@endif @endif
@endif
@include('layouts.partials.assets')

{{ __('Similar Stories') }}

@foreach ($similar_stories as $story)
@if ($story->thumbnail) {{$story->title}} @else {{$story->title}} @endif
@foreach ($story->categoriesOrder as $category) @if ($category->category->name=="video" && $story->assets->where('category_id',1)->where('is_active',1)->count()>0)

{{$story->assets->where('category_id',1)->where('is_active',1)->count()}}

@endif @if ($category->category->name=="image" && $story->assets->where('category_id',2)->where('is_active',1)->count()>0)

{{$story->assets->where('category_id',2)->where('is_active',1)->count()}}

@endif @if ($category->category->name=="document" && $story->assets->where('category_id',3)->count()+1>0)

{{$story->assets->where('category_id',3)->count()+1}}

@endif @if ($category->category->name=="audio" && $story->assets->where('category_id',4)->where('is_active',1)->count()>0)

{{$story->assets->where('category_id',4)->where('is_active',1)->count()}}

@endif @if ($category->category->name=="map" && $story->assets->where('category_id',5)->where('is_active',1)->count()>0) )

{{$story->assets->where('category_id',5)->where('is_active',1)->count()}}

@endif @endforeach

@foreach ($story->categories as $category) {{$category->category->name}} @if (!$loop->last) , @endif @endforeach @if ($story->tags->count()>0) | @foreach ($story->tags as $tag) {{$tag->tag->name}} @if (!$loop->last) , @endif @endforeach @endif

{{$story->title}} @foreach ($story->translations->where('is_active',1) as $translation) {{$translation->language->shortname}} @endforeach

@if ($story->translations->where('locale', 'en')->first()) {!! $story->translations->where('locale', 'en')->first()->intro!!} @endif

@endforeach
@stop @push('modals') @endpush @push('scripts') @if ($video) @endif @endpush