@extends('pdf.layout') @section('content') @php $itemsTotal = $invoice->total; $paidTotal = $invoice->payments->where('status', 'confirmado')->sum('amount'); $pendingTotal = $invoice->payments->where('status', 'pendiente')->sum('amount'); $balance = $itemsTotal - $paidTotal; @endphp
{{ $invoice->number }}
Fecha de Emisión: {{ $invoice->issue_date }}
Cliente
{{ $invoice->serviceOrder->customer->name }}
{{ $invoice->serviceOrder->customer->phone }}
{{ $invoice->serviceOrder->customer->email }}
Vehículo
{{ $invoice->serviceOrder->vehicle->make }} {{ $invoice->serviceOrder->vehicle->model }}
Placa: {{ $invoice->serviceOrder->vehicle->license_plate }}
Año: {{ $invoice->serviceOrder->vehicle->year }}
| Descripción | Cant. | Precio Unit. ($) | Total ($) |
|---|---|---|---|
| {{ $item->description }} | {{ $item->quantity }} | ${{ number_format($item->unit_price, 2) }} | ${{ number_format($item->total, 2) }} |
| Total Factura: | ${{ number_format($itemsTotal, 2) }} |
| Total Pagado: | ${{ number_format($paidTotal, 2) }} |
| Pagos Pendientes: | ${{ number_format($pendingTotal, 2) }} |
| SALDO: | ${{ number_format($balance, 2) }} |
Equivalente en Bolívares:
Bs. {{ number_format($itemsTotal * $rate, 2) }}
Calculado a tasa BCV de Bs. {{ number_format($rate, 2) }}