@extends('admin.layout') @section('title', 'Edit Channel Pembayaran') @section('page-title', 'Edit Channel Pembayaran') @section('content')

Edit Channel Pembayaran

Perbarui informasi channel pembayaran: {{ $paymentChannel->name }}

Informasi Channel Pembayaran
@csrf @method('PUT')
@error('name')
{{ $message }}
@enderror
Kode unik untuk identifikasi (huruf kecil, angka, dan underscore)
@error('code')
{{ $message }}
@enderror
@error('description')
{{ $message }}
@enderror
Gunakan kelas FontAwesome (contoh: fas fa-credit-card-alt)
@error('icon')
{{ $message }}
@enderror
@error('color')
{{ $message }}
@enderror
Urutan tampilan dalam daftar (angka kecil tampil lebih dulu)
@error('sort_order')
{{ $message }}
@enderror
is_active) ? 'checked' : '' }}>
@if($paymentChannel->invoices()->count() > 0 && !$paymentChannel->is_active)
Channel ini digunakan dalam {{ $paymentChannel->invoices()->count() }} invoice. Menonaktifkan akan menyembunyikannya dari pilihan baru.
@endif
@if($paymentChannel->settings && count($paymentChannel->settings) > 0) @foreach($paymentChannel->settings as $key => $value)
@endforeach @endif
Tambahkan pengaturan khusus seperti nomor rekening, API key, dll.
Lihat Detail Batal
Preview Channel
{{ $paymentChannel->name }}
{{ $paymentChannel->code }}

{{ $paymentChannel->description ?? 'Tidak ada deskripsi' }}

Status: {{ $paymentChannel->is_active ? 'Aktif' : 'Nonaktif' }}
Statistik Penggunaan

{{ $paymentChannel->invoices()->count() }}

Total Invoice

{{ $paymentChannel->invoices()->where('status', 'paid')->count() }}

Invoice Terbayar
@if($paymentChannel->invoices()->count() > 0)
Invoice Terbaru: {{ $paymentChannel->invoices()->latest()->first()->created_at->format('d M Y') }}
Total Nilai: Rp {{ number_format($paymentChannel->invoices()->sum('total_amount'), 0, ',', '.') }}
@endif
@if($paymentChannel->invoices()->count() == 0)
Zona Berbahaya

Channel ini belum digunakan dalam invoice apapun. Anda dapat menghapusnya jika tidak diperlukan.

@endif
@endsection @push('scripts') @endpush