@extends('frontend.layouts.app') @section('content')
@include('frontend.partials.mobile.header') @include('frontend.partials.mobile.sidebar-menu')
Saldo
IDR {{ number_format(Auth::user()->balance ?? 0, 0, ',', '.') }}
{{ date('d-m-Y', strtotime($startDate)) }} — {{ date('d-m-Y', strtotime($endDate)) }}
@forelse($history as $h)
{{ date('d/m/Y H:i', strtotime($h->created_at)) }} - {{ $h->transaksi }}
@empty
Tidak ada data transaksi.
@endforelse @if($history instanceof \Illuminate\Contracts\Pagination\Paginator && $history->hasPages())
{{ $history->links('pagination::bootstrap-4') }}
@endif
@include('frontend.partials.mobile.bottom-nav')
@include('frontend.partials.desktop.header')

Saldo

IDR {{ number_format(Auth::user()->balance ?? 0, 0, ',', '.') }}
{{ date('d-m-Y', strtotime($startDate)) }} — {{ date('d-m-Y', strtotime($endDate)) }}
@forelse($history as $h) @php $statusColor = '#fbb11a'; if(strtolower($h->status) == 'sukses' || strtolower($h->status) == 'success') $statusColor = '#28a745'; if(strtolower($h->status) == 'gagal' || strtolower($h->status) == 'reject') $statusColor = '#dc3545'; @endphp @empty @endforelse
Date & Time Trans. ID Type Amount (IDR) Status Note
{{ date('Y-m-d H:i:s', strtotime($h->created_at)) }} {{ $h->trx_id }} {{ $h->transaksi }} {{ number_format($h->total, 0, ',', '.') }} {{ $h->status }} {{ $h->keterangan ?? '-' }}
Tidak ada data transaksi.
@if($history instanceof \Illuminate\Contracts\Pagination\Paginator && $history->hasPages())
{{ $history->links('pagination::bootstrap-4') }}
@endif
@include('frontend.partials.desktop.footer')
@endsection @push('scripts') @endpush