From a37e489b513123bae9844968116bee8f5e580dc9 Mon Sep 17 00:00:00 2001 From: batuhanbas Date: Tue, 7 Jan 2020 16:36:09 +0300 Subject: [PATCH] print template pdf problem solved --- public/css/custom.css | 28 -- public/css/print.css | 340 +++++++++++++++++ resources/views/layouts/print.blade.php | 8 +- resources/views/partials/print/head.blade.php | 33 ++ .../sales/invoices/print_classic.blade.php | 334 ++++++++-------- .../sales/invoices/print_default.blade.php | 356 ++++++++---------- .../sales/invoices/print_modern.blade.php | 334 +++++++--------- 7 files changed, 809 insertions(+), 624 deletions(-) create mode 100644 public/css/print.css create mode 100644 resources/views/partials/print/head.blade.php diff --git a/public/css/custom.css b/public/css/custom.css index 2e52c47f5..e553429f1 100644 --- a/public/css/custom.css +++ b/public/css/custom.css @@ -680,34 +680,6 @@ table .align-items-center td span.badge { { width: 147px; } - -/*--------Border Dashed--------*/ -.border-dashed -{ - border-top: 1px dashed #3c3f72 !important; -} -/*--------Border Dashed Finish--------*/ - -.invoice-classic-line -{ - border: 2px solid #3c3f72; - border-radius: 5px; -} - -.invoice-classic-frame -{ - width: 100%; - height:100px; - border: 3px solid #3c3f72; -} - -.invoice-classic-inline-frame -{ - margin: 7px 1%; - width: 98%; - height: 80px; - border: 3px solid #3c3f72; -} /*--------Print Template Finish--------*/ diff --git a/public/css/print.css b/public/css/print.css new file mode 100644 index 000000000..0a61e1e8d --- /dev/null +++ b/public/css/print.css @@ -0,0 +1,340 @@ +@charset "UTF-8"; + +/*! + +========================================================= +* Print Template - Default ------------ Start +========================================================= + +*/ + +body { + margin: 0; + padding: 0; + font-family: Arial, sans-serif; + color: #3c3f72; +} + +table { + width: 100%; +} + +th, td { + padding: 18px; +} + +.row { + font-size: 0; +} + +.mb-1 { + margin-bottom: 8px; +} + +.mt-1 { + margin-top: 8px; +} + +.ml-1 { + margin-left: 8px; +} + +.mt-2 { + margin-top: 16px; +} + +.mt-3 { + margin-top: 24px; +} + +.mt-4 { + margin-top: 32px; +} + +.mt-5 { + margin-top: 40px; +} + +.mt-6 { + margin-top: 48px; +} + +.mt-7 { + margin-top: 56px; +} + +.mt-8 { + margin-top: 64px; +} + +.mt-9 { + margin-top: 72px; +} + +.pb-0 { + padding-bottom: 0; +} + +.pb-1 { + padding-bottom: 8px; +} + +.py-1 { + padding-bottom: 8px; + padding-top: 8px; +} + +.py-2 { + padding-bottom: 16px; + padding-top: 16px; + } + +.pr-2 { + padding-right: 16px; +} + +.pl-2 { + padding-left: 16px; +} + +.col-58 { + display: inline-block; + width: 58%; + vertical-align: top; +} + +.col-42 { + display: inline-block; + width: 42%; + vertical-align: top; +} + +.col-100 { + display: inline-block; + width: 100%; + vertical-align: top; +} + +.border-1 { + border: 1px solid #e5e5e5; +} + +.border-top-1 { + border-top: 1px solid #e5e5e5; +} + +.border-bottom-1 { + border-bottom: 1px solid #e5e5e5; +} + +.border-radius-default { + border-radius: 0.25rem +} + +.text { + color: #3c3f72; + font-size: 16px; +} + +.text-right { + text-align: right; +} + +.text-center { + text-align: center; +} + +.text-white { + color: #ffffff; +} + +.bg-default { + background-color: #3c3f72; +} + +.bg-primary { + background-color: #55588b; +} + +.lines { + border-collapse: collapse; + table-layout: fixed; + border-bottom: 1px solid #e5e5e5; +} + +.lines tbody td { + border-bottom: 1px solid #e5e5e5; +} + +.lines .item { + width: 40%; +} + +.lines .quantity { + width: 20%; + text-align: center; +} + +.lines .price { + width: 20%; + text-align: right; +} + +.lines .total { + width: 20%; + text-align: right; +} + +.d-logo { + padding-top: 35px; + padding-bottom:64.5px; +} + +.d-note { + width: 80%; + background-color: #e5e5e5; +} + +/*! + +========================================================= +* Print Template - Default ------------ Finish +========================================================= + +========================================================= +* Print Template - Classic ------------ Start +========================================================= + +*/ + +.c-logo { + padding-top: 50px; +} + +.c-note { + width: 80%; +} + +.invoice-classic-line +{ + border: 2px solid #3c3f72; +} + +.invoice-classic-frame +{ + width: 90%; + height:70px; + border: 3px solid #3c3f72; +} + +.invoice-classic-inline-frame +{ + margin: 0.3% 1% 0.3% 1%; + width: 95%; + height: 59px; + border: 3px solid #3c3f72; +} + +.col-33 { + display: inline-block; + width: 33%; + vertical-align: top; +} + +.c-lines thead th { + border-top: 1px dashed #e5e5e5; +} + +.c-lines tbody td { + border-top: 1px dashed #e5e5e5; +} + +.c-lines .item { + width: 40%; +} + +.c-lines .quantity { + width: 20%; + text-align: center; +} + +.c-lines .price { + width: 20%; + text-align: right; +} + +.c-lines .total { + width: 20%; + text-align: right; +} + +.border-top-dashed { + border-top: 1px dashed #e5e5e5; +} + +/*! + +========================================================= +* Print Template - Classic ------------ Finish +========================================================= + +========================================================= +* Print Template - Modern ------------ Start +========================================================= + +*/ + +.m-first-column { + padding-top: 35px; + padding-bottom:48px; +} + +.m-logo { + padding-top: 10px; + padding-bottom: -36px; +} + +.m-fc-left { + padding-right: 30px; +} + +.m-fc-right { + padding-left: 170px; + margin-top: -40px; +} + +.m-note { + width: 80%; +} + +.m-lines { + border-collapse: collapse; + table-layout: fixed; +} + +.m-lines .item { + width: 40%; +} + +.m-lines .quantity { + width: 20%; + text-align: center; +} + +.m-lines .price { + width: 20%; + text-align: right; +} + +.m-lines .total { + width: 20%; + text-align: right; +} + +/*! + +========================================================= +* Print Template - Modern ------------ Finish +========================================================= + +*/ \ No newline at end of file diff --git a/resources/views/layouts/print.blade.php b/resources/views/layouts/print.blade.php index 7d4b2e7cb..2352cd606 100644 --- a/resources/views/layouts/print.blade.php +++ b/resources/views/layouts/print.blade.php @@ -1,12 +1,6 @@ - @include('partials.admin.head') - - + @include('partials.print.head') @stack('body_start') diff --git a/resources/views/partials/print/head.blade.php b/resources/views/partials/print/head.blade.php new file mode 100644 index 000000000..a3d2460b9 --- /dev/null +++ b/resources/views/partials/print/head.blade.php @@ -0,0 +1,33 @@ + + @stack('head_start') + + + + + + + @yield('title') - @setting('company.name') + + + + + + + + + + + @stack('css') + + @stack('stylesheet') + + @stack('js') + + @stack('scripts') + + @stack('head_end') + diff --git a/resources/views/sales/invoices/print_classic.blade.php b/resources/views/sales/invoices/print_classic.blade.php index 9702ba666..9df21e6b0 100644 --- a/resources/views/sales/invoices/print_classic.blade.php +++ b/resources/views/sales/invoices/print_classic.blade.php @@ -4,157 +4,159 @@ @section('content')
-
- {{ setting('company.name') }} +
+
+ +
-
-

- {{ setting('company.name') }} -

-

- {!! nl2br(setting('company.address')) !!} -

+
+
+ {{ setting('company.name') }}
-

- @if (setting('company.tax_number')) - {{ trans('general.tax_number') }}: {{ setting('company.tax_number') }} - @endif -

+

{!! nl2br(setting('company.address')) !!}

-

- @if (setting('company.phone')) - {{ setting('company.phone') }} - @endif -

+

+ @if (setting('company.tax_number')) + {{ trans('general.tax_number') }}: {{ setting('company.tax_number') }} + @endif +

-

- {{ setting('company.email') }} -

+

+ @if (setting('company.phone')) + {{ setting('company.phone') }} + @endif +

+ +

{{ setting('company.email') }}

+
-
-
-
-
+
+
+
+
-
-
-
+ +
+
+
@stack('invoice_number_input_start') -

- {{ trans('invoices.invoice_number') }}: +

+ {{ trans('invoices.invoice_number') }}:
{{ $invoice->invoice_number }} -

+
@stack('invoice_number_input_end')
-
-
-
+ +
+
+
-
-
+
+
+
+ {{ trans('invoices.bill_to') }}
+ @stack('name_input_start') + {{ $invoice->contact_name }}
+ @stack('name_input_end') -

{{ trans('invoices.bill_to') }}

- @stack('name_input_start') - {{ $invoice->contact_name }} - @stack('name_input_end') + @stack('address_input_start') +

{!! nl2br($invoice->contact_address) !!}

+ @stack('address_input_end') - @stack('address_input_start') -

- {!! nl2br($invoice->contact_address) !!} -

- @stack('address_input_end') - - @stack('tax_number_input_start') -

- @if ($invoice->contact_tax_number) - {{ trans('general.tax_number') }}: {{ $invoice->contact_tax_number }}
- @endif -

- @stack('tax_number_input_end') - - @stack('phone_input_start') -

- @if ($invoice->contact_phone) - {{ $invoice->contact_phone }} - @endif -

- @stack('phone_input_end') - - @stack('email_start') -

- {{ $invoice->contact_email }} -

- @stack('email_input_end') - -
-
- @stack('order_number_input_start') - @if ($invoice->order_number) + @stack('tax_number_input_start')

- {{ trans('invoices.order_number') }}: - {{ $invoice->order_number }} + @if ($invoice->contact_tax_number) + {{ trans('general.tax_number') }}: {{ $invoice->contact_tax_number }} + @endif

- @endif - @stack('order_number_input_end') + @stack('tax_number_input_end') - @stack('invoiced_at_input_start') -

- {{ trans('invoices.invoice_date') }}: - @date($invoice->invoiced_at) -

- @stack('invoiced_at_input_end') - - @stack('due_at_input_start') -

- {{ trans('invoices.payment_due') }}: - @date($invoice->due_at) -

- @stack('due_at_input_end') - - @foreach ($invoice->totals as $total) - @if ($total->code == 'total') -

- {{ trans($total->name) }}: - @money($total->amount - $invoice->paid, $invoice->currency_code, true) + @stack('phone_input_start') +

+ @if ($invoice->contact_phone) + {{ $invoice->contact_phone }} + @endif

- @endif - @endforeach + @stack('phone_input_end') + + @stack('email_start') +

{{ $invoice->contact_email }}

+ @stack('email_input_end') +
+
+ +
+
+ @stack('order_number_input_start') + @if ($invoice->order_number) +

+ {{ trans('invoices.order_number') }}: + {{ $invoice->order_number }} +

+ @endif + @stack('order_number_input_end') + + @stack('invoiced_at_input_start') +

+ {{ trans('invoices.invoice_date') }}: + @date($invoice->invoiced_at) +

+ @stack('invoiced_at_input_end') + + @stack('due_at_input_start') +

+ {{ trans('invoices.payment_due') }}: + @date($invoice->due_at) +

+ @stack('due_at_input_end') + + @foreach ($invoice->totals as $total) + @if ($total->code == 'total') +

+ {{ trans($total->name) }}: + @money($total->amount - $invoice->paid, $invoice->currency_code, true) +

+ @endif + @endforeach +
-
-
-
- - - +
+
+
+
+ + @stack('name_th_start') - + @stack('name_th_end') @stack('quantity_th_start') - + @stack('quantity_th_end') @stack('price_th_start') - + @stack('price_th_end') @stack('total_th_start') - + @stack('total_th_end') + + @foreach($invoice->items as $item) - + @stack('name_td_start') - + @stack('quantity_td_end') @stack('price_td_start') - + @stack('price_td_end') @stack('total_td_start') - + @stack('total_td_end') @endforeach @@ -181,83 +183,57 @@ -
-
-
+
+
+
@stack('notes_input_start') @if ($invoice->notes) -
{{ trans_choice($text_override['items'], 2) }}{{ trans_choice($text_override['items'], 2) }}{{ trans($text_override['quantity']) }}{{ trans($text_override['quantity']) }}{{ trans($text_override['price']) }}{{ trans($text_override['price']) }}{{ trans('invoices.total') }}{{ trans('invoices.total') }}
+ {{ $item->name }} @if ($item->desc)
{!! $item->desc !!} @@ -163,15 +165,15 @@ @stack('name_td_end') @stack('quantity_td_start') -
{{ $item->quantity }}{{ $item->quantity }}@money($item->price, $invoice->currency_code, true)@money($item->price, $invoice->currency_code, true)@money($item->total, $invoice->currency_code, true)@money($item->total, $invoice->currency_code, true)
- - - - - -
-

{{ trans_choice('general.notes', 2) }}

-

{{ $invoice->notes }}

-
+ {{ trans_choice('general.notes', 2) }}

+
+ {{ $invoice->notes }} +
@endif @stack('notes_input_end')
-
-
- - - @foreach ($invoice->totals as $total) - @if ($total->code != 'total') - @stack($total->code . '_td_start') - - - - - @stack($total->code . '_td_end') - @else - @if ($invoice->paid) - - - - - @endif - @stack('grand_total_td_start') - - - - - @stack('grand_total_td_end') - @endif - @endforeach - -
- {{ trans($total->title) }}: - - @money($total->amount, $invoice->currency_code, true) -
- {{ trans('invoices.paid') }}: - - - @money($invoice->paid, $invoice->currency_code, true) -
- {{ trans($total->name) }}: - - @money($total->amount - $invoice->paid, $invoice->currency_code, true) -
+ +
+
+ @foreach ($invoice->totals as $total) + @if ($total->code != 'total') + @stack($total->code . '_td_start') +
+
+ {{ trans($total->title) }}: + @money($total->amount, $invoice->currency_code, true)

+
+ @stack($total->code . '_td_end') + @else + @if ($invoice->paid) +
+
+ {{ trans('invoices.paid') }}: + - @money($invoice->paid, $invoice->currency_code, true)

+
+ @endif + @stack('grand_total_td_start') +
+
+ {{ trans($total->name) }}: + @money($total->amount - $invoice->paid, $invoice->currency_code, true) +
+ @stack('grand_total_td_end') + @endif + @endforeach
@if ($invoice->footer) -
-
-
- - - - - - -
- {!! $invoice->footer !!} -
+
+
+
+ {!! $invoice->footer !!}
diff --git a/resources/views/sales/invoices/print_default.blade.php b/resources/views/sales/invoices/print_default.blade.php index ff60cf586..90a83db89 100644 --- a/resources/views/sales/invoices/print_default.blade.php +++ b/resources/views/sales/invoices/print_default.blade.php @@ -3,173 +3,141 @@ @section('title', trans_choice('general.invoices', 1) . ': ' . $invoice->invoice_number) @section('content') -
-
-
- - - - - - -
- {{ setting('company.name') }} -
+
+
+
+
+ +
+
-
-
-
- - - - - - - - - - - - - - - - - - -
- {{ setting('company.name') }} -
- {!! nl2br(setting('company.address')) !!} -
- @if (setting('company.tax_number')) - {{ trans('general.tax_number') }}: {{ setting('company.tax_number') }} - @endif -
- @if (setting('company.phone')) - {{ setting('company.phone') }} - @endif -
- {{ setting('company.email') }} -
+ +
+
+
+ {{ setting('company.name') }}
+

{!! nl2br(setting('company.address')) !!}

+ +

+ @if (setting('company.tax_number')) + {{ trans('general.tax_number') }}: {{ setting('company.tax_number') }} + @endif +

+ +

+ @if (setting('company.phone')) + {{ setting('company.phone') }} + @endif +

+ +

{{ setting('company.email') }}

+
+
-
-
- - - - - - - - - - - - - - - - - - -
- {{ trans('invoices.bill_to') }} - @stack('name_input_start') - {{ $invoice->contact_name }} - @stack('name_input_end') -
- @stack('address_input_start') - {!! nl2br($invoice->contact_address) !!} - @stack('address_input_end') -
- @stack('tax_number_input_start') - @if ($invoice->contact_tax_number) - {{ trans('general.tax_number') }}: {{ $invoice->contact_tax_number }}
- @endif - @stack('tax_number_input_end') -
- @stack('phone_input_start') - @if ($invoice->contact_phone) - {{ $invoice->contact_phone }} - @endif - @stack('phone_input_end') -
- @stack('email_start') - {{ $invoice->contact_email }} - @stack('email_input_end') -
+
+
+
+ {{ trans('invoices.bill_to') }}
+ @stack('name_input_start') + {{ $invoice->contact_name }}
+ @stack('name_input_end') + + @stack('address_input_start') +

{!! nl2br($invoice->contact_address) !!}

+ @stack('address_input_end') + + @stack('tax_number_input_start') +

+ @if ($invoice->contact_tax_number) + {{ trans('general.tax_number') }}: {{ $invoice->contact_tax_number }} + @endif +

+ @stack('tax_number_input_end') + + @stack('phone_input_start') +

+ @if ($invoice->contact_phone) + {{ $invoice->contact_phone }} + @endif +

+ @stack('phone_input_end') + + @stack('email_start') +

+ {{ $invoice->contact_email }} +

+ @stack('email_input_end')
-
-
- - - @stack('invoice_number_input_start') - - - - - @stack('invoice_number_input_end') - @stack('order_number_input_start') - @if ($invoice->order_number) - - - - - @endif - @stack('order_number_input_end') +
+
+
+ @stack('invoice_number_input_start') + + {{ trans('invoices.invoice_number') }}: + + {{ $invoice->invoice_number }}

+ @stack('invoice_number_input_end') - @stack('invoiced_at_input_start') -
- - - - @stack('invoiced_at_input_end') + @stack('order_number_input_start') + @if ($invoice->order_number) + + {{ trans('invoices.order_number') }}: + + {{ $invoice->order_number }}

+ @endif + @stack('order_number_input_end') - @stack('due_at_input_start') - - - - - @stack('due_at_input_end') - -
{{ trans('invoices.invoice_number') }}:{{ $invoice->invoice_number }}
{{ trans('invoices.order_number') }}:{{ $invoice->order_number }}
{{ trans('invoices.invoice_date') }}:@date($invoice->invoiced_at)
{{ trans('invoices.payment_due') }}:@date($invoice->due_at)
+ @stack('invoiced_at_input_start') + + {{ trans('invoices.invoice_date') }}: + + @date($invoice->invoiced_at)

+ @stack('invoiced_at_input_end') + + @stack('due_at_input_start') + + {{ trans('invoices.payment_due') }}: + + @date($invoice->due_at)

+ @stack('due_at_input_end')
-
-
-
- - - +
+
+
+
+ + @stack('name_th_start') - + @stack('name_th_end') @stack('quantity_th_start') - + @stack('quantity_th_end') @stack('price_th_start') - + @stack('price_th_end') @stack('total_th_start') - + @stack('total_th_end') + + @foreach($invoice->items as $item) - + @stack('name_td_start') - + @stack('quantity_td_end') @stack('price_td_start') - + @stack('price_td_end') @stack('total_td_start') - + @stack('total_td_end') @endforeach @@ -196,83 +164,57 @@ -
-
-
+
+
+
@stack('notes_input_start') @if ($invoice->notes) -
{{ trans_choice($text_override['items'], 2) }}{{ trans_choice($text_override['items'], 2) }}{{ trans($text_override['quantity']) }}{{ trans($text_override['quantity']) }}{{ trans($text_override['price']) }}{{ trans($text_override['price']) }}{{ trans('invoices.total') }}{{ trans('invoices.total') }}
+ {{ $item->name }} @if ($item->desc)
{!! $item->desc !!} @@ -178,15 +146,15 @@ @stack('name_td_end') @stack('quantity_td_start') -
{{ $item->quantity }}{{ $item->quantity }}@money($item->price, $invoice->currency_code, true)@money($item->price, $invoice->currency_code, true)@money($item->total, $invoice->currency_code, true)@money($item->total, $invoice->currency_code, true)
- - - - - -
-

{{ trans_choice('general.notes', 2) }}

-

{{ $invoice->notes }}

-
+ {{ trans_choice('general.notes', 2) }}

+
+ {{ $invoice->notes }} +
@endif @stack('notes_input_end')
-
-
- - - @foreach ($invoice->totals as $total) - @if ($total->code != 'total') - @stack($total->code . '_td_start') - - - - - @stack($total->code . '_td_end') - @else - @if ($invoice->paid) - - - - - @endif - @stack('grand_total_td_start') - - - - - @stack('grand_total_td_end') - @endif - @endforeach - -
- {{ trans($total->title) }}: - - @money($total->amount, $invoice->currency_code, true) -
- {{ trans('invoices.paid') }}: - - - @money($invoice->paid, $invoice->currency_code, true) -
- {{ trans($total->name) }}: - - @money($total->amount - $invoice->paid, $invoice->currency_code, true) -
+ +
+
+ @foreach ($invoice->totals as $total) + @if ($total->code != 'total') + @stack($total->code . '_td_start') +
+
+ {{ trans($total->title) }}: + @money($total->amount, $invoice->currency_code, true)

+
+ @stack($total->code . '_td_end') + @else + @if ($invoice->paid) +
+
+ {{ trans('invoices.paid') }}: + - @money($invoice->paid, $invoice->currency_code, true)

+
+ @endif + @stack('grand_total_td_start') +
+
+ {{ trans($total->name) }}: + @money($total->amount - $invoice->paid, $invoice->currency_code, true) +
+ @stack('grand_total_td_end') + @endif + @endforeach
@if ($invoice->footer) -
-
-
- - - - - - -
- {!! $invoice->footer !!} -
+
+
+
+ {!! $invoice->footer !!}
diff --git a/resources/views/sales/invoices/print_modern.blade.php b/resources/views/sales/invoices/print_modern.blade.php index b0eaeccba..d763e9fd5 100644 --- a/resources/views/sales/invoices/print_modern.blade.php +++ b/resources/views/sales/invoices/print_modern.blade.php @@ -3,186 +3,149 @@ @section('title', trans_choice('general.invoices', 1) . ': ' . $invoice->invoice_number) @section('content') -
-
-
- - - - - - -
- {{ setting('company.name') }} -

{{ setting('company.name') }}

-
+
+
+
+ +
+
+ {{ setting('company.name') }}
-
-
- - - - - - - - - - - - - - - -
- {!! nl2br(setting('company.address')) !!} -
- @if (setting('company.tax_number')) - {{ trans('general.tax_number') }}: {{ setting('company.tax_number') }} - @endif -
- @if (setting('company.phone')) - {{ setting('company.phone') }} - @endif -
- {{ setting('company.email') }} -
+ +
+
+
+ {!! nl2br(setting('company.address')) !!}

+ + + @if (setting('company.tax_number')) + {{ trans('general.tax_number') }}: {{ setting('company.tax_number') }} + @endif +

+ + + @if (setting('company.phone')) + {{ setting('company.phone') }} + @endif +

+ + {{ setting('company.email') }}

-
-
- - - - - - - - - - - - - - - - - - -
-

{{ trans('invoices.bill_to') }}

- @stack('name_input_start') - {{ $invoice->contact_name }} - @stack('name_input_end') -
- @stack('address_input_start') - {!! nl2br($invoice->contact_address) !!} - @stack('address_input_end') -
- @stack('tax_number_input_start') - @if ($invoice->contact_tax_number) - {{ trans('general.tax_number') }}: {{ $invoice->contact_tax_number }}
- @endif - @stack('tax_number_input_end') -
- @stack('phone_input_start') - @if ($invoice->contact_phone) - {{ $invoice->contact_phone }} - @endif - @stack('phone_input_end') -
- @stack('email_start') - {{ $invoice->contact_email }} - @stack('email_input_end') -
+
+
+
+ {{ trans('invoices.bill_to') }}
+ @stack('name_input_start') + {{ $invoice->contact_name }}

+ @stack('name_input_end') + + @stack('address_input_start') + {!! nl2br($invoice->contact_address) !!}

+ @stack('address_input_end') + + @stack('tax_number_input_start') + @if ($invoice->contact_tax_number) + {{ trans('general.tax_number') }}: {{ $invoice->contact_tax_number }}

+ @endif + @stack('tax_number_input_end') + + @stack('phone_input_start') + @if ($invoice->contact_phone) + {{ $invoice->contact_phone }}

+ @endif + @stack('phone_input_end') + + @stack('email_start') + {{ $invoice->contact_email }}

+ @stack('email_input_end')
-
-
- - - @stack('invoice_number_input_start') - - - - - @stack('invoice_number_input_end') - @stack('order_number_input_start') - @if ($invoice->order_number) - - - - - @endif - @stack('order_number_input_end') +
+
+ @stack('order_number_input_start') + @if ($invoice->order_number) +

+ {{ trans('invoices.order_number') }}: + {{ $invoice->order_number }} +

+ @endif + @stack('order_number_input_end') - @stack('invoiced_at_input_start') -
- - - - @stack('invoiced_at_input_end') + @stack('invoice_number_input_start') +

+ {{ trans('invoices.invoice_number') }}: + {{ $invoice->invoice_number }} +

+ @stack('invoice_number_input_end') - @stack('due_at_input_start') - - - - - @stack('due_at_input_end') - -
{{ trans('invoices.invoice_number') }}:{{ $invoice->invoice_number }}
{{ trans('invoices.order_number') }}:{{ $invoice->order_number }}
{{ trans('invoices.invoice_date') }}:@date($invoice->invoiced_at)
{{ trans('invoices.payment_due') }}:@date($invoice->due_at)
+ @stack('invoiced_at_input_start') +

+ {{ trans('invoices.invoice_date') }}: + @date($invoice->invoiced_at) +

+ @stack('invoiced_at_input_end') + + @stack('due_at_input_start') +

+ {{ trans('invoices.payment_due') }}: + @date($invoice->due_at) +

+ @stack('due_at_input_end')
-
-
-
- - - +
+
+
+
+ + @stack('name_th_start') - + @stack('name_th_end') @stack('quantity_th_start') - + @stack('quantity_th_end') @stack('price_th_start') - + @stack('price_th_end') @stack('total_th_start') - + @stack('total_th_end') + + @foreach($invoice->items as $item) - + @stack('name_td_start') - @stack('name_td_end') @stack('quantity_td_start') - + @stack('quantity_td_end') @stack('price_td_start') - + @stack('price_td_end') @stack('total_td_start') - + @stack('total_td_end') @endforeach @@ -192,83 +155,48 @@ -
-
-
+
+
+
@stack('notes_input_start') @if ($invoice->notes) -
{{ trans_choice($text_override['items'], 2) }}{{ trans_choice($text_override['items'], 2) }}{{ trans($text_override['quantity']) }}{{ trans($text_override['quantity']) }}{{ trans($text_override['price']) }}{{ trans($text_override['price']) }}{{ trans('invoices.total') }}{{ trans('invoices.total') }}
+ {{ $item->name }} @if ($item->desc) -
{!! $item->desc !!} + {!! $item->desc !!} @endif
{{ $item->quantity }}{{ $item->quantity }}@money($item->price, $invoice->currency_code, true)@money($item->price, $invoice->currency_code, true)@money($item->total, $invoice->currency_code, true)@money($item->total, $invoice->currency_code, true)
- - - - - -
-

{{ trans_choice('general.notes', 2) }}

-

{{ $invoice->notes }}

-
+ {{ trans_choice('general.notes', 2) }}

+
+ {{ $invoice->notes }} +
@endif @stack('notes_input_end')
-
-
- - - @foreach ($invoice->totals as $total) - @if ($total->code != 'total') - @stack($total->code . '_td_start') - - - - - @stack($total->code . '_td_end') - @else - @if ($invoice->paid) - - - - - @endif - @stack('grand_total_td_start') - - - - - @stack('grand_total_td_end') - @endif - @endforeach - -
- {{ trans($total->title) }}: - - @money($total->amount, $invoice->currency_code, true) -
- {{ trans('invoices.paid') }}: - - - @money($invoice->paid, $invoice->currency_code, true) -
- {{ trans($total->name) }}: - - @money($total->amount - $invoice->paid, $invoice->currency_code, true) -
+ +
+
+ @foreach ($invoice->totals as $total) + @if ($total->code != 'total') + @stack($total->code . '_td_start') + {{ trans($total->title) }}: + @money($total->amount, $invoice->currency_code, true)

+ @stack($total->code . '_td_end') + @else + @if ($invoice->paid) + {{ trans('invoices.paid') }}: + - @money($invoice->paid, $invoice->currency_code, true)
+ @endif + @stack('grand_total_td_start') + {{ trans($total->name) }}: + @money($total->amount - $invoice->paid, $invoice->currency_code, true) + @stack('grand_total_td_end') + @endif + @endforeach
@if ($invoice->footer) -
-
-
- - - - - - -
- {!! $invoice->footer !!} -
+
+
+
+ {!! $invoice->footer !!}