Verify payments via unique codes and manage rental schedules.
|
Booking Code & Customer
@if($sortField === 'booking_code')
{!! $sortDirection === 'asc' ? '↑' : '↓' !!}
@endif
|
Tgl Transaksi
@if($sortField === 'created_at')
{!! $sortDirection === 'asc' ? '↑' : '↓' !!}
@endif
|
Unit Sewa |
Jadwal Sewa
@if($sortField === 'waktu_mulai')
{!! $sortDirection === 'asc' ? '↑' : '↓' !!}
@endif
|
Subtotal
@if($sortField === 'subtotal_harga')
{!! $sortDirection === 'asc' ? '↑' : '↓' !!}
@endif
|
Tagihan & Profit
@if($sortField === 'grand_total')
{!! $sortDirection === 'asc' ? '↑' : '↓' !!}
@endif
|
Status
@if($sortField === 'status')
{!! $sortDirection === 'asc' ? '↑' : '↓' !!}
@endif
|
Aksi |
|---|---|---|---|---|---|---|---|
|
{{ $trx->nama }}
{{ $trx->booking_code }}
{{ $trx->no_wa }}
|
{{ $trx->created_at->format('d M Y') }} {{ $trx->created_at->format('H:i') }} WIB |
@foreach($trx->units->take(2) as $u)
{{ $u->seri }}
@endforeach
@if($trx->units->count() > 2)
+{{ $trx->units->count() - 2 }}
@endif
@if($trx->units->isEmpty() && $trx->unit)
{{ $trx->unit->seri }}
@endif
|
{{ \Carbon\Carbon::parse($trx->waktu_mulai)->format('d/m/y H:i')
}} {{ \Carbon\Carbon::parse($trx->waktu_selesai)->format('d/m/y H:i') }} |
Rp {{ number_format($trx->subtotal_harga, 0, ',', '.') }} Diskon: -Rp {{ number_format($trx->potongan_diskon, 0, ',', '.') }} |
Rp {{ number_format($trx->grand_total, 0, ',', '.') }} @php $trxCommission = $trx->commissions->sum('amount'); $trxNet = $trx->grand_total - $trxCommission; @endphp @if($trxCommission > 0)
Net: Rp {{ number_format($trxNet, 0, ',', '.') }}
@endif
{{ $trx->kode_unik_pembayaran }}
{{ $trx->metode_pembayaran }}
|
@if($trx->status === 'pending')
|
@if($filterStatus === 'trashed')
@if(auth()->user()->role === 'admin')
{{-- Restore Button --}}
{{-- Force Delete Button --}}
@endif
@else
@if($trx->status === 'pending')
@if(in_array(auth()->user()->role, ['admin', 'staff']))
{{-- Validasi --}}
|
|
{{-- Col 1: Customer (Theme Aware) --}}
{{-- Footer: Actions (Theme Aware) --}}
Detail sewa
Mulai
{{ $inspectTrx->waktu_mulai->format('d M Y, H:i') }}
Selesai
{{ $inspectTrx->waktu_selesai->format('d M Y, H:i') }}
Unit terdaftar Keuangan
{{-- Harga Dasar --}}
Harga Dasar
Rp {{ number_format($inspectTrx->subtotal_harga, 0, ',', '.') }}
{{-- Biaya Bank --}}
@php
$details = $inspectTrx->payment_details;
$paymentFee = is_array($details) ? ($details['payment_fee'] ?? 0) : data_get($details, 'payment_fee', 0);
@endphp
@if($paymentFee > 0)
Biaya Bank
Rp {{ number_format($paymentFee, 0, ',', '.') }}
@endif
{{-- Kode Unik --}}
@if($inspectTrx->kode_unik_pembayaran > 0)
Kode Unik
Rp {{ number_format($inspectTrx->kode_unik_pembayaran, 0, ',', '.') }}
@endif
{{-- Potongan Diskon --}}
@if($inspectTrx->potongan_diskon > 0)
Potongan
- Rp {{ number_format($inspectTrx->potongan_diskon, 0, ',', '.') }}
@endif
@if($inspectTrx->denda > 0 || $inspectTrx->denda_kerusakan > 0)
Total Denda
+ Rp {{ number_format($inspectTrx->denda + $inspectTrx->denda_kerusakan, 0, ',', '.') }}
@endif
Grand
total
Rp {{ number_format($inspectTrx->grand_total, 0, ',', '.') }}
@if(in_array(auth()->user()->role, ['admin', 'staff']))
@if($inspectTrx->status === 'pending')
|
|||||||
| Belum ada transaksi penyewaan yang masuk. | |||||||
Catat jika ada denda tambahan sebelum menutup pesanan.
Total Denda Bayar
Rp {{ number_format((int) $dendaAmount + (int) $dendaKerusakanAmount, 0, ',', '.') }}
* TANPA KODE UNIK