@extends('layouts.app') @section('title', 'Data Pembeli') @section('content')
| Aksi | ||||||||
|---|---|---|---|---|---|---|---|---|
{{ $p->nik }} |
{{ $p->nama }} | {{ $p->telepon }} | {{ $p->pekerjaan ?: '-' }} | @if($p->dokumen_count) {{ $p->dokumen_count }}@else-@endif |
@if($p->aset_count){{ $p->aset_count }} unit@else-@endif
@if($p->penjualan_count > $p->aset_count) {{ $p->penjualan_count - $p->aset_count }} batal @endif
|
@if($p->lunas_count) {{ $p->lunas_count }} Lunas@endif
@if($p->berjalan_count)
{{ $p->berjalan_count }} Berjalan
@if($p->kredit_berjalan_count)ยท {{ $p->kredit_berjalan_count }} kredit@endif
@if($p->menunggak) {{ $p->menunggak }} angsuran terlambat @endif
@endif
@if(! $p->aset_count)Belum ada aset@endif
|
{{ $p->sisa_tagihan > 0 ? rupiah($p->sisa_tagihan) : '-' }} | @if(auth()->user()->isAdmin()) @endif |
| {{ request()->hasAny(['q', 'status']) ? 'Tidak ada pembeli yang cocok dengan filter.' : 'Belum ada data pembeli.' }} | ||||||||