@extends('layouts.admin.master') @section('styles') @endsection @section('body-content')

{{-- Add Coupon --}}
All Coupon
@if ( session()->has('message') )
Well done! {{ session('message') }}
@endif
@foreach($coupons as $coupon) @if($coupon->flags == 1 && $coupon->start_date >= date("Y-m-d") ) @else @endif @endforeach
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 }}{{App\Models\Coupon::STATUS_ACTIVE}}Expired$coupon->id ])}}" class="btn btn-primary btn-sm m-1">Edit $coupon->id ])}}" class="btn btn-danger btn-sm m-1">Delete
{{--@endif--}}
@endsection @section('scripts') @endsection