@extends("admin/layouts.master") @section('title','All Coupons') @section('body')
@include('admin.message')
@foreach($coupans as $key=> $cpn) {{-- --}} @endforeach
{{ __('adminstaticword.ID') }} {{ __('adminstaticword.CODE') }} {{ __('adminstaticword.Amount') }} {{ __('adminstaticword.Detail') }} {{ __('adminstaticword.CouponUsedCount') }} {{ __('adminstaticword.Edit') }} {{ __('adminstaticword.Delete') }}
{{ $cpn->id }} {{ $cpn->code }} @if($cpn->distype == 'fix') @endif {{ $cpn->amount }}@if($cpn->distype == 'per')% @endif

{{ __('adminstaticword.GetStarted').__('adminstaticword.Date') }}: {{ $cpn->start_date ? date('Y-m-d',strtotime($cpn->start_date)) : '無' }}

{{ __('adminstaticword.ExpiryDate') }}: {{ $cpn->expirydate ? date('Y-m-d',strtotime($cpn->expirydate)) : '無' }}

{{ __('adminstaticword.DiscountType') }}: {{ $coupon_types[ $cpn->distype ] }}

{{ $cpn->couponUsed->count() }} @if (isset($cpn->stripe_coupon_id)) - @else @endif
@endsection