@extends('layouts.admin') @section('content') @include('include.datatable-css')
{{-- Filters HTML --}}
@if (isVendor()) @include('include.create-button', ['url' => route('add-coupon')]) @endif {{-- @include('include.import-button') --}} @include('include.export-button') @include('include.refresh-button')
{{-- Filters HTML End --}} @include('include.flash-message')
@foreach ($coupons as $coupon) @endforeach
Code Title Discount Type Amount Limit Start Date End Date Status Created By Created On Action
{{ $coupon->code }} {{ Str::limit($coupon->title, 50, ' ...') }} {{ $coupon->discount_type }} ${{ number_format($coupon->amount, 2) }} {{ $coupon->limit }} {{ strtok($coupon->start_date, ' ') }} {{ strtok($coupon->end_date, ' ') }} @if ($coupon->active == '1') Active @else Active @endif {{ $coupon->creator->accountId }} {{ $coupon->created_at }}
{{-- Import modal --}} @include('include.datatable') @include('include.filters-common-js-part') @include('include.datatable-date-range-selector-js', ['url' => 'coupons']) @endsection