{{ $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
|
@endforeach
@else