@extends('user.layouts.master') @push('css') @endpush @section('breadcrumb') @include('user.components.breadcrumb',['breadcrumbs' => [ [ 'name' => __("Dashboard"), 'url' => setRoute("user.dashboard"), ] ], 'active' => __(@$page_title)]) @endsection @section('content')

{{__(@$page_title)}}

@if($cardApi->card_limit > 0) @if ($customer_card < $card_limit ) {{ __("create Card") }} @endif @else {{ __("create Card") }} @endif
@forelse ($myCards ?? [] as $index => $myCard)
! @if($cardApi->card_limit > 0)
{{ __("My Card") . " (" . ($index+1) . "/" . $cardApi->card_limit . ")" }}
@else
{{ __("My Card") . " (" . ($index+1) . "/" . count($myCards) . ")" }}
@endif
{{ __("balance") }}: {{ get_amount( $myCard->amount,$myCard->currency,get_wallet_precision())}}
{{ @$basic_settings->site_name }}
@if ($myCard->masked_pan) @php $card_pan = str_split($myCard->masked_pan, 4); @endphp
@foreach($card_pan as $key => $value)
{{ $value }}
@endforeach
@else
----
----
----
----
@endif
{{ __("exp. end:") }} {{ $myCard->card_exp_time ?? 'mm/yyyy' }}
{{ $myCard->name_on_card??auth()->user()->fullname }}
{{$myCard->cvv ?? '***' }}
@php echo @$cardApi->card_details; @endphp
{{ __("Details") }} @if($myCard->is_default == true ) {{ __("remove Default") }} @else {{ __("make Default") }} @endif {{ __("deposit") }} {{ __("withdraw") }} {{ __("Transactions") }} @if($myCard->status != global_const()::CARD_CLOSED_STATUS) {{ __("Close Card") }} @endif
@empty
!
{{ __("My Card")." (" }}{{ "0"."/".$cardApi->card_limit.")"}}
{{ @$basic_settings->site_name }}
0000
0000
0000
0000
exp. end: 00/00
{{ auth()->user()->fullname }}
{{ __("***") }}
@php echo @$cardApi->card_details; @endphp
@endforelse

{{__("recent Transactions")}}

@include('user.components.transaction-log',compact("transactions"))
@endsection @push('script') @endpush