@php $type = isset($type) ? $type : false; $currency = base_currency(); $card_title = $card_title_tips = $card_sub_title = $card_sub_title_tips = $card_class = ''; $card_cta = isset($attr['cta']) ? $attr['cta'] : false; $card_id = (isset($attr['id']) && !empty($attr['id'])) ? ' id="'.$attr['id'].'"' : ''; $card_class = (isset($attr['class']) && !empty($attr['class'])) ? ' '.$attr['class'] : ''; if($type=='account') { $card_title = __("Available Balance"); $card_title_tips = __("Main account balance without locked or under progress."); $card_sub_title = __("Investment Account"); $card_sub_title_tips = __("Additional balance in your Investment account."); } if($type=='deposit' || $type=='withdraw') { $card_title = __("Total :Type", ['type' => $type]); $card_title_tips = __("The total :type amount without under progress.", ['type' => $type]); $card_sub_title = __("This Month"); $card_sub_title_tips = __("Than last month"); } @endphp @if(!empty($type))
{{ $card_title }}
@if($card_title_tips)
@endif
{{ amount($amount['main'], $currency) }} {{ $currency }}
{{ $card_sub_title }} @if($type=='account' && $card_sub_title_tips) @endif
@if($type=='account') {{ amount($amount['sub'], $currency) }} {{ $currency }} @else {{ amount($amount['sub'], $currency) }} {{ $currency }} @if($card_sub_title_tips) @if(abs($percentage)!==0) {{ abs($percentage) }}% @endif @endif @endif
{{-- --}}
@if($type=='account' && $card_cta==true) @endif
@endif