@extends('backend.admin-master') @section('site-title') {{__('Courses Coupon')}} @endsection @section('style') @include('backend.partials.datatable.style-enqueue') @endsection @section('content')

{{__('All Courses Coupon')}}

@foreach($all_coupon as $data) @endforeach
{{__('ID')}} {{__('Code')}} {{__('Discount')}} {{__('Expire Date')}} {{__('Status')}} {{__('Action')}}
{{$data->id}} {{$data->code}} @if($data->discount_type == 'percentage') {{$data->discount}}% @else {{amount_with_currency_symbol($data->discount)}} @endif {{date('d M Y',strtotime($data->expire_date))}} @if('publish' == $data->status) {{ucfirst($data->status)}} @else {{ucfirst($data->status)}} @endif

{{__('Add New Coupon')}}

@csrf
@endsection @section('script') @include('backend.partials.bulk-action',['action' => route('admin.courses.coupon.bulk.action')]) @include('backend.partials.datatable.script-enqueue') @endsection