1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-09-23 18:01:35 +02:00
invoiceninja/resources/views/emails/view_action.blade.php
2015-11-08 17:01:41 +02:00

36 lines
794 B
PHP

<script type="application/ld+json">
[
@if ($entityType == ENTITY_INVOICE)
{
"@context": "http://schema.org",
"@type": "Invoice",
"paymentStatus": "PaymentDue",
@if ($invoice->due_date)
"paymentDue": "{{ $invoice->due_date }}T00:00:00+00:00",
@endif
"provider": {
"@type": "Organization",
"name": "{{ $account->getDisplayName() }}"
},
"broker": {
"@type": "Organization",
"name": "Invoice Ninja",
"url": "{!! NINJA_WEB_URL !!}"
},
"totalPaymentDue": {
"@type": "PriceSpecification",
"price": "{{ $invoice->present()->balance_due }}"
}
},
@endif
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"action": {
"@type": "ViewAction",
"url": "{!! $link !!}",
"name": "{{ trans("view_{$entityType}") }}"
}
}
]
</script>