@php
$firstPrice = $form['plan']->prices[0] ?? null;
$currencyCode = null;
if($firstPrice){
if(isset($firstPrice->currency) && $firstPrice->currency){
$currencyCode = $firstPrice->currency->code ?? null;
} elseif(!empty($firstPrice->currency_id)){
$cur = \App\Models\Currency::find($firstPrice->currency_id);
$currencyCode = $cur ? $cur->code : null;
}
}
@endphp
Realizar el pago de @include('partials.price_label', ['amount' => $form['plan']->prices[0]['special_offer'] ?? $form['plan']->prices[0]['price'], 'paymentMethod' => 'mercadopago', 'currency' => $currencyCode]).
@csrf