2013-11-26 13:45:07 +01:00
|
|
|
@extends('header')
|
|
|
|
|
|
|
|
@section('content')
|
|
|
|
|
2013-11-28 13:15:34 +01:00
|
|
|
@if ($invoice->client->account->isGatewayConfigured())
|
2013-11-26 13:45:07 +01:00
|
|
|
{{ Button::primary_link(URL::to('payment/' . $invoice->invoice_key), 'Pay Now', array('class' => 'btn-lg pull-right')) }}
|
|
|
|
<div class="clearfix"></div><p> </p>
|
|
|
|
@endif
|
|
|
|
|
2013-12-04 17:20:14 +01:00
|
|
|
<iframe frameborder="1" width="100%" height="650" style="display:block;margin: 0 auto"></iframe>
|
2013-11-26 13:45:07 +01:00
|
|
|
|
|
|
|
<script type="text/javascript">
|
|
|
|
|
|
|
|
$(function() {
|
|
|
|
var invoice = {{ $invoice->toJson() }};
|
|
|
|
@if (file_exists($invoice->client->account->getLogoPath()))
|
|
|
|
invoice.image = "{{ HTML::image_data($invoice->client->account->getLogoPath()) }}";
|
|
|
|
invoice.imageWidth = {{ $invoice->client->account->getLogoWidth() }};
|
|
|
|
invoice.imageHeight = {{ $invoice->client->account->getLogoHeight() }};
|
|
|
|
@endif
|
|
|
|
var doc = generatePDF(invoice);
|
|
|
|
var string = doc.output('datauristring');
|
|
|
|
$('iframe').attr('src', string);
|
|
|
|
});
|
|
|
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
@stop
|