@extends('admin.layout') @section('content')

{{ trans('labels.Coupons') }} {{ trans('labels.ListingAllCoupons') }}...

{{ trans('labels.ListingAllCoupons') }}

@if (count($errors) > 0) @if($errors->any()) @endif @endif
@if(count($result['coupons'])>0) @foreach ($result['coupons'] as $key=>$coupan) @endforeach @else @endif
{{ trans('labels.Code') }} {{ trans('labels.CouponType') }} {{ trans('labels.CouponAmount') }} {{ trans('labels.Descrition') }} {{ trans('labels.ExpiryDate') }} {{ trans('labels.Action') }}
{{ $coupan->code }} {{ str_replace('_', ' ', $coupan->discount_type) }} @if($coupan->discount_type=='fixed_product' or $coupan->discount_type=='fixed_cart') {{ $result['currency'][19]->value }}{{ $coupan->amount }} @else {{ $coupan->amount }}% @endif {{ $coupan->description }} {{ date('d/m/Y',strtotime($coupan->expiry_date)) }}
{{ trans('labels.NoRecordFound') }}
{{ $result['coupons']->links('vendor.pagination.default') }}
@endsection