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

{{__("Reward Management")}}

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

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

@endsection