@extends('layouts.admin') @section('page_title', 'Daftar Transaksi System') @section('admin_content') @if($hasPendingTransactions ?? false)
@endif @push('scripts') @endpush@if($startDate || $endDate) Menampilkan data periode: {{ $startDate ? date('d/m/Y', strtotime($startDate)) : 'Awal' }} s/d {{ $endDate ? date('d/m/Y', strtotime($endDate)) : 'Hari Ini' }} @else Menampilkan data default bulan berjalan ({{ date('F Y') }}) @endif
| Trx Code / Ref | Pengguna | Kelurahan | ID Pelanggan / Nama | Nominal Tagihan | Keuntungan | Status | Aksi Rekonsiliasi |
|---|---|---|---|---|---|---|---|
| {{ $trx->trx_code }} |
{{ $trx->user->name ?? 'User' }}
{{ $trx->created_at->format('d/m/Y H:i') }}
|
{{ $trx->user?->kelurahan ?: '-' }}
|
{{ $trx->customer_id }}
{{ $trx->customer_name }}
|
Rp {{ number_format($trx->total_amount, 0, ',', '.') }} |
@if($trx->status === 'success')
@php
$trxProfit = $trx->profitAmount();
@endphp
+ Rp {{ number_format($trxProfit, 0, ',', '.') }}
{{ $trx->billCount() }} tagihan
@else
Rp 0
@endif
|
{{ strtoupper($trx->status) }} |
@if ($trx->status === 'failed')
@endif
|
| Tidak ada data transaksi yang sesuai dengan filter yang dipilih. | |||||||