@extends('layouts.print') @section('content')
{{-- HEADER --}}
@if($tenant->logo_path) logo @else
O
@endif
{{ $tenant->nama_perusahaan }}
@if($tenant->tagline)
{{ $tenant->tagline }}
@endif
{{ $tenant->alamat }}
@if($tenant->no_hp) HP/WA: {{ $tenant->no_hp }} @endif @if($tenant->email) · {{ $tenant->email }} @endif
INVOICE
/ NOTA
No:{{ $invoice->nomor_invoice }}
Tanggal:{{ $invoice->tanggal_invoice->format('d/m/Y') }}
{{ $invoice->status }}
{{-- INFO CUSTOMER --}}
NAMA CUSTOMER: {{ $invoice->customer->nama ?? '-' }}
NO HP: {{ $invoice->customer->no_hp ?? '-' }}
TGL MASUK: {{ optional($invoice->tanggal_masuk)->format('d/m/Y') ?? '-' }}
JENIS SABLON: {{ $invoice->jenis_sablon ?? '-' }}
BAHAN: {{ $invoice->bahan ?? '-' }}
STATUS: {{ $invoice->status }}
{{-- ITEMS --}} @php $hasMockup = $invoice->images->count() > 0; @endphp @if($hasMockup)@endif @foreach($invoice->items as $i => $item) @if($hasMockup) @endif @endforeach
No Spesifikasi Ukuran Qty Harga TotalMockup
{{ $i + 1 }} {{ $item->spesifikasi }} {{ $item->ukuran ?? '-' }} {{ $item->qty }} {{ number_format($item->harga_satuan, 0, ',', '.') }} {{ number_format($item->total_harga, 0, ',', '.') }} @if($i === 0 && $invoice->images->first()) @endif
TOTAL KAOS (PCS) {{ $invoice->total_qty }} Pcs
{{-- FOOTER: PEMBAYARAN + TOTAL --}}
💳 PEMBAYARAN VIA TRANSFER
@php $paymentMethods = $tenant->paymentMethods()->where('is_active', true)->get(); @endphp @forelse($paymentMethods as $pm)
{{ $pm->jenis_icon }} {{ strtoupper($pm->jenis_label) }}
{{ $pm->nama }}
{{ $pm->nomor }}
@if($pm->pemilik)
a.n {{ $pm->pemilik }}
@endif
@empty
Belum ada metode pembayaran terdaftar.
@endforelse
KETERANGAN & CATATAN:
{{ $invoice->catatan ?: $tenant->catatan_default }}
SUBTOTAL:Rp {{ number_format($invoice->subtotal, 0, ',', '.') }}
DISKON:Rp {{ number_format($invoice->diskon, 0, ',', '.') }}
TOTAL AKHIR:Rp {{ number_format($invoice->total_akhir, 0, ',', '.') }}
UANG MUKA:Rp {{ number_format($invoice->total_dibayar, 0, ',', '.') }}
KEKURANGAN:Rp {{ number_format($invoice->sisa_pembayaran, 0, ',', '.') }}
Hormat Kami,
({{ $tenant->nama_perusahaan }})
{{ $tenant->tagline }}
Dokumen ini dicetak otomatis dari sistem {{ $tenant->nama_perusahaan }} · {{ now()->format('d/m/Y H:i') }}
@endsection