@extends('layouts.app') @section('title', 'Detail Invoice') @section('breadcrumb') @endsection @section('content')
INFO INVOICE
No. Invoice{{ $invoice->invoice_number }}
No. Order {{ $invoice->serviceOrder->order_number }}
Pelanggan{{ $invoice->serviceOrder->customer->name }}
Telepon{{ $invoice->serviceOrder->customer->phone }}
Perangkat{{ $invoice->serviceOrder->deviceType->name }}
Jatuh Tempo{{ $invoice->due_date?->format('d/m/Y') ?? '-' }}
Dibuat Oleh{{ $invoice->createdBy->name }}
RINGKASAN PEMBAYARAN
@if($invoice->discount > 0) @endif @if($invoice->tax_amount > 0) @endif
SubtotalRp {{ number_format($invoice->subtotal, 0, ',', '.') }}
Diskon- Rp {{ number_format($invoice->discount_type === 'percent' ? ($invoice->subtotal * $invoice->discount / 100) : $invoice->discount, 0, ',', '.') }}
PPN ({{ $invoice->tax_rate }}%)+ Rp {{ number_format($invoice->tax_amount, 0, ',', '.') }}
TotalRp {{ number_format($invoice->total, 0, ',', '.') }}
DibayarRp {{ number_format($invoice->paid_amount, 0, ',', '.') }}
SisaRp {{ number_format($invoice->remaining_amount, 0, ',', '.') }}
Rincian Layanan
@foreach($invoice->serviceOrder->serviceDetails as $d) @endforeach @foreach($invoice->serviceOrder->serviceParts as $p) @endforeach
DeskripsiKategoriQtyHargaSubtotal
{{ $d->description }} {{ $d->serviceCategory?->name ?? '-' }} {{ $d->quantity }} Rp {{ number_format($d->price, 0, ',', '.') }} Rp {{ number_format($d->subtotal, 0, ',', '.') }}
{{ $p->sparePart->name }} Spare Part {{ $p->quantity }} {{ $p->sparePart->unit }} Rp {{ number_format($p->unit_price, 0, ',', '.') }} Rp {{ number_format($p->subtotal, 0, ',', '.') }}
Riwayat Pembayaran
@forelse($invoice->payments as $pay) @empty @endforelse
No. BayarTanggalMetodeReferensiJumlah
{{ $pay->payment_number }} {{ $pay->payment_date->format('d/m/Y') }} {{ $pay->method_label }} {{ $pay->reference_number ?? '-' }} Rp {{ number_format($pay->amount, 0, ',', '.') }}
Belum ada pembayaran
@endsection