@extends('layouts.admin') @section('title',tr('coupons')) @section('content-header',tr('coupons')) @section('breadcrumb')
  • {{ tr('home') }}
  • {{ tr('coupons') }}
  • @endsection @section('content') @include('notification.notify')
    {{ tr('coupons') }} {{ tr('add_coupon') }}
    @if(count($coupons) == 0)

    {{ tr('coupon_result_not_found_error') }}

    @else @foreach($coupons as $i=> $coupon_details) @endforeach
    {{ tr('id') }} {{ tr('title') }} {{ tr('coupon_code') }} {{ tr('amount_type') }} {{ tr('amount') }} {{ tr('expiry_date') }} {{ tr('status') }} {{ tr('action') }}
    {{ showEntries($_GET,$i+1) }} {{ $coupon_details->title }} {{ $coupon_details->coupon_code }} @if($coupon_details->amount_type == 0) {{ tr('percentage') }} @else {{ tr('absolute') }} @endif @if($coupon_details->amount_type == PERCENTAGE) {{ $coupon_details->amount }} % @else {{ Setting::get('currency') }} {{ $coupon_details->amount }} @endif {{ common_date($coupon_details->expiry_date , Auth::guard('admin')->user()->timezone , "d M y") }} @if($coupon_details->status == COUPON_APPROVED) {{ tr('approved') }} @else {{ tr('declined') }} @endif
    {{ $coupons->links() }}
    @endif
    @endsection