@extends('admin.layouts.master') @section('title','All Coupons') @section('maincontent') @component('components.breadcumb',['secondaryactive' => 'active']) @slot('heading') {{ __('Coupon') }} @endslot @slot('menu1') {{ __('Coupon') }} @endslot @slot('button')
@can('coupons.delete') @endcan @can('coupons.create') {{ __('Add Coupon') }} @endcan
@endslot @endcomponent
{{ __('All Coupons') }}
@foreach($coupans as $key=> $cpn) @endforeach
{{ __('ID') }} {{ __('CODE') }} {{ __('Amount') }} {{ __('MaxUsage') }} {{ __('Detail') }} {{ __('Action') }}
{{ $key+1 }} {{ $cpn->code }} @if($cpn->distype == 'fix') @endif {{ $cpn->amount }}@if($cpn->distype == 'per')% @endif {{ $cpn->maxusage }}

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

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

{{ __('DiscountType') }}: {{ $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('scripts') @endsection