@extends('layouts.app') @section('content')

Invoice Fee Kunjungan

Date: {{ $invoice->date ?? date('d M Y') }}

Invoice #: {{ $query->first()->kode ?? 'INV-001' }}

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

Penerima: {{ $query->first()->collector ?? 'Unknown' }}

@php $i = 1; $subtotal = 0; @endphp @foreach($query as $r) @php // Logika per item if ($r->principal == 'BTN' && $r->jumlah_kunjungan < 20) { $fee = 0; $feeText = '< 20 Kunjungan'; } else { $fee = $r->jumlah_kunjungan * 10000; $feeText = 'Rp ' . number_format(10000, 0, ',', '.'); } $subtotal += $fee; @endphp @endforeach @php $tax = $subtotal * 0.1; @endphp
No Cabang Principal Jumlah Kunjungan Fee Kunjungan Rek. AO/TO Rek. Bank Total
{{ $i++ }} {{ $r->cabang }} {{ $r->principal }} {{ $r->jumlah_kunjungan }} {{ $feeText }} {{ $r->rekening }} {{ $r->bank }} Rp {{ number_format($fee, 0, ',', '.') }}
Subtotal Rp {{ number_format($subtotal, 0, ',', '.') }}
Tax (10%) Rp {{ number_format($tax, 0, ',', '.') }}
Estimasi Total Rp {{ number_format($subtotal - $tax, 0, ',', '.') }}
@php $j = 1; @endphp @foreach($detail as $r) @php $j++; @endphp @endforeach
NO Status CATATAN CABANG/AREA BANK/PRINCIPAL NAMA AO/TO NAMA DEBITUR TGL KUNJUNGAN AKSI PHOTO KUNJUNGAN KOORDINAT LOKASI AGUNAN KOORDINAT LOKASI DOMISILI
{{ $j }} status == 'Done') class="btn btn-success text-white py-1" @elseif($r->status == 'Pending') class="btn btn-warning text-white py-1" @else class="btn btn-danger text-white py-1" @endif data-bs-toggle="modal" data-bs-target="#prosess{{ $r->id }}" onclick="event.stopPropagation();">{{ $r->status }} {{ $r->notes }} {{ $r->cabang }} {{ $r->principal }} {{ $r->collector }} {{ $r->debitur }} {{ $r->tgl_kunjungan }} {{ $r->jenis_penagihan }} {{ "https://dev.noesolution.com/new_cms/public/photo/".$r->asset_id }} koordinat_agunan" : '#' }}">{{ $r->koordinat_agunan ? "https://www.google.com/maps?q=$r->koordinat_agunan" : '-' }} koordinat_asset" : '#' }}">{{ $r->koordinat_asset ? "https://www.google.com/maps?q=$r->koordinat_asset" : '-' }}

Tanda Tangan Digital

@php $allDone = $detail->every(fn($d) => $d->status != 'Pending'); @endphp
@csrf @method('PUT')

Pemohon

TTD

{{ $detail->first()->signed_by ?? 'Finance Dept.' }}

Div. Finance

{{ 'Sherly Yuningsih' }}

@foreach($detail as $r) @endforeach

Thank you for your business!

@endsection