@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/ {{ $data->gravado_total }}
IGV :
S/ {{ $data->igv_total }}
ICBPER :
S/ {{ $data->icbper_total }}
Total Descuentos :
S/ {{ number_format($desc,2) }}
Subtotal Exonerado :
S/ {{ $data->exonerado_total }}
Subtotal Inafecto :
S/ {{ $data->inafecto_total }}
Tipo de Pago :
{{ $data->tipo_pago == "CREDITO" ? $data->tipo_pago." | Vencimiento: ".$data->fecha_pago : "CONTADO" }}
@if($data->tipo_venta != "NORMAL" )
Monto de {{$data->tipo_venta}}:
S/ {{ $data->tipo_venta == "DETRACCION" ? $data->detraccion_total : $data->retencion_total }}
@endif
@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