@php $rows = $insight; $sales = (float) $rows->sum('sales'); $discount = (float) $rows->sum('discount'); @endphp
| Coupon | @if ($panel === 'admin')Funded by | @endifOrders | Customers | Discount | Sales | Average order | Discount % |
|---|---|---|---|---|---|---|---|
{{ $c->code }}@if ($c->active === 0) ended@endif
@if ($c->description){{ Str::limit($c->description, 60) }} @endif |
@if ($panel === 'admin'){{ $c->owner ?: 'Marketplace' }} | @endif{{ $c->orders }} | {{ $c->customers }} | {{ inr($c->discount) }} | {{ inr($c->sales) }} | {{ inr($c->avg_order) }} | {{ $c->cost_pct }}% |
Counts orders placed in this period that are not cancelled. {{ $panel === 'seller' ? 'Only your own coupons are shown.' : '"Funded by" is the seller who created the coupon, or the marketplace.' }}