@extends('layouts.app') @section('title', 'Dashboard de Ventas Interactivo') @section('content')

Dashboard de Ventas Interactivo

Análisis interactivo de ventas con tendencias, comparativas y proyecciones

Volver
Total Ventas
${{ number_format($data['sales']['total'] ?? 0, 2) }}
Facturas
{{ number_format($data['sales']['count'] ?? 0) }}
Promedio
${{ number_format($data['sales']['average'] ?? 0, 2) }}
Tasa Conversión
{{ number_format($data['conversion']['rate'] ?? 0, 2) }}%
Tendencias de Ventas
Comparativa
@if(isset($data['comparison']))
Período Actual

${{ number_format($data['comparison']['current'] ?? 0, 2) }}

Período Anterior

${{ number_format($data['comparison']['compare'] ?? 0, 2) }}

{{ ($data['comparison']['percentage'] ?? 0) >= 0 ? '+' : '' }}{{ number_format($data['comparison']['percentage'] ?? 0, 2) }}%
@else

No hay datos de comparación disponibles

@endif
Productos Estrella
@forelse($data['products'] ?? [] as $product) @empty @endforelse
Producto Cantidad Ingresos
{{ $product->name }} {{ number_format($product->total_quantity ?? 0) }} ${{ number_format($product->total_revenue ?? 0, 2) }}
No hay datos disponibles
Proyecciones
Ventas Actuales

${{ number_format($data['projections']['current'] ?? 0, 2) }}

Tasa de Crecimiento

{{ ($data['projections']['growth_rate'] ?? 0) >= 0 ? '+' : '' }}{{ number_format($data['projections']['growth_rate'] ?? 0, 2) }}%

Proyección Próximo Período

${{ number_format($data['projections']['projected'] ?? 0, 2) }}

Análisis de Conversión
Cotizaciones

{{ number_format($data['conversion']['quotations'] ?? 0) }}

Convertidas

{{ number_format($data['conversion']['converted'] ?? 0) }}

Tasa de Conversión

{{ number_format($data['conversion']['rate'] ?? 0, 2) }}%

{{ number_format($data['conversion']['rate'] ?? 0, 2) }}%
@push('scripts') @endpush @endsection