@extends('backend.layouts.grid') @section('title', __('Coupons')) @section('link', route('admin.coupons.create')) @section('content')
@foreach ($coupons as $coupon) @endforeach
{{ __('#') }} {{ __('Coupon') }} {{ __('Percentage') }} {{ __('Limit') }} {{ __('Plan') }} {{ __('Action type') }} {{ __('expiry at') }}
{{ $coupon->id }} {{ $coupon->code }} {{ $coupon->percentage }}% OFF {{ $coupon->limit }} @if (!is_null($coupon->plan_id)) {{ $coupon->plan->name }} @else {{ __('All plans') }} @endif @if ($coupon->action_type == 0) {{ __('All actions') }} @elseif($coupon->action_type == 1) {{ __('Subscribing') }} @elseif($coupon->action_type == 2) {{ __('Renewal') }} @elseif($coupon->action_type == 3) {{ __('Upgrade') }} @endif @if (!isExpiry($coupon->expiry_at)) {{ vDate($coupon->expiry_at) }} @else {{ __('Expired') }} @endif
@push('scripts_libs') @endpush @endsection