@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')}} {{ __('Author')}} {{ __('Status')}}
{{$row->code}} {{$row->name}} {{$row->amount}} {{$row->discount_type == 'percent' ? __("Percent") : __("Amount")}} {{ ($row->end_date) }} @if(!empty($row->author)) {{$row->author->getDisplayName()}} @else {{__("[Author Deleted]")}} @endif {{ $row->status }} @if(!empty($row->is_vendor))
{{ __("Is Vendor") }} @endif
{{__('Edit')}}
{{__("No coupon found")}}
{{$rows->appends(request()->query())->links()}}

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

@endsection