@extends('layouts.app') @section('title', 'B2B Portal — Promos') @section('content') @include('b2bportal::partials.admin_style')

Promos New promo

Buyer-opt-in discount toggles that appear as chips in the storefront header when active.

@include('b2bportal::admin.nav') @if(session('status'))
{{ session('status') }}
@endif
@forelse($promos as $p) @empty @endforelse
LabelDiscountMin qtyMin amount WindowOpt-inActive
{{ $p->label }} @if($p->discount_kind === 'discount_pct') {{ $p->discount_value }}% @else {{ config('constants.currency_symbol','₹') }}{{ number_format($p->discount_value, 2) }}/pc @endif {{ $p->min_qty ?: '—' }} {{ $p->min_amount ? number_format($p->min_amount, 2) : '—' }} {{ $p->starts_at?->format('d M Y') ?? 'anytime' }} — {{ $p->ends_at?->format('d M Y') ?? 'forever' }} {{ $p->requires_opt_in ? 'Yes' : 'Auto' }} {!! $p->is_active ? 'Yes' : 'No' !!} Edit
@csrf @method('DELETE')
No promos yet.
{{ $promos->links() }}
@endsection