Fix PayPal billing flow and mobile admin UX
This commit is contained in:
151
resources/views/billing/receipt.blade.php
Normal file
151
resources/views/billing/receipt.blade.php
Normal file
@@ -0,0 +1,151 @@
|
||||
<!doctype html>
|
||||
<html lang="{{ app()->getLocale() }}">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>{{ __('emails.purchase.invoice_title') }}</title>
|
||||
<style>
|
||||
* { box-sizing: border-box; }
|
||||
body {
|
||||
font-family: Helvetica, Arial, sans-serif;
|
||||
color: #0f172a;
|
||||
margin: 0;
|
||||
padding: 32px;
|
||||
font-size: 12px;
|
||||
}
|
||||
.header {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: flex-start;
|
||||
margin-bottom: 24px;
|
||||
}
|
||||
.header h1 {
|
||||
font-size: 22px;
|
||||
margin: 0 0 8px;
|
||||
}
|
||||
.muted {
|
||||
color: #64748b;
|
||||
}
|
||||
.section {
|
||||
margin-bottom: 24px;
|
||||
}
|
||||
.grid {
|
||||
display: flex;
|
||||
gap: 24px;
|
||||
}
|
||||
.card {
|
||||
border: 1px solid #e2e8f0;
|
||||
border-radius: 12px;
|
||||
padding: 16px;
|
||||
flex: 1;
|
||||
}
|
||||
.label {
|
||||
font-size: 11px;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.08em;
|
||||
color: #94a3b8;
|
||||
margin-bottom: 6px;
|
||||
}
|
||||
table {
|
||||
width: 100%;
|
||||
border-collapse: collapse;
|
||||
}
|
||||
th, td {
|
||||
text-align: left;
|
||||
padding: 10px 0;
|
||||
border-bottom: 1px solid #e2e8f0;
|
||||
}
|
||||
th {
|
||||
font-size: 11px;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.08em;
|
||||
color: #94a3b8;
|
||||
}
|
||||
.totals {
|
||||
margin-top: 16px;
|
||||
width: 100%;
|
||||
}
|
||||
.totals td {
|
||||
border-bottom: none;
|
||||
padding: 6px 0;
|
||||
}
|
||||
.totals .total {
|
||||
font-size: 14px;
|
||||
font-weight: 700;
|
||||
}
|
||||
.footer {
|
||||
margin-top: 24px;
|
||||
font-size: 11px;
|
||||
color: #64748b;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="header">
|
||||
<div>
|
||||
<h1>{{ __('emails.purchase.invoice_title') }}</h1>
|
||||
<div class="muted">{{ __('emails.purchase.order_label') }}: {{ $orderId }}</div>
|
||||
<div class="muted">{{ __('emails.purchase.date_label') }}: {{ $purchaseDate }}</div>
|
||||
</div>
|
||||
<div>
|
||||
<div class="label">{{ __('emails.purchase.provider_label') }}</div>
|
||||
<div>{{ $providerLabel }}</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="section grid">
|
||||
<div class="card">
|
||||
<div class="label">{{ __('emails.purchase.invoice_seller_label') }}</div>
|
||||
<div>{{ $companyName }}</div>
|
||||
<div class="muted">{{ $companyEmail }}</div>
|
||||
</div>
|
||||
<div class="card">
|
||||
<div class="label">{{ __('emails.purchase.invoice_customer_label') }}</div>
|
||||
<div>{{ $buyerName }}</div>
|
||||
@if ($buyerEmail)
|
||||
<div class="muted">{{ $buyerEmail }}</div>
|
||||
@endif
|
||||
@if ($buyerAddress)
|
||||
<div class="muted">{{ $buyerAddress }}</div>
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="section">
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>{{ __('emails.purchase.invoice_item_label') }}</th>
|
||||
<th>{{ __('emails.purchase.invoice_type_label') }}</th>
|
||||
<th style="text-align:right;">{{ __('emails.purchase.price_label') }}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>{{ $packageName }}</td>
|
||||
<td>{{ $packageTypeLabel }}</td>
|
||||
<td style="text-align:right;">{{ $amountFormatted }}</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<table class="totals">
|
||||
<tbody>
|
||||
@if ($taxFormatted)
|
||||
<tr>
|
||||
<td class="muted">{{ __('emails.purchase.invoice_tax_label') }}</td>
|
||||
<td style="text-align:right;">{{ $taxFormatted }}</td>
|
||||
</tr>
|
||||
@endif
|
||||
<tr>
|
||||
<td class="total">{{ __('emails.purchase.invoice_total_label') }}</td>
|
||||
<td class="total" style="text-align:right;">{{ $totalFormatted }}</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div class="footer">
|
||||
{{ __('emails.purchase.invoice_footer') }}
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user