@extends('dashboard.layouts.app') @section('content') @include('components.alert') @php $selectedPeriodLabel = \Carbon\Carbon::create()->month((int) $month)->year((int) $year)->format('F Y'); $expireDate = $promocode->expire_date ? \Carbon\Carbon::parse($promocode->expire_date) : null; $isExpired = $expireDate ? $expireDate->isPast() : false; $typeLabel = ucfirst($promocode->type); $discountLabel = $promocode->type === 'percentage' ? number_format($promocode->discount, 0) . '%' : number_format($promocode->discount, 0); @endphp
Filter promocode invoice usage by selected month and year.
Main configuration and usage information for this promocode.
Invoices that used this promocode in {{ $selectedPeriodLabel }}.
No invoices found for this promocode in {{ $selectedPeriodLabel }}.