@extends('cr_blank') @section('content') @include('componentes.r_header') @if(isset($sucursal) && $sucursal)
{{ $sucursal->nombre }}
@endif {{-- Mostrar fechas solamente si fueron enviadas --}} @if(!empty($ini) && !empty($fin))
Del {{ date('d/m/Y', strtotime($ini)) }} al {{ date('d/m/Y', strtotime($fin)) }}
@elseif(!empty($ini))
Desde {{ date('d/m/Y', strtotime($ini)) }}
@elseif(!empty($fin))
Hasta {{ date('d/m/Y', strtotime($fin)) }}
@endif
@forelse($datos as $venta) @foreach($venta->otrodetalle as $detalle) @endforeach @empty @endforelse
N. Código Fecha Cliente Sucursal Tipo pago Detalle Cantidad Precio Total
{{ ++$i }} {{ $venta->txt_nro }} @if(!empty($venta->fecha_registro)) {{ date('d/m/Y', strtotime($venta->fecha_registro)) }} @else - @endif {{ $venta->razon_social ?? 'S/C' }} {{ $venta->sucursal->nombre ?? '-' }} {{ $venta->tipopago->nombre ?? '-' }} {{ $detalle->descripcion ?? $detalle->detalle ?? $detalle->nombre ?? $detalle->concepto ?? '-' }} {{ $detalle->cantidad ?? '-' }} @if(isset($detalle->precio)) {{ number_format($detalle->precio, 2) }} @elseif(isset($detalle->precio_unitario)) {{ number_format($detalle->precio_unitario, 2) }} @else - @endif @if(isset($detalle->total)) {{ number_format($detalle->total, 2) }} @elseif(isset($detalle->subtotal)) {{ number_format($detalle->subtotal, 2) }} @elseif(isset($detalle->cantidad) && isset($detalle->precio)) {{ number_format($detalle->cantidad * $detalle->precio, 2) }} @else - @endif
No se encontraron registros.
@endsection @section('scripts') @endsection