@extends('layouts.app') @section('title', __('Withdrawals')) @section('style') @endsection @section('wrapper')

{{__('Withdrawal Requests')}}

{{__('Request withdrawal of your earnings. Minimum amount is :amount :currency', ['amount' => number_format($minWithdrawal), 'currency' => $currency])}}

{{ number_format($user->balance, 2) }}{{ $currency }}
{{__('Available Balance')}}
{{__('Withdrawal Requirements')}}
{{__('Minimum withdrawal amount: :amount :currency', ['amount' => number_format($minWithdrawal), 'currency' => $currency])}}
{{__('Maximum withdrawal amount: :amount :currency', ['amount' => number_format($maxWithdrawal), 'currency' => $currency])}}
{{__('Valid Turkish IBAN required')}}
{{__('Account holder name must match your profile')}}
{{__('Processing time: 1-3 business days')}}
{{__('New Withdrawal Request')}}
@csrf
{{__('Min: :min :currency - Max: :max :currency', ['min' => number_format($minWithdrawal), 'max' => number_format($maxWithdrawal), 'currency' => $currency])}}
{{__('Turkish IBAN (26 characters starting with TR)')}}
{{__('Important Notes')}}
  • {{__('Withdrawal requests are processed within 1-3 business days')}}
  • {{__('You can only have one pending withdrawal request at a time')}}
  • {{__('Make sure your IBAN and account holder name are correct')}}
  • {{__('You can cancel pending requests before they are approved')}}
{{__('Withdrawal History')}}
@if($withdrawals->count() > 0) @foreach($withdrawals as $withdrawal)
{{ number_format($withdrawal->amount, 2) }}{{ $currency }}
{{ $withdrawal->created_at->format('d.m.Y H:i') }}
{{ $withdrawal->masked_iban }}
{{ $withdrawal->account_holder_name }}
{{ $withdrawal->status_text }} @if($withdrawal->admin_note)
{{ $withdrawal->admin_note }}
@endif
@if($withdrawal->status === 'pending') @elseif($withdrawal->status === 'completed' && $withdrawal->transaction_reference) Ref: {{ $withdrawal->transaction_reference }} @endif
@endforeach @else

{{__('No withdrawal requests yet')}}

{{__('Submit your first withdrawal request above')}}

@endif
{{__('Withdrawal Statistics')}}
{{ $withdrawals->count() }}
{{__('Total Requests')}}
{{ $withdrawals->where('status', 'pending')->count() }}
{{__('Pending')}}
{{ $withdrawals->where('status', 'completed')->count() }}
{{__('Completed')}}
{{ number_format($withdrawals->where('status', 'completed')->sum('amount'), 0) }}{{ $currency }}
{{__('Total Withdrawn')}}

{{__('Quick Actions')}}
@endsection @section('script') @endsection