@extends('cr_blank') @section('content') @include('componentes.r_header') @if ($sucursal)
{{ $sucursal->nombre }}
@else @endif @if ($ini && $fin)
Del {{ date('d-m-Y',strtotime($ini)) }} al {{ date('d-m-Y',strtotime($fin)) }}
@endif @php $s_contado = 0; $s_credito = 0; $s_cuenta = 0; $s_saldo = 0; @endphp @foreach ($datos as $item) @php $s_contado += $item->t_contado; $s_credito += $item->t_credito; $s_cuenta += $item->a_cuenta; $s_saldo += $item->saldo; @endphp @endforeach
N. Vendedor Total Venta (Bs) Venta Credito (Bs) Venta Efectivo (Bs) A Cuenta (Bs) Saldo (Bs)
{{ ++$i }} {{ $item->nombre_completo }} {{ number_format($item->t_credito + $item->t_contado,2) }} {{ number_format($item->t_credito,2) }} {{ number_format($item->t_contado,2) }} {{ number_format($item->a_cuenta,2) }} {{ number_format($item->saldo,2) }}
TOTALES {{ number_format($s_credito + $s_contado,2) }} {{ number_format($s_credito,2) }} {{ number_format($s_contado,2) }} {{ number_format($s_cuenta,2) }} {{ number_format($s_saldo,2) }}
{{--
{{ $datos->total }}
--}} @endsection @section('scripts') @endsection