@extends('layouts.app') @section('title', 'Reportes Programados') @section('content')
| Nombre | Tipo de Reporte | Formato | Frecuencia | Destinatarios | Última Ejecución | Próxima Ejecución | Estado | Acciones |
|---|---|---|---|---|---|---|---|---|
|
{{ $report->name }}
@if($report->description)
{{ Str::limit($report->description, 50) }} @endif |
{{ ucfirst(str_replace('-', ' ', $report->report_type)) }} | {{ strtoupper($report->format) }} |
{{ ucfirst($report->frequency) }}
@if($report->frequency === 'weekly' && $report->schedule_days)
Días: {{ implode(', ', array_map(function($day) { $days = ['Dom', 'Lun', 'Mar', 'Mié', 'Jue', 'Vie', 'Sáb']; return $days[$day] ?? $day; }, $report->schedule_days)) }} @endif @if($report->frequency === 'monthly' && $report->schedule_day_of_month) Día: {{ $report->schedule_day_of_month }} @endif Hora: {{ $report->schedule_time }} |
@if($report->recipients && count($report->recipients) > 0)
{{ count($report->recipients) }} destinatario(s)
{{ Str::limit(implode(', ', $report->recipients), 40) }} @else Sin destinatarios @endif |
@if($report->last_run_at) {{ $report->last_run_at->format('d/m/Y H:i') }} @else Nunca @endif |
@if($report->next_run_at)
{{ $report->next_run_at->format('d/m/Y H:i') }}
@if($report->next_run_at->isPast())
Atrasado @elseif($report->next_run_at->isToday()) Hoy @endif @else No programado @endif |
@if($report->is_active) Activo @else Inactivo @endif |