@extends('layouts.admin') @section('title', __('Coupons')) @section('page-title', __('Coupons')) @section('content')
| {{ __('Code') }} | {{ __('Type') }} | {{ __('Value') }} | {{ __('Duration') }} | {{ __('Active') }} | {{ __('Actions') }} |
|---|---|---|---|---|---|
|
{{ $coupon->code }}
@if($coupon->name)
{{ $coupon->name }}
@endif
|
{{ $coupon->type }} | @if($coupon->type === 'percent') {{ number_format((float) $coupon->percent_off, 2) }}% @else {{ strtoupper((string) $coupon->currency) }} {{ number_format((float) $coupon->amount_off, 2) }} @endif |
{{ $coupon->duration }}
@if($coupon->duration === 'repeating' && $coupon->duration_in_months)
{{ $coupon->duration_in_months }} {{ __('months') }}
@endif
|
{{ $coupon->is_active ? __('Active') : __('Disabled') }} |
@admincan('admin.coupons.edit')
|
| {{ __('No coupons found.') }} | |||||