@php use App\Models\ParameterDetail; @endphp INVOICE #{{ $invoice->number }}

{{ Auth::user()->entity->name }}

{{ Auth::user()->entity->address . ' / ' . Common::phoneFormat(Auth::user()->entity->phone) }}
 
INVOICE
 
Kepada YTH,
{{ $invoice->workorder->sales->customer->name }}

{{ $invoice->workorder->sales->customer->address }}
No. Invoice {{ $invoice->number }}
Tanggal {{ Common::dateFormat(date('Y-m-d'), 'dd / mm / yyyy') }}
Jatuh Tempo {{ Common::dateFormat($invoice->duedate, 'dd / mm / yyyy') }}
@php $no = 1; $class = ''; $items = json_decode($invoice->workorder->work); @endphp @foreach ($items as $i) @php $work = ParameterDetail::select('name')->where('id', $i->id)->first(); @endphp @php $class = (empty($class)) ? 'gray' : ''; $no++; @endphp @endforeach
No Jenis Pekerjaan Keterangan Qty Harga Total
{{ $no }} {{ $work->name }} {{ $i->descr }} {{ number_format($i->qty, 0, '', '.') }} {{ 'Rp. ' . number_format($i->price, 0, '', '.') }} {{ 'Rp. ' . number_format($i->total, 0, '', '.') }}
@if ($invoice->workorder->payment_method != 1) Silahkan transfer ke rekening kami :
Bank : {{ $invoice->workorder->paymentAccount->value1 }}
No. Rekening : {{ $invoice->workorder->paymentAccount->name }}
A.n. {{ $invoice->workorder->paymentAccount->value2 }}
@endif
Sub Total Rp. {{ number_format($invoice->workorder->subtotal, 0, '', '.') }}
PPN Rp. {{ number_format($invoice->workorder->ppn, 0, '', '.') }}
PPH Rp. {{ number_format($invoice->workorder->pph, 0, '', '.') }}
Total Rp. {{ number_format($invoice->workorder->total, 0, '', '.') }}
Termin {{ $invoice->termin }} Rp. {{ number_format($invoice->total, 0, '', '.') }}
{{ Auth::user()->entity->name }},




( ............................................ )