@extends('layouts.app') @section('content') @php if (!function_exists('statusColor')) { function statusColor($status) { return match($status) { 'approved' => 'text-green-500', 'payment_verification' => 'text-yellow-500', 'pending' => 'text-blue-500', 'cancelled' => 'text-red-500', default => 'text-gray-500', }; } } // Ambil data Profile dari database $profile = \App\Models\Profile::first(); $namaBank = $profile?->nama_bank ?? 'Nama Bank'; $nomorRekening = $profile?->nomor_rekening ?? 'Nomor Rekening'; $namaPerusahaan = $profile?->nama_perusahaan ?? 'Nama Perusahaan'; @endphp
{{-- Header --}}

💎 Pembayaran Transaksi

Silakan selesaikan pembayaran Anda sebelum waktu habis!

{{-- Countdown Timer --}}
🕐 Waktu Tersisa:
{{-- Card Pembayaran --}}
{{-- Info Invoice --}}

Invoice #{{ $transaction->id }}

Status: {{ ucfirst(str_replace('_', ' ', $transaction->status)) }}

{{-- Total & Instruksi --}}

Total Bayar:

Rp {{ number_format($transaction->total, 0, ',', '.') }}

Transfer ke:

{{ $nomorRekening }} - {{ $namaBank }}

{{-- Catatan Pesanan --}} @if(!empty($transaction->notes))

📝 Catatan Pesanan:

{{ $transaction->notes }}

@endif {{-- Upload Bukti Pembayaran --}}

📤 Upload Bukti Pembayaran

@csrf
{{-- Bukti yang Sudah Diupload --}} @if($transaction->payment_proof)

📸 Bukti Pembayaran

Bukti Pembayaran
@endif {{-- Tombol Kembali --}}
{{-- Alpine.js --}} @endsection