1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 21:22:58 +01:00
invoiceninja/resources/views/emails/view_action.blade.php

40 lines
911 B
PHP
Raw Normal View History

2015-03-16 22:45:25 +01:00
<script type="application/ld+json">
2015-11-08 09:43:49 +01:00
[
@if ($entityType == ENTITY_INVOICE)
{
"@context": "http://schema.org",
"@type": "Invoice",
"minimumPaymentDue": {
"@type": "PriceSpecification",
"price": "{{ $invoice->present()->minimumAmountDue }}"
},
"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()->totalAmountDue }}"
}
},
@endif
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"action": {
"@type": "ViewAction",
"url": "{!! $link !!}",
"name": "View {{ $entityType }}"
}
}
]
2015-03-16 22:45:25 +01:00
</script>