@extends('layouts.app') @section('content') @php $header = $dashboard['header'] ?? []; $kpis = $dashboard['kpis'] ?? []; $monthly = $dashboard['monthly_attendance'] ?? ['labels' => [], 'values' => [], 'insight' => '']; $invoices = $dashboard['snack_invoices'] ?? ['rows' => [], 'last_30_days_total' => 0]; $attendanceTimeline = $dashboard['attendance_timeline'] ?? ['rows' => [], 'week_status' => '']; $weeklyCompliance = $dashboard['weekly_compliance'] ?? ['labels' => [], 'values' => [], 'average' => 0, 'insight' => '']; $avatar = !empty($header['avatar']) ? route('user_fit.users.image', ['filename' => $header['avatar']]) : asset('images/no-user-imagen.jpg'); $hasMonthlyAttendanceData = collect($monthly['values'] ?? [])->sum() > 0; @endphp
| Fecha | Producto | Cantidad | Subtotal | Total | Deuda |
|---|---|---|---|---|---|
| {{ $row['date'] }} | {{ $row['product_name'] }} | {{ $row['quantity'] }} | Bs. {{ number_format((float) $row['total'], 2, ',', '.') }} | Bs. {{ number_format((float) ($row['sale_total'] ?? 0), 2, ',', '.') }} | Bs. {{ number_format((float) ($row['sale_debt'] ?? 0), 2, ',', '.') }} |
| Fecha | Dia planificado | Asistio | Nota |
|---|---|---|---|
| {{ $row['date'] }} | {{ $row['planned'] ? 'Si' : 'No' }} | {!! $row['attended'] ? 'Si' : 'No' !!} | {{ $row['note'] }} |
| Sin asistencias registradas. | |||
{{ $weeklyCompliance['insight'] ?? '' }}
{{ $monthly['insight'] ?? '' }}