@extends('dashboard.layouts.app') @section('content') @include('components.alert')
Show
@forelse ($promocodes as $promocode) @empty @endforelse
Index Code Limit Type Discount Is Monthly Renewable Expire Date Usage Count Actions
{{ $loop->iteration }} {{ $promocode->code }} {{ $promocode->limit }} {{ $promocode->type }} @if ($promocode->type == 'fixed') {{ number_format($promocode->discount, 0) }} @else {{ number_format($promocode->discount, 0) }}% @endif {{ $promocode->is_monthly_renewable ? 'Yes' : 'No' }} {{ \Carbon\Carbon::parse($promocode->expire_date)->format('d M Y') }} {!! $promocode->is_monthly_renewable ? 'Total: ' . ($promocode->usage_count_total ?? 0) . '
This Month: ' . ($promocode->usage_count_monthly ?? 0) : 'Total: ' . ($promocode->usage_count_total ?? 0) !!}
No Promocodes found.
{{ $promocodes->appends(request()->except('page'))->links('pagination::bootstrap-5') }}
@foreach ($promocodes as $promocode) @endforeach @foreach ($promocodes as $promocode) @endforeach @endsection @section('scripts') @endsection