@extends('admin.layout.master') @section('content')

Coupons & Discounts

@foreach (['danger', 'warning', 'success', 'info'] as $msg) @if(Session::has('alert-' . $msg))

{{ Session::get('alert-' . $msg) }} ×

@endif @endforeach
@foreach ($percentagediscounts as $p) @if ($p->discount_type == 1) @elseif ($p->discount_type == 2) @endif @endforeach
No. Discount Name Coupon Code Min Qty Max Qty Min Order Price Max Order Price Start Date End Date Type Value Span Coupon Usage Last Modified Single-Use Redeemed Action
{{ $loop->index + 1 }} {{ $p->discount_name }} {{ $p->coupon }} {{ $p->min_qty }} {{ $p->max_qty }} {{ $p->min_order_price }} {{ $p->max_order_price }} {{ !empty($p->start_date) ? date('m/d/Y', strtotime($p->start_date)) : '' }} {{ !empty($p->end_date) ? date('m/d/Y', strtotime($p->end_date)) : '' }}Dollar amount off ENTIRE ORDERPercent off ENTIRE ORDER {{ !empty($p->updated_at) ? date('m/d/Y', strtotime($p->updated_at)) : '' }}
@endsection