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>
|