@php $section_content = (array) ($section_content ?? []); $plans_by_currency = (array) ($section_content['plans_by_currency'] ?? []); $currency_meta = [ 'usd' => ['label' => 'پلن دلار آمریکا', 'code' => 'USD', 'buy_text' => 'خرید پلن دلار', 'setting_key' => 'currency_usd'], 'aed' => ['label' => 'پلن درهم امارات', 'code' => 'AED', 'buy_text' => 'خرید پلن درهم', 'setting_key' => 'currency_aed'], 'lir' => ['label' => 'پلن لیر ترکیه', 'code' => 'TRY', 'buy_text' => 'خرید پلن لیر', 'setting_key' => 'currency_lir'], ]; $currency_order = ['usd', 'aed', 'lir']; $order_url = isset($service) ? route('panel.order.create', ['id' => $service->id]) : route('panel.order.create'); @endphp
@if(!empty($section_content['title']) || !empty($section_content['short_description']))
@if(!empty($section_content['title']))

{{ $section_content['title'] }}

@endif @if(!empty($section_content['short_description']))

{{ $section_content['short_description'] }}

@endif
@endif
@foreach($currency_order as $index => $currency) @php $plans = (array) ($plans_by_currency[$currency] ?? []); $collapse_id = 'collapse-' . $currency; $heading_id = 'heading-' . $currency; @endphp

@forelse($plans as $plan)
{{ $plan['charge_amount'] ?? '۰' }}{{ $currency_meta[$currency]['code'] }}
{{ $plan['fee_without_management'] ?? '۰' }} ٪ کارمزد شارژ {{ $plan['base_toman'] ?? '۰' }} تومان :{{ $currency_meta[$currency]['code'] }}
{{ $plan['final_toman_without_management'] ?? '۰' }} تومان {{ $currency_meta[$currency]['buy_text'] }}
@empty
پلنی برای این ارز ثبت نشده است.
@endforelse
@endforeach