@if (Auth::user()->hasRole('SuperAdmin') || Auth::user()->hasRole('FullFinancial') || Auth::user()->hasRole('OperatorPersonnel') || Auth::user()->hasRole('OperatorAdmin')) @else @endif @if (count($vouchers)) @foreach($vouchers as $voucher) @php if($voucher->status == config('constants.VOUCHER_STATUS_CANCELED')) { $voucher->status = config('constants.VOUCHER_STATUS_USED'); } @endphp @endforeach @else @endif
{{ __('ID') }} {{ __('Method') }} {{ __('Requested withdrawal') }} {{ __('Pending withdrawal') }} {{ __('Affiliate') }} {{ __('Player') }} {{ __('Generated') }} {{ __('Status') }} {{ __('Action') }}
{{ $voucher->code }} {{ GetVoucherTypes()[$voucher->type]['method'] == 'voucher' ? __('shop') : GetVoucherTypes()[$voucher->type]['method'] }} {!! GetMoneyStr3($voucher->amount, true, getenv('PLATFORM_CURRENCY_ID')) !!} @if($voucher->status == config('constants.VOUCHER_STATUS_CREATED')) {!! GetMoneyStr3(($voucher->amount - $voucher->refunded_amount ), true, $voucher->curid) !!} @else {!! GetMoneyStr3( 0, true, $voucher->curid) !!} @endif {{ $voucher->affiliate_name }} @if($voucher->user_id) {{ $voucher->firstname . ' ' . $voucher->lastname }} @else {{ $voucher->firstname . ' ' . $voucher->lastname }} @endif {{ $voucher->createtime }} {{ GetVoucherStatuses()[$voucher->status] }} @if (Auth::user()->hasRole('SuperAdmin') || Auth::user()->hasRole('FullFinancial') || Auth::user()->hasRole('AffiliateManager') || Auth::user()->hasRole('OperatorPersonnel') || Auth::user()->hasRole('OperatorAdmin') ) @if ($voucher->status != config('constants.VOUCHER_STATUS_CREATED')) @endif @endif @if(Auth::user()->hasRole('SuperAdmin') || Auth::user()->hasRole('FullFinancial') || Auth::user()->hasRole('OperatorPersonnel') || Auth::user()->hasRole('OperatorAdmin')) @if($voucher->status == config('constants.VOUCHER_STATUS_CREATED')) @endif @endif
{{ __('No data.') }}