@extends('backend.partials.master') @section('title') {{ ___('admin.coupons_97a3ba') }} @endsection @section('maincontent') @if(hasPermission('coupon_create')) {{ ___('admin.add_61cc55') }} @endif @if(!empty($analytics)) @endif @foreach($items as $r) @php $sc = \Illuminate\Support\Str::contains(strtolower($r->status), ['cancel','reject','inactive','closed','paused','fail']) ? 'danger' : (\Illuminate\Support\Str::contains(strtolower($r->status), ['pend','process','plan','inquiry','open']) ? 'warning' : 'success'); @endphp {{ $r->code }} {{ admin_label($r->type) }} {{ currency_symbol() }}{{ number_format($r->value) }} {{ currency_symbol() }}{{ number_format($r->min_spend) }} {{ number_format($r->used_count) }}{{ $r->usage_limit ? ' / ' . number_format($r->usage_limit) : '' }} @if($r->isExhausted())
{{ ___('admin.limit_reached_068bb7') }} @elseif($r->isExpired())
{{ ___('admin.expired_a689a9') }} @endif {{ optional($r->expires_at) ? \Illuminate\Support\Carbon::parse($r->expires_at)->translatedFormat('d M Y') : '' }} {{ admin_label($r->status) }}
@if(hasPermission('coupon_update')) @endif @if(hasPermission('coupon_delete')) @endif
@endforeach
@endsection @push('scripts') @endpush