{{-- ===================================================== Etebarit - by Gisoo Web Solutions ------------------------------------------------------ Gisoo.net ------------------------------------------------------ Copyright (c) 2026 Gisoo Web Solutions ===================================================== This code is protected by copyright ===================================================== File: switcher.blade.php ------------------------------------------------------ Use: The two-wallet switcher shown to merchants only. It lays the personal wallet and the shop wallet side by side so the two are never confused: the one you are on is highlighted, the other is a shortcut to it. ===================================================== --}} @props([ 'active', // 'personal' | 'shop' 'personalUrl', 'shopUrl', 'personalAmount', 'shopAmount', ])
{{-- Personal wallet (violet) --}} @php $p = $active === 'personal'; @endphp $p, 'border border-line bg-white hover:-translate-y-0.5 hover:border-primary-600/40 hover:shadow-md' => ! $p, ])> $p, 'bg-[#efeafb] text-primary-600' => ! $p])>
$p, 'text-ink' => ! $p])>{{ __('front.wallet_switch.personal_title') }} @if ($p){{ __('front.wallet_switch.here') }}@endif
$p, 'text-ink-faint' => ! $p])>{{ __('front.wallet_switch.personal_desc') }}
$p, 'text-ink' => ! $p])>@toman($personalAmount) {{ __('front.wallet.toman') }}
@unless ($p) @endunless
{{-- Shop wallet (Iranian red) --}} @php $s = $active === 'shop'; @endphp $s, 'border border-line bg-white hover:-translate-y-0.5 hover:border-secondary-500/40 hover:shadow-md' => ! $s, ])> $s, 'bg-secondary-50 text-secondary-500' => ! $s])>
$s, 'text-ink' => ! $s])>{{ __('front.wallet_switch.shop_title') }} @if ($s){{ __('front.wallet_switch.here') }}@endif
$s, 'text-ink-faint' => ! $s])>{{ __('front.wallet_switch.shop_desc') }}
$s, 'text-ink' => ! $s])>@toman($shopAmount) {{ __('front.wallet.toman') }}
@unless ($s) @endunless