@extends('layouts.panel', ['area' => 'user']) @section('title', 'کیف پول و درآمد') @section('content')
@include('partials.stat', ['icon' => 'wallet', 'label' => 'موجودی کیف پول', 'value' => toman($user->balance), 'color' => 'indigo']) @include('partials.stat', ['icon' => 'trending-up', 'label' => 'درآمد قابل برداشت', 'value' => toman((int) $user->earnings), 'color' => 'emerald']) @include('partials.stat', ['icon' => 'banknote', 'label' => 'حداقل برداشت', 'value' => toman($minWithdraw), 'color' => 'amber'])
@csrf
شارژ کیف پول
@csrf
انتقال درآمد به کیف پول
@csrf
درخواست برداشت
تراکنش‌ها
@forelse($transactions as $t) @empty@endforelse
تاریخشرحمبلغ
{{ jd($t->created_at) }}{{ $t->description }} {{ $t->amount >= 0 ? '+' : '' }}{{ number_format($t->amount) }}
تراکنشی وجود ندارد.
{{ $transactions->links() }}
درخواست‌های برداشت
@forelse($withdrawals as $w)
{{ toman($w->amount) }}
{{ jd($w->created_at, 'Y/m/d') }}
{{ ['paid' => 'پرداخت‌شده', 'pending' => 'در انتظار', 'rejected' => 'رد شده'][$w->status] }}
@empty
درخواستی ثبت نشده است.
@endforelse
@endsection