@extends('layouts.app') @section('title', 'Pilih Metode Pembayaran Tripay') @section('content')
Pembayaran via Tripay
Invoice: {{ $invoice->nomor_invoice ?? 'INV-' . $invoice->id }}

Pelanggan: {{ $invoice->pelanggan->nama_lengkap }}

Layanan: {{ $invoice->pelanggan->nomer_layanan }}

Rp {{ number_format($invoice->total_amount, 0, ',', '.') }}

Total yang harus dibayar
Pilih Metode Pembayaran
@if($channelsFromApi) Data payment channel diambil dari Tripay API @else Menggunakan payment channel default (API tidak tersedia) @endif
@foreach($availableChannels as $type => $channels)
{{ $type }}
@foreach($channels as $channel)
@if(isset($channel['icon_url']) && $channel['icon_url']) {{ $channel['name'] }} @else @switch($type) @case('Virtual Account') @break @case('E-Wallet') @break @case('Convenience Store') @break @default @endswitch @endif
{{ $channel['name'] }}
{{ $channel['code'] }} @if(isset($channel['fee_customer']) && !empty($channel['fee_customer']))
@if(isset($channel['fee_customer']['flat'])) Biaya: Rp {{ number_format($channel['fee_customer']['flat'], 0, ',', '.') }} @elseif(isset($channel['fee_customer']['percent'])) Biaya: {{ $channel['fee_customer']['percent'] }}% @endif
@endif
@endforeach
@endforeach
@endsection @push('styles') @endpush @push('scripts') @endpush