@php // Initialize variables with defaults to prevent undefined errors $connected_wallet = $connected_wallet ?? null; $total_points = $total_points ?? 0; $redeem_history = $redeem_history ?? collect([]); $min_redeem_points = $min_redeem_points ?? 10; @endphp @extends('core::layouts.dashboard') @section('title', $title . ' - ASETQU V.2') @section('meta_description', $meta_description) @push('styles') @endpush @section('content')

Wallet yang Terhubung

{{ strtoupper($connected_wallet->platform->name ?? 'BELUM TERHUBUNG') }}
Address: {{ $connected_wallet->wallet_address ?? '-' }}
Total Poin: {{ number_format($total_points ?? 0) }} Poin

Data Tabel Redeem Poin

Cari Data
@forelse($redeem_history as $redeem) @empty @endforelse
Poin Tanggal Koin Wallet
{{ number_format($redeem->points_converted ?? 0) }} {{ \Carbon\Carbon::parse($redeem->created_at)->format('d/m/Y') }} +{{ number_format($redeem->coins_received ?? 0) }} 🪙 {{ $redeem->wallet->platform->name ?? $connected_wallet->platform->name ?? 'Indodax' }}

Belum ada riwayat redeem poin

@if(method_exists($redeem_history, 'hasPages') && $redeem_history->hasPages())
Showing {{ $redeem_history->firstItem() ?? 0 }}-{{ $redeem_history->lastItem() ?? 0 }} from {{ $redeem_history->total() ?? 0 }}
@endif
@push('scripts') @endpush @endsection