@extends('admin.layouts.app') @section('content')

{{__("Coupon Management")}}

@if(empty($recovery)) {{__("Add new coupon")}} @endif
@include('admin.message')
@if(!empty($rows))
{{csrf_field()}}
@endif
@if($rows->total() > 0) @foreach($rows as $row) @endforeach @else @endif
{{ __('Code')}} {{ __('Name')}} {{ __('Amount')}} {{ __('Discount Type')}} {{ __('End Date')}} {{ __('Status')}}
{{$row->code}} {{$row->name}} {{$row->amount}} {{$row->discount_type == 'percent' ? __("Percent") : __("Amount")}} {{ ($row->end_date) }} {{ $row->status }} {{__('Edit')}}
{{__("No coupon found")}}
{{$rows->appends(request()->query())->links()}}

{{__('Found :total items',['total'=>$rows->total()])}}

@endsection