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

{{ $paymentChannel->name }}

{{ $paymentChannel->is_active ? 'Aktif' : 'Nonaktif' }} Kode: {{ $paymentChannel->code }}

Edit Kembali
Informasi Dasar

{{ $paymentChannel->name }}

{{ $paymentChannel->code }}

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

#{{ $paymentChannel->sort_order }}

@if($paymentChannel->description)

{{ $paymentChannel->description }}

@endif
Pengaturan Visual

{{ $paymentChannel->icon ?? 'fas fa-credit-card-alt' }}

{{ $paymentChannel->color ?? '#007bff' }}

@if($paymentChannel->settings && count($paymentChannel->settings) > 0)
Pengaturan Tambahan
@foreach($paymentChannel->settings as $key => $value) @endforeach
{{ ucfirst(str_replace('_', ' ', $key)) }} @if(str_contains($key, 'password') || str_contains($key, 'secret') || str_contains($key, 'key')) •••••••• @else {{ $value }} @endif
@endif @if($recentInvoices->count() > 0)
Invoice Terbaru
Lihat Semua
@foreach($recentInvoices as $invoice) @endforeach
No. Invoice Tamu Total Status Tanggal Aksi
{{ $invoice->invoice_number }} {{ $invoice->guest_name }} Rp {{ number_format($invoice->total_amount, 0, ',', '.') }} {{ ucfirst($invoice->status) }} {{ $invoice->created_at->format('d M Y') }}
@endif
Statistik Penggunaan

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

Total Invoice

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

Invoice Terbayar

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

Pending

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

Dibatalkan
@if($paymentChannel->invoices()->count() > 0)
Total Nilai: Rp {{ number_format($paymentChannel->invoices()->sum('total_amount'), 0, ',', '.') }}
Nilai Terbayar: Rp {{ number_format($paymentChannel->invoices()->where('status', 'paid')->sum('total_amount'), 0, ',', '.') }}
Invoice Terbaru: {{ $paymentChannel->invoices()->latest()->first()?->created_at?->format('d M Y') ?? '-' }}
@endif
Aksi Cepat
Edit Channel @if($paymentChannel->invoices()->count() > 0) Lihat Invoice @endif Tambah Channel Baru
Informasi Sistem
Dibuat: {{ $paymentChannel->created_at->format('d M Y H:i') }}
Diperbarui: {{ $paymentChannel->updated_at->format('d M Y H:i') }}
ID: {{ $paymentChannel->id }}
@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