@extends("admin/layouts.master") @section('title','All Coupans |') @section("body")
Coupons
Create
@foreach($coupans as $key=> $cpn) @endforeach
ID CODE Amount Max Usage Detail Action
{{ $key+1 }} {{ $cpn->code }} @if($cpn->distype == 'fix') @endif {{ $cpn->amount }}@if($cpn->distype == 'per')% @endif {{ $cpn->maxusage }}

Linked to : {{ ucfirst($cpn->link_by) }}

Expiry Date: {{ date('d-M-Y',strtotime($cpn->expirydate)) }}

Discount Type: {{ $cpn->distype == 'per' ? "Percentage" : "Fixed Amount" }}

@endsection