@extends('layouts.account') @section('title', __('Promote')) @section('heading', __('Promote this listing')) @section('subheading', $listing->title) @section('account') @if (session('error')) {{ session('error') }} @endif
@foreach ($types as $type) @php($active = $running[$type->value] ?? null)

{{ $type->label() }}

{{ $type->description() }}

@if ($type->price() === 0) {{ __('Free') }} @else {{ config('marketplace.currency.default') }} {{ number_format($type->price() / 100, 0) }} @endif

{{ trans_choice('for one day|for :count days', $type->days(), ['count' => $type->days()]) }}

{{-- Buying the same placement twice over is money for nothing, so a seller is told plainly that it extends rather than stacks. --}} @if ($active)

{{ __('Running until :date. Buying again adds to the end of it.', [ 'date' => $active->ends_at->format('j M Y'), ]) }}

@endif
@csrf @if ($type->price() > 0 && count($gateways) > 1) @elseif ($type->price() > 0 && count($gateways) === 1) @endif
@endforeach

{{ __('Promotion starts once the payment has settled. Nothing changes on your listing before that.') }}

@endsection