@extends('layouts.app') @section('content')
| Nombre | Canal | Plantilla | Programada para | Tags | Estado | Acciones |
|---|---|---|---|---|---|---|
|
{{ $c->nombre }}
{{-- Meta en móvil --}}
{{ $c->programada_para ? $c->programada_para->format('d-m-Y H:i') : '—' }}
• {{ $c->plantilla?->nombre ?? '—' }}
|
{{ $c->canal }} | {{ $c->plantilla?->nombre ?? '—' }} | {{ $c->programada_para ? $c->programada_para->format('d-m-Y H:i') : '—' }} |
@php
$tags = $c->tags ?? collect();
$max = 3;
@endphp
@if($tags->count())
@foreach($tags->take($max) as $t)
{{ $t->nombre }}
@endforeach
@if($tags->count() > $max)
+{{ $tags->count() - $max }}
@endif
@else
—
@endif
|
@php
$map = [
'borrador' => 'secondary',
'programada' => 'primary',
'enviando' => 'info',
'finalizada' => 'success',
'cancelada' => 'danger',
];
$color = $map[$c->estado] ?? 'secondary';
@endphp
{{ ucfirst($c->estado) }}
{{-- Tags en móvil --}}
@php
$tagsMobile = ($c->tags ?? collect());
@endphp
@if($tagsMobile->count())
@foreach($tagsMobile->take(2) as $t)
{{ $t->nombre }}
@endforeach
@if($tagsMobile->count() > 2)
+{{ $tagsMobile->count() - 2 }}
@endif
@endif
|
{{-- Desktop --}}
{{-- Mobile --}}
|
| No hay campañas. | ||||||