@extends('admin.layouts.master') @section('title','Coupons') @section('maincontent') @include('admin.layouts.topbar',$data)
{{ __('All Coupons') }}
@can('coupons.delete') @endcan @can('coupons.create') {{ __('Add Coupon') }} @endcan
@foreach($coupans as $key=> $cpn) @endforeach
{{ __('ID') }} {{ __('Coupon Code') }} {{ __('Amount') }} {{ __('Max Usage') }} {{ __('Detail') }} {{ __('Action') }}
{{ $key+1 }} {{ $cpn->code }} @if($cpn->distype == 'fix') @endif {{ $cpn->amount }}@if($cpn->distype == 'per')% @endif {{ $cpn->maxusage }}

{{ __('Linked to') }}: {{ ucfirst($cpn->link_by) }}

{{ __('Expiry Date') }}: {{ date('d-M-Y',strtotime($cpn->expirydate)) }}

{{ __('Discount Type') }}: {{ $cpn->distype == 'per' ? "Percentage" : "Fixed Amount" }}

{{ __('Coupon Code Display on front') }}: @if($cpn->show_to_users == '1') {{ __('Yes') }} @else {{ __('No') }} @endif

@if (isset($cpn->stripe_coupon_id)) - @else
@endif
@endsection @section('script') @endsection