@extends('admin.layouts.app') @section('content')
{{-- navbar - top --}} @include('admin.layouts.topbar')
{{-- navbar - side --}} @include('admin.layouts.nav')

{{ __('Coupons') }}

@if(Request::exists('search')) @else @endif
@forelse ($coupons as $coupon) @if ($coupon->type==1 || $coupon->type=="") @elseif ($coupon->type==2) @elseif($coupon->type == 3) @endif @empty @endforelse
{{ __('CODE') }} {{ __('Type') }} {{ __('Amount / %') }} {{ __('Amount 2') }} {{ __('Usage Limit') }} {{ __('Created On') }} {{ __('Status') }} {{ __('Actions') }}
{{ $coupon->code }}{{ __("Amount") }}{{ __("%") }}{{ __("Incentive") }}{{ $coupon->amount }} {{ $coupon->amount_2 }} {{ $coupon->usage_limit }} {{ \Carbon\Carbon::parse($coupon->created_at)->format('jS F Y') }}
{{ __('Looks like there\'s a VOID!') }}
{{ $coupons->withQueryString()->render("pagination::bootstrap-5") }}
@endsection @extends('admin.layouts.footer')