@extends('layouts.app') @section('title', 'Reporte de Movimientos de Inventario') @section('content')

Reporte de Movimientos de Inventario

Movimientos registrados en el sistema

Volver
@if($printData['company_info'])

{{ $printData['company_info']['name'] ?? 'Mi Empresa' }}

{{ $printData['company_info']['address'] ?? 'Dirección de la empresa' }}

Tel: {{ $printData['company_info']['phone'] ?? 'Teléfono' }} | Email: {{ $printData['company_info']['email'] ?? 'email@empresa.com' }}


@endif
Información del Reporte

Fecha de Generación: {{ now()->format('d/m/Y H:i:s') }}

Generado por: {{ Auth::user()->name }}

Total de Registros: {{ $data->count() }}

Configuración de Impresión

Papel: {{ $printConfig->paper_size_formatted }}

Orientación: {{ $printConfig->orientation_formatted }}

Fuente: {{ $printConfig->font_config['family'] ?? 'Arial' }} {{ $printConfig->font_config['size'] ?? 12 }}pt

Lista de Movimientos
@forelse($data as $movement) @empty @endforelse
ID Fecha Producto Tipo Desde Hacia Cantidad Estado Usuario
{{ $movement->id }} {{ $movement->created_at->format('d/m/Y H:i') }} {{ $movement->product->name ?? 'N/A' }}
{{ $movement->product->code ?? 'Sin código' }}
{{ $movement->movement_type_formatted }} @if($movement->fromWarehouse) {{ $movement->fromWarehouse->name }} @if($movement->fromLocation)
{{ $movement->fromLocation->name }} @endif @else N/A @endif
@if($movement->toWarehouse) {{ $movement->toWarehouse->name }} @if($movement->toLocation)
{{ $movement->toLocation->name }} @endif @else N/A @endif
{{ number_format($movement->quantity, 2) }}
{{ $movement->product->unit ?? 'unidad' }}
{!! $movement->status_badge !!} {{ $movement->createdBy->name ?? 'N/A' }}

No hay movimientos registrados

@if($data->count() > 0)
Total Movimientos
{{ $data->count() }}
Completados
{{ $data->where('status', 'completado')->count() }}
Pendientes
{{ $data->where('status', 'pendiente')->count() }}
En Progreso
{{ $data->where('status', 'en_progreso')->count() }}
@endif

Reporte generado el {{ now()->format('d/m/Y H:i:s') }} por {{ Auth::user()->name }} | Página 1 de 1
@endsection @push('styles') @endpush