@extends('layout.main') @section('content') @if ($data)

DETALLES DE VENTA

Personal que registró la venta :
{{ ucwords(mb_strtolower($data->usuario->nombres)) }} {{ ucwords(mb_strtolower($data->usuario->apellidos)) }} ({{ $data->usuario->username }})
Fecha que se registró la venta :
{{ ucwords(mb_strtolower($data->created_at)) }}
Tienda donde se realizó la venta:
{{ ucwords(mb_strtolower($data->local->nombre)) }} ({{ ucwords(mb_strtolower($data->local->direccion)) }})
Nombre de Cliente :
{{ $data->cliente->tipo_documento->nombre }} :
{{ $data->cliente->numero_documento }}
Direccion de Cliente:
{{ ucwords(mb_strtolower($data->cliente->direccion)) }}
Tipo de Comprobante :
{{ $data->tipo_comprobante->nombre }}
N° Comprobante :
{{ $data->nombre_comprobante }}
@foreach ($detalle_venta as $row1) @endforeach
Fecha de Venta :
{{ $data->fecha_venta }}
TOTAL DE LA VENTA :
S/ {{ $data->total_venta }}
Importe Neto :
S/ {{ number_format($subtotal,2) }}
IGV :
S/ {{ number_format($igv,2) }}
ICBPER :
S/ {{ number_format($icbper,2) }}
Total Descuentos :
S/ {{ number_format($desc,2) }}
@if ($data->id_nota != null)
Estado de comprobante:
El comprobante fue ANULADO (ver detalles)
@endif
@if($data->tipo_pago == 'CREDITO')
Tipo de Venta :
AL {{ $data->tipo_pago }}
Detalle de pagos:
@endif @foreach ($detalle_venta as $venta) @endforeach
Producto U. Med. Cant. Precio S/ Dscto S/ Subtotal
{{ ucwords(mb_strtolower($venta->producto->nombre)) }} {{ $venta->producto->descripcion }} {{ $venta->producto->unidad_medida->nombre }} {{ $venta->cantidad }} {{ $venta->precio_venta }} {{ $venta->descuento==0 ? $venta->descuento : '-'.$venta->descuento }} {{ $venta->precio_venta_total }}
@else

No se puede realizar esta accion

@endif @stop @section('scripts') @stop