@extends('admin.master_layout') @section('title') {{ __('translate.Promotion settings') }} @endsection @section('body-header')

{{ __('translate.Promotion settings') }}

{{ __('translate.Subscription Plan') }} >> {{ __('translate.Promotion settings') }}

@endsection @section('body-content') @php use App\Enums\ListingPromotionType; $durationPriceRows = [ ListingPromotionType::SEARCH_HOME => ['label' => __('translate.Promotion type search home'), 'legacy' => $settings->price_search_home], ListingPromotionType::BANNER_SLIDER => ['label' => __('translate.Promotion type banner slider'), 'legacy' => $settings->price_banner_slider], ListingPromotionType::EMAIL_BANNER => ['label' => __('translate.Promotion type email banner'), 'legacy' => $settings->price_email_banner], ListingPromotionType::LISTING_REFRESH => ['label' => __('translate.Promotion type listing refresh'), 'legacy' => $settings->price_listing_refresh ?? -1], ListingPromotionType::DASHBOARD_BANNER => ['label' => __('translate.Promotion type dashboard banner'), 'legacy' => $settings->price_dashboard_banner ?? -1], ListingPromotionType::COOKIE_BANNER => ['label' => __('translate.Promotion type cookie banner'), 'legacy' => $settings->price_cookie_banner ?? -1], ]; $storedDurationPrices = \App\Support\PromotionDurationPricing::normalizeStoredPrices( old('promotion_duration_prices', $settings->promotion_duration_prices ?? null) ); @endphp
@csrf @method('PUT')

{{ __('translate.Individual promotion prices') }}

{{ __('translate.Individual promotion prices help') }}

{{ __('translate.Plan promotion duration prices help') }}

@foreach ($durationPriceRows as $type => $row)
@include('subscription::_promotion_duration_price_inputs', [ 'promotionType' => $type, 'storedPrices' => $storedDurationPrices, 'legacyPrice' => $row['legacy'], 'inputIdPrefix' => 'global', ]) @if ($type === ListingPromotionType::LISTING_REFRESH) {{ __('translate.Promotion minus one hint') }} @endif
@endforeach
{{ __('translate.Paid promotion duration legacy help') }}
@endsection