@extends('back.master') @section('title', __('Coupons')) @section('content')
|
|
{{ __('Code') }} | {{ __('Used by') }} | {{ __('Value') }} | {{ __('Starts at') }} | {{ __('Expires at') }} | {{ __('Updated at') }} | {{ __('Actions') }} |
|---|---|---|---|---|---|---|---|
|
id }})">
|
{{ $coupon->code }} | {{ $coupon->used_by }} | @if($coupon->is_percentage) {{ $coupon->value.'% OFF' }} @else {{ config('payments.currency_code').' '.number_format($coupon->value, 2) }} @endif | {{ (new DateTime($coupon->starts_at))->format("d M Y \a\\t h:i:s A") }} | @if($coupon->expires_at < date('Y-m-d H:i:s')) {{ __('Expired') }} @else {{ (new DateTime($coupon->expires_at))->format("d M Y \a\\t h:i:s A") }} @endif | {{ (new DateTime($coupon->updated_at))->format("d M Y \a\\t h:i:s A") }} |
|