@extends('facelift2.master') @section('content') {{--
--}}
@if(isset($colecoes[0]->collections->magazines)) @php $magazines = collect($colecoes[0]->collections->magazines)->sortBy(function ($revista) { return in_array($revista->id, [79, 80]) ? 1 : 0; }); @endphp
@foreach ($magazines as $revista) @if($revista->id == '79' || $revista->id == '80' || $revista->id == '50' || $revista->id == '67') @continue @endif @endforeach
@foreach ($magazines as $revista) @if($revista->id == '1' || $revista->id == '2' || $revista->id == '4' || $revista->id == '5' || $revista->id == '6') @continue @endif @endforeach
@endif

Novos Artigos

@foreach($articlesToShow as $artigo) @php // Skip if it is 'editorial' (mimicking old logic) if (isset($artigo->data->corpo) && $artigo->data->corpo === 'editorial') continue; // Build Link $link = route('facerevista') . '/' . ($ultimaRevista[1]->id) . '/' . str_replace('/', '-', str_replace(' ', '-', $ultimaRevista[1]->title ?? 'Revista')) . '/' . ($artigo->id) . '/' . str_replace('/', '-', str_replace(' ', '-', $artigo->title)); @endphp
{{ $artigo->title }}
{{ $ultimaRevista[1]->title ?? 'Revista Científica' }}

{{ $artigo->title }}

{{ limita_caracteres(strip_tags($artigo->brief), 220, false) }}

{{__("messages.ColecoesLeia")}}
@endforeach
@endsection