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

{{ translate('Coupons') }}

@if (Session::get('tenant_subscribtion_data')['discount_coupons']['belongs_to_subscribtion'] == true && Session::get('tenant_controle_modules')['discount_coupons'] == 1) @if (sizeof($coupons) > 0)
@php $types[1] = 'Product'; $types[2] = 'Category'; $types[3] = 'Brand'; $types[4] = 'Public'; @endphp @foreach ($coupons as $key => $coupon) {{-- --}} @endforeach
{{ translate('Coupon code') }} {{ translate('Apply on') }} {{ translate('Active') }} {{ translate('Start date') }} {{ translate('End date') }} {{ translate('Options') }}
{{ $key + 1 + ($coupons->currentPage() - 1) * $coupons->perPage() }}{{ $coupon->coupon_code }} {{ translate($types[$coupon->type]) }} @if ($coupon->active == 1) {{ translate('Enabled') }} @else {{ translate('Disabled') }} @endif {{ $coupon->start_date }} {{ $coupon->end_date }}
{{ $coupons->links() }}
@else

{{ translate('There is nothing you are looking for') }}

{{ translate('Add new Coupon to your store') }}

@endif @else

{{ translate('You need to upgrade to use this feature.') }}

{{ translate('Please Upgrade to use this feature.') }}


{{ translate('Upgrade now') }}
@endif
@endsection @section('modal') @endsection @section('script') @if (Session::get('tenant_subscribtion_data')['discount_coupons']['belongs_to_subscribtion'] == true && Session::get('tenant_controle_modules')['discount_coupons'] == 1) @else @endif @endsection