@if (client_is_vibrant()) @include('livewire.client.orders.create-impulsa') @else {{-- Single / Mass tabs --}}
@if ($mode === 'single')
{{-- ============ CONFIGURATOR (left, 60%) ============ --}}
{{-- 1. Network tabs (enhancement over the reference panel; filters the cascade) --}}
@foreach ($platforms as $platform) @endforeach
{{-- 2. Category (searchable — a network can hold 400+ categories) --}}
@if ($platformId === null)
{{ __('Choose a network first') }}
@elseif ($selectedCategoryName) @else
@forelse ($categoryOptions as $opt) @empty
{{ $categorySearch === '' ? __('No categories available.') : __('No categories match.') }}
@endforelse
@endif
{{-- 3. Service --}}
@if ($isSubscription) {{-- SUBSCRIPTION FIELDS --}}
{{ __('Subscription settings') }}
{{-- Username / profile --}}
@error('subUsername')

{{ $message }}

@enderror
{{-- Min / Max per post --}}
@error('subMin')

{{ $message }}

@enderror
@error('subMax')

{{ $message }}

@enderror
@if ($service)

{{ __('Service limit') }}: {{ number_format($service->min) }} – {{ number_format($service->max) }} {{ __('per post') }}

@endif {{-- Posts / Old posts --}}
@error('subPosts')

{{ $message }}

@enderror
{{-- Delay / Expiry --}}
@else {{-- 4. Link (non-subscription) --}}
@error('link')

{{ $message }}

@enderror
{{-- 5. Drip-feed toggle (only when the service supports it) --}} @if ($service && $service->dripfeed)
@if ($dripFeed)
@endif
@endif {{-- 6. Quantity --}}
@if ($service)

{{ __('Min') }} {{ number_format($service->min) }} · {{ __('Max') }} {{ number_format($service->max) }}

@endif @if ($dripFeed && $runs && $interval && $quantity) @php $dfTotalQty = (int)$runs * (int)$quantity; $dfTotalMin = max(0, ((int)$runs - 1) * (int)$interval); $dfH = intdiv($dfTotalMin, 60); $dfM = $dfTotalMin % 60; if ($dfH > 0 && $dfM > 0) { $dfDuration = __(':hours hours and :minutes minutes', ['hours' => $dfH, 'minutes' => $dfM]); } elseif ($dfH > 0) { $dfDuration = __(':hours hours', ['hours' => $dfH]); } else { $dfDuration = __(':minutes minutes', ['minutes' => $dfM]); } @endphp
{{ __(':runs deliveries of :qty every :interval min', ['runs' => number_format((int)$runs), 'qty' => number_format((int)$quantity), 'interval' => (int)$interval]) }}
{{ __('Total quantity: :total', ['total' => number_format($dfTotalQty)]) }}
{{ __('Approximate duration: :duration', ['duration' => $dfDuration]) }}
{{ __('Total price: :price', ['price' => client_money($charge)]) }}
@endif @if ($belowMin)

{{ __('Quantity is below the minimum of :min.', ['min' => number_format($service->min)]) }}

@endif @if ($aboveMax)

{{ __('Quantity is above the maximum of :max.', ['max' => number_format($service->max)]) }}

@endif @error('quantity')

{{ $message }}

@enderror
@endif {{-- 7. Confirmation --}} @error('confirmed')

{{ $message }}

@enderror
{{-- ============ LIVE RECEIPT (right, 40%, sticky) ============ --}}
@if ($service) {{-- Service detail card --}}
{{ __('ID') }}: {{ $service->id }}
{{ $service->name }}
{{ __('Rate per 1000') }}
{{ client_rate_money($unitPrice) }}
{{ __('Min / Max') }}
{{ number_format($service->min) }} / {{ number_format($service->max) }}
@if ($service->avg_time)
{{ __('Average time') }}
{{ $service->avg_time }}
@endif
@if ($service->refill) {{ __('Refill') }} @endif @if ($service->cancel) {{ __('Cancel') }} @endif @if ($service->dripfeed) {{ __('Drip-feed') }} @endif
@if ($service->description)

{{ $service->description }}

@endif
@endif {{-- Charge receipt --}}

{{ __('Order Summary') }}

@if ($isSubscription)
{{ __('Max per post') }} {{ $subMax ? number_format((int)$subMax) : '—' }}
{{ __('Posts') }} {{ $subPosts ? number_format((int)$subPosts) : '—' }}
{{ __('Billed units') }} {{ ($subMax && $subPosts) ? number_format((int)$subMax * (int)$subPosts) : '—' }}
@else
{{ __('Quantity') }} {{ number_format((int) $quantity) }}
@endif
{{ __('Rate per 1000') }} {{ $unitPrice ? client_rate_money($unitPrice) : '—' }}
{{ __('Total Charge') }} {{ client_money($charge) }}
{{ __('Current balance') }} {{ client_money($balance) }}
{{ __('Balance after') }} {{ client_money($balanceAfter) }}
@if ($insufficient)
{{ __('Order amount exceeds available funds.') }} {{ __('Add funds') }}
@endif
@else {{-- ============ MASS ORDER ============ --}}
@error('massInput')

{{ $message }}

@enderror
@error('massConfirmed')

{{ $message }}

@enderror

{{ __('Mass Order') }}

{{ __('Each line is one order. Check the service price and delivery time before submitting — bad lines are skipped and reported.') }}

  • {{ __('Format: service ID, link, quantity separated by |') }}
  • {{ __('Each order is charged from your balance individually.') }}
  • {{ __('Find service IDs in the Services catalogue.') }}
@endif @endif {{-- ============ ORDER CONFIRMATION MODAL (shared across all client skins) ============ --}} @if ($lastOrder) @include('partials.order-confirm-modal', ['lastOrder' => $lastOrder]) @endif {{-- Header search box → fill form without navigation --}}