@extends('layouts.vendor.app') @section('title','Add new coupon') @push('css_or_js') @endpush @section('content')
@csrf

@foreach($coupons as $key=>$coupon) @endforeach
{{translate('messages.#')}} {{translate('messages.title')}} {{translate('messages.code')}} {{translate('messages.min')}} {{translate('messages.purchase')}} {{translate('messages.max')}} {{translate('messages.discount')}} {{translate('messages.discount')}} {{translate('messages.discount')}} {{translate('messages.type')}} {{translate('messages.start')}} {{translate('messages.date')}} {{translate('messages.expire')}} {{translate('messages.date')}} {{translate('messages.status')}} {{translate('messages.action')}}
{{----}}
{{$key+1}} {{$coupon['title']}} {{$coupon['code']}} {{\App\CentralLogics\Helpers::format_currency($coupon['min_purchase'])}} {{\App\CentralLogics\Helpers::format_currency($coupon['max_discount'])}} {{$coupon['discount']}} {{$coupon['discount_type']}} {{$coupon['start_date']}} {{$coupon['expire_date']}} @if($coupon['status']==1)
{{translate('messages.active')}}
@else
{{translate('messages.disabled')}}
@endif

{!! $coupons->links() !!}
@endsection @push('script_2') @endpush