@extends('layouts.shop') @section('title', 'My Wallet - Delivery Agent') @section('content')
{{-- Sidebar --}} @include('delivery.partials.sidebar') {{-- Main Content --}}
{{-- Page Header --}}

My Earnings Wallet

Track your delivery rewards and points balance.

{{-- Wallet Balance Card --}}
{{-- Decorative Background --}}
{{-- Balance Section --}}

Current Balance

{{ number_format($user->wallet_balance ?? 0) }}

Pts
@if(isset($settings) && $settings->delivery_wallet_min_redeem)

@if($user->wallet_balance >= $settings->delivery_wallet_min_redeem) Eligible for Redemption @else Reach {{ number_format($settings->delivery_wallet_min_redeem) }} pts to redeem @endif

@endif
{{-- Earning Rate Badge --}}

Earning Rate

{{ $settings->delivery_wallet_earn_rate ?? 0 }} Pts / 100 {{ config('app.currency', '₹') }}

{{-- Transaction History --}}

Transaction History

@if(method_exists($transactions, 'total')) {{ $transactions->total() }} Transactions @endif
@forelse($transactions as $transaction) @empty @endforelse
Date Description Type Amount
{{ $transaction->created_at->format('M d, Y') }} {{ $transaction->created_at->format('h:i A') }}
{{ $transaction->description }}
@if($transaction->reference_id)
Ref ID: #{{ $transaction->reference_id }}
@endif
{{ $transaction->type }} {{ $transaction->type == 'credit' ? '+' : '-' }}{{ number_format($transaction->amount) }}

No wallet transactions found.

Transactions will appear here once you start earning.

@if(method_exists($transactions, 'links') && $transactions->hasPages())
{{ $transactions->links() }}
@endif
@endsection