@extends('layouts.app') @section('title', 'Plantillas de Reportes') @section('content')

Plantillas de Reportes

@forelse($templates as $template)
{{ ucfirst($template->type) }}
{{ $template->name }}

{{ Str::limit($template->description, 100) }}

{{ ucfirst($template->category) }} {{ $template->is_active ? 'Activo' : 'Inactivo' }}
@empty
No hay plantillas disponibles

Comience creando su primera plantilla de reporte

@endforelse
@if($templates->hasPages())
{{ $templates->links() }}
@endif
@endsection @push('scripts') @endpush @php function getTemplateIcon($type) { $icons = [ 'table' => 'fa-table', 'chart' => 'fa-chart-bar', 'dashboard' => 'fa-tachometer-alt', 'export' => 'fa-file-export', 'summary' => 'fa-list-alt' ]; return $icons[$type] ?? 'fa-file-alt'; } function getCategoryColor($category) { $colors = [ 'financial' => 'success', 'technical' => 'info', 'customer' => 'primary', 'inventory' => 'warning', 'system' => 'danger', 'custom' => 'secondary' ]; return $colors[$category] ?? 'dark'; } @endphp