@extends('layouts.admin.master') @section('styles') @endsection @section('body-content')
ID | Coupon | Start Date | End Date | Total Coupon | Discount | Status | Action | |
---|---|---|---|---|---|---|---|---|
{{ $coupon->id }} | {{ $coupon->coupon_code }} | {{ date('d-m-Y', strtotime($coupon->start_date)) }} | {{ date('d-m-Y', strtotime($coupon->end_date)) }} | {{ $coupon->total_coupon }} | {{ $coupon->discount }} | @if($coupon->flags == 1 && $coupon->start_date >= date("Y-m-d") ){{App\Models\Coupon::STATUS_ACTIVE}} | @elseExpired | @endif$coupon->id ])}}" class="btn btn-primary btn-sm m-1">Edit $coupon->id ])}}" class="btn btn-danger btn-sm m-1">Delete |