@extends('layouts.user') @section('content')

{{ __("Manage Coupon") }} @if(Auth::user()->hasPermission('coupon_create') && empty($recovery)) {{__("Add Coupon")}} @endif

@include('admin.message') @if($rows->total() > 0)
{{ __("Showing :from - :to of :total coupon",["from"=>$rows->firstItem(),"to"=>$rows->lastItem(),"total"=>$rows->total()]) }} {{$rows->appends(request()->query())->links()}}
@foreach($rows as $row) @endforeach
{{ __('Code')}} {{ __('Name')}} {{ __('Amount')}} {{ __('Discount Type')}} {{ __('End Date')}} {{ __('Status')}} {{ __("Action") }}
{{$row->code}} {{$row->name}} {{$row->amount}} {{$row->discount_type == 'percent' ? __("Percent") : __("Amount")}} {{ ($row->end_date) }} {{ $row->status }} {{__('Edit')}} {{__('Delete')}}
{{ __("Showing :from - :to of :total coupon",["from"=>$rows->firstItem(),"to"=>$rows->lastItem(),"total"=>$rows->total()]) }} {{$rows->appends(request()->query())->links()}}
@else {{__("No Coupon")}} @endif @endsection