@extends('layouts.admin') @section('title',$coupon->code) @section('heading','Coupon '.$coupon->code) @section('content')

{{ $coupon->name }}

Redemption history is retained when configuration changes or the coupon is archived.

Download usage CSVBack
Redemptions{{ $analytics['redemptions'] }}
Unique customers{{ $analytics['customers'] }}
Discount granted{{ number_format($analytics['discount'],2) }}
Post-discount sales{{ number_format($analytics['sales'],2) }}

Edit configuration

@csrf @method('put') @include('admin.coupons._form')
@csrf @method('delete')

Usage report

@forelse($redemptions as $row)@empty@endforelse
RedeemedCustomerOrderStatusOrder totalDiscount
{{ $row->created_at->format('d M Y H:i') }}{{ $row->user?->name }}
{{ $row->user?->email }}
{{ $row->order?->number }}{{ $row->order?->status }}{{ $row->order?->currency }} {{ number_format((float)$row->order?->total,2) }}{{ number_format((float)$row->discount,2) }}
No redemptions yet.
{{ $redemptions->links() }}
@endsection