@extends('layouts.admin.app') @section('content')
Coupon List add

@if(Session::has('success'))
{{ Session::get('success') }}

demo test

@endif @if(Session::has('error'))
{{ Session::get('error') }}
@endif
@foreach($coupondata as $coupon) @php $startdate = date('d-m-Y',strtotime($coupon->start_date)); $enddate = date('d-m-Y',strtotime($coupon->end_date)); @endphp @endforeach
Coupon Name Coupon Amount Course Name Start Date End Date Status Action
Active @else bg-gradient-danger">Inactive @endif
@csrf @method('DELETE')
    {{ $coupondata->links() }}
@include('layouts.admin.footer')
@endsection