@extends('pdf.layout') @section('content')
| Factura | Cliente | Fecha | Estado | Total ($) | Cobrado ($) |
|---|---|---|---|---|---|
| {{ $invoice->number }} | {{ $invoice->serviceOrder->customer->name }} | {{ $invoice->issue_date }} | {{ $invoice->status == 'paid' ? 'PAGADA' : 'PENDIENTE' }} |
${{ number_format($itemsTotal, 2) }} Bs. {{ number_format($itemsTotal * $rate, 2) }} |
${{ number_format($paid, 2) }} Bs. {{ number_format($paid * $rate, 2) }} |
| Total Facturado: ${{ number_format($totalInvoiced, 2) }} Bs. {{ number_format($totalInvoiced * $rate, 2) }} |
Total Cobrado: ${{ number_format($totalPaid, 2) }} Bs. {{ number_format($totalPaid * $rate, 2) }} |
Saldo Pendiente: ${{ number_format($totalInvoiced - $totalPaid, 2) }} Bs. {{ number_format(($totalInvoiced - $totalPaid) * $rate, 2) }} |