Files
2026-09-01 07:49:48 -03:00

81 lines
3.2 KiB
PHP
Executable File

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Invoice {{ $invoice->invoice_number }}</title>
<style>
body { font-family: 'DejaVu Sans', sans-serif; font-size: 12px; color: #333; }
.header { text-align: center; margin-bottom: 30px; }
.header h1 { color: #4F46E5; font-size: 24px; margin: 0; }
.header p { color: #666; margin: 5px 0; }
.info { margin-bottom: 30px; }
.info table { width: 100%; }
.info td { vertical-align: top; padding: 5px; }
.info .label { font-weight: bold; color: #666; width: 120px; }
table.items { width: 100%; border-collapse: collapse; margin-bottom: 30px; }
table.items th { background: #4F46E5; color: white; padding: 10px; text-align: left; }
table.items td { padding: 10px; border-bottom: 1px solid #ddd; }
table.items tr:nth-child(even) { background: #f9f9f9; }
.total { text-align: right; font-size: 16px; font-weight: bold; margin-top: 20px; }
.footer { text-align: center; color: #999; font-size: 10px; margin-top: 50px; border-top: 1px solid #ddd; padding-top: 10px; }
.status-paid { color: #059669; font-weight: bold; }
.status-pending { color: #D97706; font-weight: bold; }
</style>
</head>
<body>
<div class="header">
<h1>Annunk</h1>
<p>Learning & Training Platform</p>
<p>www.syspanel.com.br</p>
</div>
<div class="info">
<table>
<tr>
<td class="label">Invoice:</td>
<td>{{ $invoice->invoice_number }}</td>
<td class="label">Date:</td>
<td>{{ $invoice->created_at->format('d/m/Y') }}</td>
</tr>
<tr>
<td class="label">Client:</td>
<td>{{ $invoice->user->name }}</td>
<td class="label">Email:</td>
<td>{{ $invoice->user->email }}</td>
</tr>
<tr>
<td class="label">Status:</td>
<td class="status-{{ $invoice->status }}">{{ ucfirst($invoice->status) }}</td>
<td class="label">Payment:</td>
<td>{{ $invoice->paid_at ? $invoice->paid_at->format('d/m/Y') : '-' }}</td>
</tr>
</table>
</div>
<table class="items">
<thead>
<tr>
<th>Description</th>
<th>Period</th>
<th>Amount</th>
</tr>
</thead>
<tbody>
<tr>
<td>{{ $invoice->subscription->plan->name }}</td>
<td>{{ $invoice->subscription->start_date->format('d/m/Y') }} - {{ $invoice->subscription->end_date->format('d/m/Y') }}</td>
<td>{{ $invoice->currency === 'BRL' ? 'R$' : '$' }} {{ number_format($invoice->amount, 2, ',', '.') }}</td>
</tr>
</tbody>
</table>
<div class="total">
Total: {{ $invoice->currency === 'BRL' ? 'R$' : '$' }} {{ number_format($invoice->amount, 2, ',', '.') }}
</div>
<div class="footer">
<p>Annunk - Syspanel (syspanel.com.br)</p>
<p>This invoice was generated automatically. For questions, contact contato@ank2.com</p>
</div>
</body>
</html>