@php $items = \App\Addons\Fund\Models\FundsTransfer::where('customer_id', auth('web')->user()->id)->orderBy('id', 'desc')->paginate(5); @endphp
@if (empty($gatewaysOptions)) @else

{{ __('fund::messages.card.title') }}

{{ __('fund::messages.card.description') }}

@csrf @include('shared/input', ['amount' => 'amount', 'label' => __('fund::messages.card.amount'), 'name' => 'amount', 'value' => setting('fund_credit_min_amount', 5), 'type' => 'number', 'attributes' => ['step' => '1', 'min' => setting('fund_credit_min_amount'), 'max' => setting('fund_credit_max_amount')]]) @include('shared/select', ['name' => 'gateway', 'label' => __('fund::messages.card.gateway'), 'options' => $gatewaysOptions, 'value' => 'stripe'])

{{ __('store.config.summary') }}

{{ __('fund::messages.card.currentbalance') }} {{ formatted_price(auth('web')->user()->balance) }}
{{ __('fund::messages.card.amount') }} 0
{{ __('fund::messages.card.next_balance') }} {{ formatted_price(auth('web')->user()->balance) }}

{{ __('store.total_topay') }} 0
@endif
@if (setting('fund_authorize_transfer_between_accounts', true))
@if (\App\Addons\Fund\DTO\AddFundDTO::getMinInvoiceValue() < setting('fund_transfer_min_invoice', '5'))

{{ __('fund::messages.transfer.title') }}

{{ __('fund::messages.transfer.description') }}

@else

{{ __('fund::messages.transfer.title') }}

{{ __('fund::messages.transfer.description') }}

@csrf @include('shared/input', ['amount' => 'amount', 'label' => __('fund::messages.card.amount'), 'name' => 'amount', 'value' => setting('fund_transfer_min_amount'), 'type' => 'number', 'attr' => ['step' => '1', 'min' => setting('fund_transfer_min_amount'), 'max' => setting('fund_transfer_max_amount')]]) @include('shared/input', ['name' => 'recipient', 'label' => __('fund::messages.transfer.recipient'), 'value' => old('recipient'), 'type' => 'email'])

{{ __('store.config.summary') }}

{{ __('fund::messages.admin.settings.fields.min_amount') }} {{ formatted_price(setting('fund_transfer_min_amount', '5')) }}
{{ __('fund::messages.admin.settings.fields.max_amount') }} {{ formatted_price(setting('fund_transfer_max_amount', '1000')) }}
{{ __('fund::messages.card.currentbalance') }} {{ formatted_price(auth('web')->user()->balance) }}
@endif

{{ __('fund::messages.transfer_table.title') }}

@if (count($items) == 0) @endif @foreach($items as $item) @endforeach
{{ __('fund::messages.recipient') }}
{{ __('global.amount') }}
{{ __('global.status') }}
{{ __('global.actions') }}

{{ __('global.no_results') }}

{{ $item->recipient->email }} {{ formatted_price($item->amount) }} @if ($item->status == 'pending')
@method('DELETE') @csrf
@endif
{{ $items->links('shared.layouts.pagination') }}
@endif