@extends('blank') @section('content') @include('componentes.r_header')
Cliente:
{{ $datos->nombre_completo }}
Celular:
{{ $datos->celular }}
@php $lon = 0; $total = 0; $total_deuda = 0; @endphp
@foreach ($datos->rpventas as $venta) {{-- --}} @php if ($venta->estado != 'ANULADO') { $total += $venta->total; $total_deuda += $venta->deuda; } @endphp @endforeach
N. ESTADO CÓDIGO VENDEDOR FECHA REGISTRO FECHA ENTREGA TIPO DE PAGO MONTO TOTAL TOTAL A PAGAR
{{ ++$i }} {{ $venta->estado }} {{ $venta->txt_nro }}{{ $venta->razon_social }}{{ $venta->usuario->nombre_completo }} {{ date('d/m/Y',strtotime($venta->fecha_registro)) }} {{ $venta->fecha_entrega?date('d/m/Y',strtotime($venta->fecha_entrega)):'' }} {{ $venta->tipopago->nombre }} {{ number_format($venta->total,2) }} {{ number_format($venta->deuda,2) }}
{{--
--}} {{-- --}}
TOTAL (Bs):
{{ number_format($total,2) }}
{{ number_format($total_deuda,2) }}
TOTAL (ML):
{{ $lon }}
@endsection @section('scripts') @endsection