@extends('layouts.enterprise') @section('title', 'Importar ingresos') @section('content')

Importar ingresos

Carga de estado de cuenta CSV para registrar ingresos y egresos.

@if(session('ok'))
{{ session('ok') }}
@endif @if($errors->any())
@endif @php($stats = session('import_stats')) @if(is_array($stats))
{{ $stats['file'] ?? '-' }}
Insertados: {{ $stats['inserted'] ?? 0 }} Actualizados: {{ $stats['updated'] ?? 0 }} Omitidos: {{ $stats['skipped'] ?? 0 }} Ingresos: {{ $stats['income_count'] ?? 0 }} Egresos: {{ $stats['expense_count'] ?? 0 }}
@endif
Se toman estas columnas del CSV: INGRESOS = FECHA, CONCEPTO, DEPÓSITOS. EGRESOS = FECHA, CONCEPTO, RETIROS.
Reimportar el mismo archivo actualiza movimientos existentes por huella única.
@csrf
@endsection