@extends('layouts.partner') @section('title', 'Novidades') @section('content')

Novidades

@php $typeLabels = ['material' => 'Novo material', 'campaign' => 'Nova campanha', 'experience' => 'Nova experiência']; $typeIcons = ['material' => 'layers', 'campaign' => 'mail', 'experience' => 'heart']; @endphp
@forelse ($novelties as $n) @empty @endforelse
{{ $typeLabels[$n->type] ?? $n->type }} @if($n->url){{ $n->title }}@else{{ $n->title }}@endif {{ $n->subtitle }} {{ $n->created_at->diffForHumans() }}
Sem novidades recentes.
@if ($campaigns->isNotEmpty())

Campanhas ativas

@foreach ($campaigns as $c) Campanha {{ $c->name }} {{ optional($c->start_date)->format('d/m/Y') }} → {{ optional($c->end_date)->format('d/m/Y') }} @endforeach
@endif

Materiais recentes

@forelse ($materials as $m) @include('partner._material_card') @empty

Sem novidades.

@endforelse
@endsection