@extends('layouts.admin') @section('title', 'Coupons') @section('content')
Add Coupon
@foreach($coupons as $c) @endforeach
Code Type Value Used Valid Actions
{{ $c->code }} {{ $c->type }} {{ $c->type === 'percentage' ? $c->value . '%' : 'Rs ' . $c->value }} {{ $c->used_count }}{{ $c->max_uses ? '/' . $c->max_uses : '' }} {{ $c->valid_from ? $c->valid_from->format('Y-m-d') : '-' }} - {{ $c->valid_to ? $c->valid_to->format('Y-m-d') : '-' }} Edit
@csrf @method('DELETE')
{{ $coupons->links() }} @endsection