@extends('cr_blank') @section('content') @include('componentes.r_header') @if ($cliente)
Cliente: {{ $cliente->razon_social }}
@endif @if ($user)
Vendedor: {{ $user->nombre_completo }}
@endif @if ($ini && $fin)
Del {{ date('d-m-Y',strtotime($ini)) }} al {{ date('d-m-Y',strtotime($fin)) }}
@endif @php $s_efectivo = 0; $s_otro = 0; @endphp @foreach ($datos as $item) {{-- --}} @if ($item->venta->tipo_venta == 'SUCURSAL') @else @endif @if ($item->metodo_pago == 'EFECTIVO') @else @endif @php if ($item->metodo_pago == 'EFECTIVO') { $s_efectivo += $item->monto; } else { $s_otro += $item->monto; } @endphp @endforeach {{-- --}}
N. N° RECIBO CODIGO FECHA VENDEDOR USUARIO CLIENTE EFECTIVO BANCO ORIGEN BANCO DESTINO NRO. TRANSFERENCIA MONTO (Bs) CANCELADO A:
{{ ++$i }} {{ $item->nro_recibo }} {{ $item->venta->txt_nro }} {{ date('d/m/Y H:i',strtotime($item->fecha)) }} {{ $item->venta->usuario->nombres }} {{ $item->usuario->nombres }}{{ $item->venta->razon_social }}{{ $item->venta->clsucursal->nombre }}{{ $item->venta->razon_social }}{{ number_format($item->monto,2) }} {{ number_format(0,2) }}{{ number_format(0,2) }} {{ $item->origen }} {{ $item->destino }} {{ $item->nro_transferencia }} {{ number_format($item->monto,2) }}{{ $item->cancelado_a }}
TOTALES {{ number_format($s_efectivo,2) }} {{ number_format($s_otro,2) }}
TOTAL {{ number_format($s_efectivo + $s_otro,2) }}
{{--
{{ $datos->total }}
--}}
Total efectivo {{ number_format($s_efectivo,2) }}
Total transferencia bancaria {{ number_format($s_otro,2) }}
Total cobrado {{ number_format($s_efectivo + $s_otro,2) }}
@endsection @section('scripts') @endsection