@if(session()->get('title') == "success")
Success
{{ session()->get('message') }}
@elseif (session()->get('title') == "error")
Error
{{ session()->get('message') }}
@elseif($errors->any())
Error
@foreach ($errors->all() as $error)
{{ $error }}
@endforeach
@else
@endif
{{-- --}}
{{__('messages.name')}} |
{{__('messages.code')}} |
{{__('messages.discount')}} |
{{__('messages.maxUsage')}} |
{{__('messages.STATUS')}} |
{{__('messages.ACTION')}} |
@foreach($data as $coupon)
{{$coupon->name}} |
{{$coupon->code}} |
{{$coupon->discount->name }} |
{{$coupon->maximum_user}} |
@if ($coupon->active =='1')
Active |
@else
Inactive |
@endif
|
@endforeach