@extends('cr_blank') @section('content') @include('componentes.r_header') @if ($sucursal)
{{ $sucursal->nombre }}
@else @endif
Del {{ date('d/m/Y',strtotime($ini)) }} al {{ date('d/m/Y',strtotime($fin)) }}
@php $s_total = 0; $s_cuenta = 0; $s_saldo = 0; @endphp @foreach ($datos as $item) @if ($item->tipo_venta == 'SUCURSAL') @else @endif @php $s_total += $item->total; $s_cuenta += $item->a_cuenta; $s_saldo += $item->saldo; @endphp @endforeach
N. CODIGO FECHA TIPO PAGO VENDEDOR CLIENTE TOTAL (BS) A CUENTA (BS) SALDO (BS) MORA (NRO DIAS)
{{ ++$i }} {{ $item->txt_nro }} {{ date('d/m/Y',strtotime($item->fecha_registro)) }} {{ $item->tipopago->nombre }} {{ $item->usuario->nombre_completo }}{{ $item->clsucursal->nombre }}{{ $item->razon_social }}{{ number_format($item->total,2) }} {{ number_format($item->a_cuenta,2) }} {{ number_format($item->saldo,2) }} {{ $item->dias == 0 ? '-' : $item->dias }}
TOTALES {{ number_format($s_total,2) }} {{ number_format($s_cuenta,2) }} {{ number_format($s_saldo,2) }}
{{--
{{ $datos->total }}
--}} @endsection @section('scripts') @endsection