@php // Get project gallery and images from collection use Modules\Project\Entities\Project; $posts = App\Post::all(); @endphp @extends('front.layouts.front') @section('content')
@foreach($stripped_posts as $stripped_post) @php $article_categories = $stripped_post->post->taxonomies->where('hierarchical', 0)->map(function($item) { return ['slug' => $item->slug, 'title' => $item->title]; }); $categories_map = $article_categories->map(function($item) { return $item['title']; }); $project = $posts->where('slug', $stripped_post->external_link)->first() ?? null; if(isset($project)) { $location = Project::find($project->post_id)->location ?? null; } @endphp
{{ $stripped_post->post->title }}
{!! $stripped_post->post->description !!}
@if(isset($project->id)) @include('componentproject::layouts.modal') @endif
@endforeach
{{--
{!! str_replace('/?', '?', $posts->links()) !!}
--}}
{{-- Links --}}
{{-- End Links --}} {{-- Video --}}
{{-- End Video --}}
@endsection