From 97a587210cea9bf2cc226461d99040657088f315 Mon Sep 17 00:00:00 2001 From: Nafies Luthfi Date: Fri, 1 Dec 2017 23:56:12 +0800 Subject: [PATCH] Fix invoice print page --- resources/views/invoices/pdf.blade.php | 37 ++++++++++++++++++++++++---------- 1 file changed, 26 insertions(+), 11 deletions(-) diff --git a/resources/views/invoices/pdf.blade.php b/resources/views/invoices/pdf.blade.php index 9fea7f1..c5bd034 100755 --- a/resources/views/invoices/pdf.blade.php +++ b/resources/views/invoices/pdf.blade.php @@ -25,19 +25,33 @@ .text-right { text-align: right; } + .text-top { + vertical-align: top; + } - - @foreach ($invoice->items as $key => $item) - - - + + + @endforeach @@ -82,7 +96,7 @@ - + @@ -97,8 +111,9 @@
- {{ Html::image(url('assets/imgs/logo.png'), '', ['style' => 'width:100%']) }} + + {!! appLogoImage(['style' => 'width:100%']) !!} +
-

JasaWebsiteBanjarmasin.com

-
Jasa Pembuatan Website dan Aplikasi Berbasis Web
+

+ {{ Option::get('agency_name') }} +

+
{{ Option::get('agency_tagline') }}
+ @if (Option::get('agency_address')) +
+
+ {{ Option::get('agency_address') }}
+ @if (Option::get('agency_phone')) + @lang('contact.phone_abb') {{ Option::get('agency_phone') }} + @endif +
+ @endif
@@ -66,9 +80,9 @@
{{ 1 + $key }}{{ $item['description'] }}{{ formatRp($item['amount']) }}{{ 1 + $key }}{!! nl2br($item['description']) !!}{{ formatRp($item['amount']) }}
Terbilang : {{ trans('payment.words_amount') }} : {{ ucwords(Terbilang::make($invoice->amount)) }} Rupiah
- Banjarmasin, {{ dateId($invoice->created_at->format('Y-m-d')) }}



-
JasaWebsiteBanjarmasin.com
+ {{ Option::get('agency_city') ? Option::get('agency_city').', ' : '' }} + {{ dateId($invoice->created_at->format('Y-m-d')) }}



+
{{ Option::get('agency_name') }}