# easy-invoice/2.4.0/templates/invoice-templates/creative.php

Easy Invoice – Invoice Generator, PDF Quotes &amp; Payments, version 2.4.0. 636 lines.

- Page: https://pluginprobe.com/plugins/easy-invoice/2.4.0/code/templates/invoice-templates/creative.php
- Raw: https://pluginprobe.com/plugins/easy-invoice/2.4.0/raw/templates/invoice-templates/creative.php
- Modified: 2026-09-15T12:31:20+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/easy-invoice/2.4.0/code/templates/invoice-templates/creative.php#L10-L20`.

```php
<?php
/**
 * Creative Template - Artistic Design
 * Creative, artistic, and innovative invoice template
 */

if ( ! defined( 'ABSPATH' ) ) {
    exit;
}
$text_settings = \EasyInvoice\Helpers\TemplateTextHelper::forDocument(\EasyInvoice\Helpers\TemplateTextHelper::getInvoiceTextSettings(), $invoice);
$ei_is_credit_note = \EasyInvoice\Helpers\TemplateTextHelper::isCreditNote($invoice);
$company_info = \EasyInvoice\Helpers\TemplateTextHelper::getCompanyInfo();
?>
<style>
/* Creative Template - Artistic Design */
:root {
    --primary-color: #8b5cf6;
    --primary-light: #d946ef;
    --primary-dark: #7c3aed;
    --secondary-color: #06b6d4;
    --accent-color: #f59e0b;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --error-color: #ef4444;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --border-color: #e2e8f0;
    --border-light: #f1f5f9;
    --background-primary: #ffffff;
    --background-secondary: #f8fafc;
    --background-accent: #f1f5f9;
    
    --font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-family-heading: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    --font-size-4xl: 2.25rem;
    
    --spacing-1: 0.25rem;
    --spacing-2: 0.5rem;
    --spacing-3: 0.75rem;
    --spacing-4: 1rem;
    --spacing-5: 1.25rem;
    --spacing-6: 1.5rem;
    --spacing-8: 2rem;
    --spacing-10: 2.5rem;
    --spacing-12: 3rem;
    --spacing-16: 4rem;
    --spacing-20: 5rem;
    
    --radius-sm: 0.25rem;
    --radius-md: 0.375rem;
    --radius-lg: 0.5rem;
    --radius-xl: 0.75rem;
    --radius-2xl: 1rem;
    
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
}

.template-creative {
    font-family: var(--font-family);
    background: var(--background-primary);
    color: var(--text-primary);
    max-width: 1000px;
    margin: 0 auto;
    padding: var(--spacing-8);
    box-shadow: var(--shadow-2xl);
    border-radius: var(--radius-2xl);
    line-height: 1.6;
    position: relative;
    overflow: hidden;
}

.template-creative::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 8px;
    background: var(--primary-color);
}

/* Header Section */
.template-creative .invoice-header {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: var(--spacing-8);
    margin-bottom: var(--spacing-12);
    padding-bottom: var(--spacing-8);
    border-bottom: 2px solid var(--border-light);
    position: relative;
}

.template-creative .invoice-header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 120px;
    height: 2px;
    background: var(--primary-color);
    border-radius: var(--radius-sm);
}

.template-creative .company-info {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-4);
}

.template-creative .company-logo {
    margin-bottom: 0;
}

.template-creative .logo-image {
    max-height: 60px;
    max-width: 200px;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
}

.template-creative .company-name {
    font-family: var(--font-family-heading);
    font-size: var(--font-size-2xl);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--spacing-3);
    line-height: 1.2;
}

.template-creative .company-details {
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
    line-height: 1.5;
}

.template-creative .invoice-meta {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-4);
    background: var(--background-secondary);
    padding: var(--spacing-6);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    min-width: 300px;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.template-creative .invoice-meta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-color);
}

.template-creative .invoice-title {
    font-family: var(--font-family-heading);
    font-size: var(--font-size-2xl);
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: var(--spacing-4);
    text-align: center;
    text-transform: uppercase;
    letter-spacing: -0.025em;
}

.template-creative .meta-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-3) 0;
    border-bottom: 1px solid var(--border-light);
}

.template-creative .meta-item:last-child {
    border-bottom: none;
}

.template-creative .meta-label {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    font-weight: 500;
}

.template-creative .meta-value {
    font-size: var(--font-size-base);
    color: var(--text-primary);
    font-weight: 600;
}

/* Address Section */
.template-creative .address-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-8);
    margin-bottom: var(--spacing-12);
}

.template-creative .address-block {
    background: var(--background-secondary);
    padding: var(--spacing-6);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.template-creative .address-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-color);
}

.template-creative .address-block h2 {
    font-family: var(--font-family-heading);
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-4);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.template-creative .client-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: var(--font-size-base);
    margin-bottom: var(--spacing-2);
}

.template-creative .address-content {
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
    line-height: 1.5;
}

/* Invoice Items Table */
.template-creative .invoice-items {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: var(--spacing-12);
    background: var(--background-primary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.template-creative .invoice-items th {
    background: var(--primary-color);
    color: white;
    font-weight: 600;
    text-align: left;
    padding: var(--spacing-4) var(--spacing-6);
    font-size: var(--font-size-sm);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.template-creative .invoice-items td {
    padding: var(--spacing-4) var(--spacing-6);
    border-bottom: 1px solid var(--border-light);
    vertical-align: top;
}

.template-creative .invoice-items tr:last-child td {
    border-bottom: none;
}

.template-creative .invoice-items tr:hover {
    background: var(--background-accent);
}

.template-creative .item-name .item-title {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-1);
}

.template-creative .item-description {
    color: var(--text-muted);
    font-size: var(--font-size-sm);
    line-height: 1.4;
    font-weight: normal;
}

.template-creative .item-quantity,
.template-creative .item-price,
.template-creative .item-total {
    text-align: right;
    font-weight: 500;
    color: var(--text-primary);
}

/* Invoice Totals */
.template-creative .invoice-totals {
    margin-left: auto;
    width: 400px;
    background: var(--background-secondary);
    padding: var(--spacing-8);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.template-creative .invoice-totals::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-color);
}

.template-creative .invoice-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-3) 0;
    border-bottom: 1px solid var(--border-light);
}

.template-creative .invoice-total-row:last-child {
    border-bottom: none;
}

.template-creative .invoice-total-label {
    font-weight: 500;
    color: var(--text-secondary);
}

.template-creative .invoice-total-value {
    font-weight: 600;
    color: var(--text-primary);
}

.template-creative .invoice-totals .invoice-grand-total {
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--primary-color);
    border-top: 2px solid var(--primary-color);
    padding-top: var(--spacing-4);
    margin-top: var(--spacing-4);
}

/* Notes Section */
.template-creative .invoice-notes {
    margin-top: var(--spacing-8);
    padding: var(--spacing-6);
    background: var(--background-secondary);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
}

.template-creative .invoice-notes h3 {
    font-family: var(--font-family-heading);
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-3);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: var(--spacing-2);
}

.template-creative .notes-content {
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
    line-height: 1.6;
}

.template-creative .invoice-terms {
    margin-top: var(--spacing-8);
    padding: var(--spacing-6);
    background: var(--background-secondary);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
}

.template-creative .invoice-terms h3 {
    font-family: var(--font-family-heading);
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-3);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: var(--spacing-2);
}

.template-creative .terms-content {
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
    line-height: 1.6;
}

.template-creative .invoice-footer {
    margin-top: var(--spacing-8);
    padding-top: var(--spacing-6);
    border-top: 2px solid var(--border-light);
    text-align: center;
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
}

/* Responsive Design */
@media (max-width: 768px) {
    .template-creative {
        padding: var(--spacing-4);
    }
    
    .template-creative .invoice-header {
        grid-template-columns: 1fr;
        gap: var(--spacing-6);
    }
    
    .template-creative .invoice-meta {
        min-width: auto;
    }
    
    .template-creative .address-section {
        grid-template-columns: 1fr;
        gap: var(--spacing-6);
    }
    
    .template-creative .invoice-totals {
        width: 100%;
    }
}

/* Shared polish: numbers line up, numeric headings sit over their figures. */
.template-creative .invoice-items th + th { text-align: right; }
.template-creative .invoice-items .item-quantity,
.template-creative .invoice-items .item-price,
.template-creative .invoice-items .item-adjust,
.template-creative .invoice-items .item-total,
.template-creative .invoice-total-value { font-variant-numeric: tabular-nums; white-space: nowrap; }
.template-creative .meta-value { white-space: nowrap; }
.template-creative .invoice-items .item-adjust { text-align: right; }
.template-creative .client-contact { font-weight: 500; margin-bottom: 0.15em; }
.template-creative .client-tax-number,
.template-creative .company-tax-number { margin-top: 0.35em; }
.template-creative .invoice-items .item-description { white-space: pre-line; }

/* Creative: one bold gradient carries the character; everything else stays quiet. */
.template-creative::before { height: 10px; background: linear-gradient(90deg, var(--primary-color), var(--primary-light)); }
.template-creative .invoice-header::after { background: linear-gradient(90deg, var(--primary-color), var(--primary-light)); }
.template-creative .invoice-meta { border-radius: var(--radius-xl); }
.template-creative .invoice-title { color: var(--primary-dark); }
.template-creative .address-block { border-radius: var(--radius-xl); }
.template-creative .address-block::before { background: linear-gradient(90deg, var(--primary-color), var(--primary-light)); }
.template-creative .invoice-items { border-radius: var(--radius-xl); }
.template-creative .invoice-items thead { background: linear-gradient(90deg, var(--primary-color), var(--primary-light)); }
.template-creative .invoice-items th { background: transparent; }
.template-creative .invoice-items tbody tr:nth-child(even) td { background: var(--background-accent); }
.template-creative .invoice-items tr:hover { background: transparent; }
.template-creative .invoice-totals { border-radius: var(--radius-xl); }
.template-creative .invoice-totals .invoice-grand-total { color: var(--primary-dark); border-top: 2px solid var(--primary-light); }
.template-creative .invoice-notes, .template-creative .invoice-terms { border-radius: var(--radius-xl); }
.template-creative .document-kind { display: block; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-muted, #8a8a8a); font-family: var(--font-family-body, inherit); font-style: normal; margin-bottom: 0.3em; line-height: 1.2; }
.template-creative .invoice-totals .invoice-paid-row .invoice-total-value { color: var(--success-color, #047857); }
.template-creative .invoice-totals .invoice-balance-due { font-weight: 700; }
.template-creative .invoice-totals .invoice-balance-due .invoice-total-label { color: inherit; font-weight: 700; }
.template-creative .meta-amount-due .meta-value { font-weight: 700; font-size: 1.08em; }
</style>

<div class="template template-creative">
    <div class="invoice-header">
        <div class="company-info">
            <?php if (!empty($company_info['logo'])): ?>
            <div class="company-logo">
                <img src="<?php echo esc_url($company_info['logo']); ?>" alt="<?php echo esc_attr($company_info['name']); ?>" class="logo-image" onerror="this.parentNode.parentNode.removeChild(this.parentNode)">
            </div>
            <?php endif; ?>
            <div class="company-name"><?php echo esc_html($company_info['name']); ?></div>
            <div class="company-details">
                <?php echo wp_kses_post(\EasyInvoice\Helpers\TemplateTextHelper::generateFromSection($company_info, false, 'details-only')); ?>
            </div>
        </div>
        
        <div class="invoice-meta">
            <?php $ei_kind = \EasyInvoice\Helpers\TemplateTextHelper::documentKind($invoice); $ei_title = trim((string) $invoice->getTitle()); ?>
            <div class="invoice-title"><?php if ('' !== $ei_title && 0 !== strcasecmp($ei_title, $ei_kind)) : ?><span class="document-kind"><?php echo esc_html($ei_kind); ?></span><?php endif; ?><?php echo esc_html('' !== $ei_title ? $ei_title : $ei_kind); ?></div>
            <div class="meta-item">
                <span class="meta-label"><?php echo esc_html($text_settings['invoice_number']); ?></span>
                <span class="meta-value"><?php echo esc_html($invoice->getNumber()); ?></span>
            </div>
            <div class="meta-item">
                <span class="meta-label"><?php echo esc_html($text_settings['invoice_date']); ?></span>
                <span class="meta-value"><?php echo esc_html(\EasyInvoice\Controllers\SettingsController::formatDate($invoice->getIssueDate())); ?></span>
            </div>
            <?php if (empty($ei_is_credit_note)) : ?>
            <div class="meta-item">
                <span class="meta-label"><?php echo esc_html($text_settings['due_date']); ?></span>
                <span class="meta-value"><?php echo esc_html(\EasyInvoice\Controllers\SettingsController::formatDate($invoice->getDueDate())); ?></span>
            </div>
            <?php endif; ?>
            <?php if (empty($ei_is_credit_note)) : ?>
            <div class="meta-item meta-amount-due">
                <span class="meta-label"><?php echo esc_html($text_settings['total_due']); ?></span>
                <span class="meta-value"><?php echo esc_html($formatter->format(\EasyInvoice\Helpers\TemplateTextHelper::amountDue($invoice))); ?></span>
            </div>
            <?php endif; ?>
        </div>
    </div>

    <?php $ei_client_html = \EasyInvoice\Helpers\TemplateTextHelper::generateClientBlock($invoice); if ('' !== $ei_client_html) : ?>
    <div class="address-section">
        <div class="address-block">
            <h2><?php echo esc_html($text_settings['to']); ?></h2>
            <div class="address-content">
                <?php echo wp_kses_post($ei_client_html); ?>
            </div>
        </div>
    </div>
    <?php endif; ?>

    <?php
    // The adjustment column appears only when at least one line uses it.
    $ei_show_adjust = \EasyInvoice\Controllers\SettingsController::shouldShowInvoiceAdjustField();
    if ($ei_show_adjust) {
        $ei_show_adjust = false;
        foreach ($invoice->getItems() as $ei_item) {
            if ((float) $ei_item->getAdjustPercentage() != 0.0) { $ei_show_adjust = true; break; }
        }
    }
    ?>
    <table class="invoice-items">
        <thead>
            <tr>
                <th><?php echo esc_html($text_settings['service']); ?></th>
                <th><?php echo esc_html($text_settings['qty']); ?></th>
                <th><?php echo esc_html($text_settings['rate_price']); ?></th>
                <?php if ($ei_show_adjust): ?>
                <th><?php echo esc_html($text_settings['adjust']); ?> (%)</th>
                <?php endif; ?>
                <th><?php echo esc_html($text_settings['line_total'] ?? $text_settings['total']); ?></th>
            </tr>
        </thead>
        <tbody>
            <?php if (!$invoice->getItems()) : ?>
            <tr class="no-items"><td colspan="<?php echo $ei_show_adjust ? 5 : 4; ?>" style="text-align:center;color:#9ca3af;padding:18px;"><?php esc_html_e('No items yet.', 'easy-invoice'); ?></td></tr>
            <?php endif; ?>
            <?php foreach ($invoice->getItems() as $item): ?>
            <tr>
                <td class="item-name">
                    <div class="item-title"><?php echo esc_html($item->getName()); ?></div>
                    <?php if ($item->getDescription()): ?>
                        <div class="item-description"><?php echo esc_html($item->getDescription()); ?></div>
                    <?php endif; ?>
                </td>
                <td class="item-quantity"><?php echo esc_html($item->getQuantity() ?: '0'); ?></td>
                <td class="item-price"><?php echo esc_html($formatter->format($item->getPrice())); ?></td>
                <?php if ($ei_show_adjust): ?>
                <td class="item-adjust"><?php 
                    $adjust_percentage = $item->getAdjustPercentage();
                    if ($adjust_percentage != 0) {
                        echo esc_html($adjust_percentage > 0 ? '+' : '') . esc_html($adjust_percentage) . '%';
                    } else {
                        echo esc_html__('—', 'easy-invoice');
                    }
                ?></td>
                <?php endif; ?>
                <td class="item-total"><?php echo esc_html($formatter->format($item->getAmount())); ?></td>
            </tr>
            <?php endforeach; ?>
        </tbody>
    </table>

    <div class="invoice-totals">
        <?php echo wp_kses_post(\EasyInvoice\Helpers\TemplateTextHelper::generateTotalsSection($invoice, $text_settings, $formatter, 'invoice')); ?>
    </div>

    <?php if ($invoice->getNotes()): ?>
    <div class="invoice-notes">
        <h3><?php esc_html_e('Notes', 'easy-invoice'); ?></h3>
        <div class="notes-content">
            <?php echo wp_kses_post($invoice->getNotes() ?: ''); ?>
        </div>
    </div>
    <?php endif; ?>

    <?php 
    $terms_conditions = empty($ei_is_credit_note) ? ($invoice->getTerms() ?: \EasyInvoice\Controllers\SettingsController::getInvoiceTermsConditions()) : '';
    if ($terms_conditions): 
    ?>
    <div class="invoice-terms">
        <h3><?php esc_html_e('Terms & Conditions', 'easy-invoice'); ?></h3>
        <div class="terms-content">
            <?php echo wp_kses_post($terms_conditions); ?>
        </div>
    </div>
    <?php endif; ?>

    <?php
    /**
     * Fires inside the document card, after notes and terms and before the
     * footer text: attachments, the signature block, e-invoicing notes. Being
     * inside the card, it is part of what "Download as PDF" captures.
     *
     * @param object $document The invoice model.
     * @param string $type     'invoice'.
     */
    do_action('easy_invoice_document_body_after', $invoice, 'invoice');

    $ei_footer_text = \EasyInvoice\Helpers\TemplateTextHelper::footerText($invoice, 'invoice');
    if ('' !== trim(wp_strip_all_tags((string) $ei_footer_text))) :
    ?>
    <div class="invoice-footer">
        <p><?php echo wp_kses_post($ei_footer_text); ?></p>
    </div>
    <?php endif; ?>
</div>

```
