Total Pendapatan

Rp {{ number_format($totalRevenue) }}

Membership

Rp {{ number_format($membershipRevenue) }}

Visit Harian

Rp {{ number_format($visitRevenue) }}

@if(count($dailyRevenue) > 0)

Tren Pendapatan Harian

@endif
@forelse($transactions as $tx) @empty @endforelse
Tanggal Nama Jumlah Struk
{{ $tx['date']->format('d M Y H:i') }} {{ $tx['name'] }} Rp {{ number_format($tx['amount']) }}
@if(!empty($tx['phone'])) @php $phone = preg_replace('/[^0-9]/', '', $tx['phone']); if(str_starts_with($phone, '0')) $phone = '62' . substr($phone, 1); $receiptUrl = route('receipt', ['type' => $tx['category'], 'id' => $tx['raw_id']]); $waText = urlencode("Halo {$tx['name']}, terima kasih atas transaksinya di SibiFit!\n\nBerikut adalah link struk pembayaran Anda:\n{$receiptUrl}\n\nSampai jumpa di gym!"); $waLink = "https://wa.me/{$phone}?text={$waText}"; @endphp send @endif print
Tidak ada transaksi
@script @endscript