@php // Initialize variables with defaults to prevent undefined errors $connected_wallet = $connected_wallet ?? null; $total_points = $total_points ?? 0; $point_history = $point_history ?? collect([]); @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 Riwayat Poin

Cari Data
@forelse($point_history as $history) @empty @endforelse
Tipe Poin Wallet Tanggal
{{ $history->source_label ?? 'Game Reward' }} @if($history->game) {{ $history->game->name }} @elseif($history->description) {{ $history->description }} @endif
{{ $history->amount > 0 ? '+' : '' }}{{ number_format($history->amount) }} {{ $history->wallet->platform->name ?? $connected_wallet->platform->name ?? 'Indodax' }} {{ \Carbon\Carbon::parse($history->created_at)->format('d/m/Y') }}

Belum ada riwayat transaksi poin

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