@extends('adminlte::page') @section('title', 'Compras') @section('plugins.Datatables', true) @section('plugins.Sweetalert2', true) @section('content_header')
| ID | Fecha | Proveedor | Nº Factura | Tipo | Subtotal | IGV | Total | Pagado | Pendiente | Estado | Acciones |
|---|---|---|---|---|---|---|---|---|---|---|---|
| #{{ $compra->id }} | {{ $compra->fecha_compra->format('d/m/Y') }} |
{{ $compra->proveedor->razon_social }}
RUC: {{ $compra->proveedor->ruc ?? 'N/A' }} |
{{ $compra->numero_factura }} | @php $badges = [ 'factura' => 'badge-primary', 'boleta' => 'badge-info', 'nota_credito' => 'badge-success', 'nota_debito' => 'badge-warning' ]; @endphp {{ strtoupper(str_replace('_', ' ', $compra->tipo_documento)) }} | S/ {{ number_format($compra->subtotal, 2) }} | S/ {{ number_format($compra->igv, 2) }} | S/ {{ number_format($compra->total, 2) }} | S/ {{ number_format($compra->total_pagado, 2) }} | @if($compra->saldo_pendiente > 0) S/ {{ number_format($compra->saldo_pendiente, 2) }} @else Cancelado @endif | @if($compra->estado) Activo @else Anulado @endif |
|