@extends('dashboard.layouts.app') @section('content') @include('components.alert')
Promocode Details: {{ $promocode->code }}
Code Limit Type Discount Monthly Renewable Expiry Date Total Usage Count Usage Count ({{ \Carbon\Carbon::create()->month((int) $month)->year((int) $year)->format('F Y') }}) Created By
{{ $promocode->code }} {{ $promocode->limit }} {{ ucfirst($promocode->type) }} {{ $promocode->type === 'percentage' ? $promocode->discount . '%' : $promocode->discount }} {{ $promocode->is_monthly_renewable ? 'Yes' : 'No' }} {{ \Carbon\Carbon::parse($promocode->expire_date)->format('d M Y') }} {{ $promocode->usage_count_total ?? 0 }} {{ $promocode->usage_count_filtered ?? 0 }} {{ $promocode->createdBy->full_name ?? '' }}
Invoices for {{ \Carbon\Carbon::create()->month((int) $month)->year((int) $year)->format('F Y') }}
@forelse ($promocode->studentInvoices as $invoice) {{-- --}} @empty @endforelse
Index Invoice Number Created By Student Course/Product Invoice Date
{{ $loop->iteration }} {{ $invoice->invoice_number }}{{ $invoice->createdBy->full_name ?? '' }}{{ $invoice->createdBy->email ?? '' }} {{ ($invoice->student->first_name ?? '') . ' ' . ($invoice->student->last_name ?? '') }} @if ($invoice->type == 'track') {{ $invoice->track->name_en ?? '' }} @else {{ $invoice->product->name_en ?? '' }} @endif {{ \Carbon\Carbon::parse($invoice->created_at)->format('d M Y') }}
No invoices found for this promocode in {{ \Carbon\Carbon::create()->month((int) $month)->year((int) $year)->format('F Y') }}.
@endsection