@extends('backend.layouts.app') @section('title', __('labels.backend.coupons.title').' | '.app_name()) @push('after-styles') @endpush @section('content')

@lang('labels.backend.coupons.title')

{{----}} {{----}} @if( request('show_deleted') == 1 ) @else @endif @foreach($coupons as $key=>$item) @php $key++ @endphp {{----}} {{----}} @endforeach
@lang('labels.general.sr_no') @lang('labels.backend.coupons.fields.name') @lang('labels.backend.coupons.fields.code') @lang('labels.backend.coupons.fields.type') @lang('labels.backend.coupons.fields.amount') @lang('labels.backend.coupons.fields.expires_at')@lang('labels.backend.coupons.fields.per_user_limit')@lang('labels.backend.coupons.fields.total')@lang('labels.backend.coupons.fields.status')  @lang('strings.backend.general.actions')  @lang('strings.backend.general.actions')
{{ $key }} {{$item->name}} {{$item->code}} @if($item->type == 1) @lang('labels.backend.coupons.discount_rate') (in %) @else @lang('labels.backend.coupons.flat_rate') ( in {{config('app.currency')}}) @endif {{$item->amount}} @if($item->expires_at) {{\Illuminate\Support\Carbon::parse($item->expires_at)->format('d M Y')}} @else @lang('labels.backend.coupons.unlimited') @endif --}} {{--{{$item->per_user_limit}}--}} {{----}} {{--{{$item->total}}--}} {{-- @if($item->status == 1) @lang('labels.backend.coupons.on') @else @lang('labels.backend.coupons.off') @endif @if($item->status == 1) @else @endif
@csrf {{method_field('DELETE')}}
@endsection @push('after-scripts') @endpush