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",
|
|
|
|
"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",
|
2015-12-07 14:34:55 +01:00
|
|
|
"price": "{{ $account->formatMoney($invoice->getRequestedAmount(), $client) }}"
|
2015-11-10 23:07:05 +01:00
|
|
|
},
|
|
|
|
"action": {
|
|
|
|
"@type": "ViewAction",
|
|
|
|
"url": "{!! $link !!}"
|
2015-11-08 16:01:41 +01:00
|
|
|
}
|
2015-11-08 09:43:49 +01:00
|
|
|
},
|
|
|
|
@endif
|
|
|
|
{
|
|
|
|
"@context": "http://schema.org",
|
|
|
|
"@type": "EmailMessage",
|
|
|
|
"action": {
|
|
|
|
"@type": "ViewAction",
|
|
|
|
"url": "{!! $link !!}",
|
2015-11-10 23:07:05 +01:00
|
|
|
"name": "{{ trans("texts.view_{$entityType}") }}"
|
2015-11-08 09:43:49 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
2015-03-16 22:45:25 +01:00
|
|
|
</script>
|