@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', }; } } $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 --}}
🕐 Waktu Tersisa:
{{-- Card --}}
{{-- Info --}}

Invoice #{{ $transaction->id }}

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

{{-- Total & Bank --}}

Total Bayar:

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

Transfer ke:

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

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

📝 Catatan Pesanan:

{{ $transaction->notes }}

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

📤 Upload Bukti Pembayaran

{{-- Pesan Error --}} @if($errors->any())
    @foreach($errors->all() as $error)
  • ❌ {{ $error }}
  • @endforeach
@endif {{-- Pesan Sukses --}} @if(session('success'))
✅ {{ session('success') }}
@endif {{-- Form Upload --}}
@csrf

Format file: .jpg atau .png. Ukuran maksimum: 2 MB.

{{-- Preview Bukti --}} @if($transaction->payment_proof)

📸 Bukti Pembayaran

Bukti Pembayaran
@endif {{-- Tombol Kembali --}}
{{-- Script Alpine + Validasi --}} @endsection