@extends('layouts.app') @section('content') @php use SimpleSoftwareIO\QrCode\Facades\QrCode; @endphp
@include('desktop.partials.runningtext') @include('desktop.partials.breadcrumb')
@if($pending && $pending->status === 'pending') @php $isBank = $pending->payment_type === 'deposit' && !empty($pending->account_number) && !empty($pending->account_name); $isQris = ($pending->payment_type === 'deposit' && empty($pending->account_number) && !empty($pending->qrdata)) || $pending->payment_type === 'otomatis'; $isOtomatis = $pending->payment_type === 'otomatis'; @endphp
@if($isBank)

Bank Transfer

Permintaan deposit anda sudah kami terima. Jika belum melakukan pembayaran, harap transfer ke rekening berikut:

  • Nama Bank

    {{ $pending->bank }}

  • Nama Rekening

    {{ $pending->account_name }}

  • Nomor Rekening

    {{ $pending->account_number }}

  • Jumlah

    Rp {{ number_format($pending->amount, 0, ',', '.') }}

  • Biaya Layanan

    Rp {{ number_format($pending->unique_code, 0, ',', '.') }}

  • Total

    Rp {{ number_format($pending->amount, 0, ',', '.') }}

Jika sudah melakukan pembayaran, mohon menunggu beberapa saat sampai saldo bertambah otomatis.

@elseif($isQris)

{{ $isOtomatis ? 'QRIS Otomatis' : 'QRIS' }}

Permintaan deposit anda sudah kami terima. Silakan lakukan pembayaran melalui QRIS berikut:

  • Metode

    {{ $isOtomatis ? 'QRIS Otomatis' : 'QRIS Payment' }}

  • Jumlah

    Rp {{ number_format($pending->amount, 0, ',', '.') }}

  • @if(!$isOtomatis && $pending->unique_code)
  • Kode Unik

    Rp {{ number_format($pending->unique_code, 0, ',', '.') }}

  • @endif
  • Total

    Rp {{ number_format($pending->amount, 0, ',', '.') }}

{!! QrCode::size($isOtomatis ? 240 : 220)->generate($pending->qrdata) !!}

{{ $isOtomatis ? 'QR berlaku beberapa menit. Setelah pembayaran berhasil, saldo akan masuk otomatis.' : 'Jika sudah melakukan pembayaran, mohon menunggu beberapa saat sampai saldo bertambah otomatis.' }}

@if($isOtomatis && !empty($pending->checkout_url)) Lihat bukti deposit @endif @endif
@else @if(!$pending && request()->routeIs('deposit.status'))

Anda tidak memiliki transaksi pending

@endif
@if($mode === 'bank')
@include('desktop.partials.pages.dpbank')
@elseif($mode === 'qris')
@include('desktop.partials.pages.dpqris')
@elseif($mode === 'otomatis')
@include('desktop.partials.pages.otomatis')
@endif
@endif
@endsection