@extends('layouts/layoutMaster') @section('title', $pageTitle) @section('page-style') @endsection @section('page-script') @endsection @section('content') @php use Illuminate\Support\Str; use App\Support\Entitlements\EntitlementKey; $displayEntitlementGroups = collect($entitlementGroups)->except('pricing')->all(); $groupNotes = [ 'listings' => 'Define el flujo del producto: cuántos borradores simultáneos puede abrir el mariachi y cuántos anuncios puede mantener publicados. Usa 0 en publicados si ese paquete no tiene tope.', 'media' => 'Controla cuánta galería y video puede mostrar cada anuncio.', 'contact' => 'Decide qué canales de contacto se ven en la ficha pública del anuncio.', 'coverage' => 'Controla hasta dónde puede extender su cobertura geográfica cada anuncio.', 'filters' => 'Limita cuántos filtros y combinaciones puede usar para aparecer en búsquedas.', 'visibility' => 'Ajusta prioridad y posiciones destacadas dentro del marketplace.', 'extras' => 'Aquí solo viven señales comerciales del plan y métricas. La verificación del perfil se vende por separado.', ]; $softUnlimitedKeys = [ EntitlementKey::MAX_PUBLISHED_LISTINGS, EntitlementKey::MAX_OPEN_DRAFTS, ]; $videoEnabled = (bool) old('entitlements.'.EntitlementKey::CAN_ADD_VIDEO, $entitlementValues[EntitlementKey::CAN_ADD_VIDEO] ?? false); $pricingCards = [ [ 'title' => 'Opción 1', 'subtitle' => 'Tarifa base visible primero', 'months_key' => EntitlementKey::LISTING_TERM_PRIMARY_MONTHS, 'discount_key' => EntitlementKey::LISTING_TERM_PRIMARY_DISCOUNT_PERCENT, ], [ 'title' => 'Opción 2', 'subtitle' => 'Plazo de ahorro intermedio', 'months_key' => EntitlementKey::LISTING_TERM_SECONDARY_MONTHS, 'discount_key' => EntitlementKey::LISTING_TERM_SECONDARY_DISCOUNT_PERCENT, ], [ 'title' => 'Opción 3', 'subtitle' => 'Plazo largo o anual', 'months_key' => EntitlementKey::LISTING_TERM_TERTIARY_MONTHS, 'discount_key' => EntitlementKey::LISTING_TERM_TERTIARY_DISCOUNT_PERCENT, ], ]; @endphp @if ($errors->any())
Hay errores de validacion.
@endif
{{ $pageTitle }}

Controla capacidades reales, cuotas y visibilidad para cada paquete.

Volver a paquetes
@csrf @if ($formMethod !== 'POST') @method($formMethod) @endif
Datos base
exists) />
Esta insignia es comercial. No marca perfiles verificados.
Base mensual ${{ number_format((int) old('price_cop', $plan->price_cop ?? 0), 0, ',', '.') }}
Estado {{ old('is_active', $plan->exists ? $plan->is_active : true) ? 'Activo' : 'Inactivo' }}
Visibilidad {{ old('is_public', $plan->exists ? $plan->is_public : true) ? 'Publico' : 'Privado' }}
exists ? $plan->is_public : true) ? 'checked' : '' }} />
exists ? $plan->is_active : true) ? 'checked' : '' }} />
Precio y vigencia del anuncio

Esto es exactamente lo que verá el mariachi al pagar un anuncio. Aquí decides cuántos meses ofreces y qué descuento aplica en cada opción.

@foreach ($pricingCards as $pricingCard) @php $monthsValue = old('entitlements.'.$pricingCard['months_key'], $entitlementValues[$pricingCard['months_key']] ?? 0); $discountValue = old('entitlements.'.$pricingCard['discount_key'], $entitlementValues[$pricingCard['discount_key']] ?? 0); @endphp
{{ $pricingCard['title'] }}
{{ $pricingCard['subtitle'] }}
Wizard
Pon `0` si no quieres mostrar esta opción.
Se aplica sobre el total del plazo.
$0
Define una vigencia
Sin descuento
@endforeach
@foreach ($displayEntitlementGroups as $category => $definitions)
{{ $categoryLabels[$category] ?? Str::headline($category) }}

{{ $groupNotes[$category] ?? 'Capacidades configurables para este paquete.' }}

@foreach ($definitions as $key => $definition) @php $value = old('entitlements.'.$key, $entitlementValues[$key] ?? $definition['default']); $help = $definition['description']; if (in_array($key, $softUnlimitedKeys, true)) { $help .= ' Usa 0 para dejarlo sin tope.'; } @endphp @if ($definition['type'] === 'boolean')
{{ $help }}
@else
{{ $help }}
@endif @endforeach
@endforeach
Cancelar
@endsection