@extends('layout.admin_layout') @section('title', 'admin-dashboard') @section('body') @section('header', 'Coupons') @section('badge') @endsection

Coupons List

@csrf
{{-- --}}
{{-- --}} {{-- --}}
New
@forelse ($coupons as $coupon) {{-- --}} @empty @endforelse
# No Code Description Start date End date Discount Discount type Action
{{-- --}}
{{ $coupon->code }} {{ $coupon->description }} {{ date("d-m-Y", strtotime($coupon->start_date)) }} {{ date("d-m-Y", strtotime($coupon->end_date)) }} {{ $coupon->discount }} {{ $coupon->discount_type==1 ? 'flat discount' : 'discount in %' }} View {{-- Edit Delete --}} Edit @if ($coupon->status == 0) Send @endif {{-- @else Active @endif --}}
No data found.
@endsection @push('scripts') @endpush