@if(!$showSuccess)
directions_walk

Visit Harian

Catat kunjungan tamu non-member

@error('guestName') {{ $message }} @enderror
@error('guestPhone') {{ $message }} @enderror
Rp
Rp
@error('cashGiven') {{ $message }} @enderror
@if($cashGiven && $cashGiven >= $amount)
Kembalian: Rp {{ number_format($change) }}
@endif
@else
check_circle

Visit Tercatat!

{{ $lastGuest['name'] }}

Total: Rp {{ number_format($lastGuest['amount']) }} | Kembalian: Rp {{ number_format($lastGuest['change']) }}

@if(!empty($lastGuest['phone'])) @php $phone = preg_replace('/[^0-9]/', '', $lastGuest['phone']); if(str_starts_with($phone, '0')) $phone = '62' . substr($phone, 1); $receiptUrl = route('receipt', ['type' => 'visit', 'id' => $lastGuest['id']]); $waText = urlencode("Halo {$lastGuest['name']}, terima kasih atas kunjungan Anda di SibiFit!\n\nBerikut adalah link struk pembayaran Visit Harian Anda:\n{$receiptUrl}\n\nSelamat berlatih!"); $waLink = "https://wa.me/{$phone}?text={$waText}"; @endphp send Kirim WA @endif print Cetak Struk
@endif

Tamu Hari Ini ({{ $todayGuests->count() }})

@forelse($todayGuests as $guest)
person

{{ $guest->guest_name }}

{{ $guest->guest_phone }}

Rp {{ number_format($guest->amount_paid) }}

{{ $guest->checked_in_at->format('H:i') }}

@empty
Belum ada tamu hari ini
@endforelse