@extends('layouts.app') @section('title', __('Coupons')) @section('content')
{{ __('Discount codes, extended trials, and free months.') }}
| {{ __('Code') }} | {{ __('Type') }} | {{ __('Value') }} | {{ __('Cycle') }} | {{ __('Validity') }} | {{ __('Used') }} | {{ __('Active') }} | |
|---|---|---|---|---|---|---|---|
| {{ $c->code }} | {{ __($c->type) }} | @if($c->type === 'percent'){{ $c->value }}% @elseif($c->type === 'amount'){{ number_format($c->value,2) }} @else{{ (int) $c->value }} {{ __('days/months') }} @endif | {{ __($c->cycle) }} | @if($c->valid_from || $c->valid_until) {{ $c->valid_from?->format('Y-m-d') ?? '—' }} → {{ $c->valid_until?->format('Y-m-d') ?? '—' }} @else — @endif | {{ $c->used_count }} / {{ $c->max_uses ?? '∞' }} | @if($c->is_active) {{ __('Yes') }} @else {{ __('No') }} @endif | {{ __('Edit') }} |
| {{ __('No coupons yet.') }} | |||||||