coding style..
This commit is contained in:
		@@ -297,11 +297,13 @@ class Invoices extends Controller
 | 
				
			|||||||
        
 | 
					        
 | 
				
			||||||
        $html = mb_convert_encoding($view, 'HTML-ENTITIES', 'UTF-8');
 | 
					        $html = mb_convert_encoding($view, 'HTML-ENTITIES', 'UTF-8');
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        $file_name = $this->getDocumentFileName($invoice);
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
        $pdf = app('dompdf.wrapper');
 | 
					        $pdf = app('dompdf.wrapper');
 | 
				
			||||||
        $pdf->loadHTML($html);
 | 
					        $pdf->loadHTML($html);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        //$pdf->setPaper('A4', 'portrait');
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        $file_name = $this->getDocumentFileName($invoice);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        return $pdf->download($file_name);
 | 
					        return $pdf->download($file_name);
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -310,47 +310,3 @@
 | 
				
			|||||||
        </div>
 | 
					        </div>
 | 
				
			||||||
    @endif
 | 
					    @endif
 | 
				
			||||||
@endif
 | 
					@endif
 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
<?php $currency_style  = false; ?>
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@if (app()->getLocale() == "zh-CN" )
 | 
					 | 
				
			||||||
<?php $currency_style  = true; ?>
 | 
					 | 
				
			||||||
@endif
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@if (app()->getLocale() == "ja-JP" )
 | 
					 | 
				
			||||||
<?php $currency_style  = true; ?>
 | 
					 | 
				
			||||||
@endif
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@if (app()->getLocale() == "zh-TW" )
 | 
					 | 
				
			||||||
<?php $currency_style  = true; ?>
 | 
					 | 
				
			||||||
@endif
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@if ($currency_style)
 | 
					 | 
				
			||||||
    @push('stylesheet')
 | 
					 | 
				
			||||||
    <style type="text/css">
 | 
					 | 
				
			||||||
        @font-face {
 | 
					 | 
				
			||||||
            font-family: 'Firefly Sung';
 | 
					 | 
				
			||||||
            font-weight: 'normal';
 | 
					 | 
				
			||||||
            src: url("/public/css/fonts/firefly_sung_normal.ttf") format("truetype");
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
        @font-face {
 | 
					 | 
				
			||||||
            font-family: 'Firefly Sung';
 | 
					 | 
				
			||||||
            font-weight: 'bold';
 | 
					 | 
				
			||||||
            src: url("/public/css/fonts/firefly_sung_normal.ttf") format("truetype");
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
        @font-face {
 | 
					 | 
				
			||||||
            font-family: 'Firefly Sung';
 | 
					 | 
				
			||||||
            font-weight: 'italic';
 | 
					 | 
				
			||||||
            src: url("/public/css/fonts/firefly_sung_normal.ttf") format("truetype");
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
        body {
 | 
					 | 
				
			||||||
            font-family: 'Firefly Sung', sans-serif !important;
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
    </style>
 | 
					 | 
				
			||||||
    @endpush
 | 
					 | 
				
			||||||
@endif
 | 
					 | 
				
			||||||
 
 | 
				
			|||||||
@@ -293,48 +293,3 @@
 | 
				
			|||||||
        </div>
 | 
					        </div>
 | 
				
			||||||
    @endif
 | 
					    @endif
 | 
				
			||||||
@endif
 | 
					@endif
 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
<?php $currency_style  = false; ?>
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@if (app()->getLocale() == "zh-CN" )
 | 
					 | 
				
			||||||
<?php $currency_style  = true; ?>
 | 
					 | 
				
			||||||
@endif
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@if (app()->getLocale() == "ja-JP" )
 | 
					 | 
				
			||||||
<?php $currency_style  = true; ?>
 | 
					 | 
				
			||||||
@endif
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@if (app()->getLocale() == "zh-TW" )
 | 
					 | 
				
			||||||
<?php $currency_style  = true; ?>
 | 
					 | 
				
			||||||
@endif
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@if ($currency_style)
 | 
					 | 
				
			||||||
    @push('stylesheet')
 | 
					 | 
				
			||||||
    <style type="text/css">
 | 
					 | 
				
			||||||
        @font-face {
 | 
					 | 
				
			||||||
            font-family: 'Firefly Sung';
 | 
					 | 
				
			||||||
            font-weight: 'normal';
 | 
					 | 
				
			||||||
            src: url("/public/css/fonts/firefly_sung_normal.ttf") format("truetype");
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
        @font-face {
 | 
					 | 
				
			||||||
            font-family: 'Firefly Sung';
 | 
					 | 
				
			||||||
            font-weight: 'bold';
 | 
					 | 
				
			||||||
            src: url("/public/css/fonts/firefly_sung_normal.ttf") format("truetype");
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
        @font-face {
 | 
					 | 
				
			||||||
            font-family: 'Firefly Sung';
 | 
					 | 
				
			||||||
            font-weight: 'italic';
 | 
					 | 
				
			||||||
            src: url("/public/css/fonts/firefly_sung_normal.ttf") format("truetype");
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
        body {
 | 
					 | 
				
			||||||
            font-family: 'Firefly Sung', sans-serif !important;
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
    </style>
 | 
					 | 
				
			||||||
    @endpush
 | 
					 | 
				
			||||||
@endif
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 
 | 
				
			|||||||
@@ -48,47 +48,3 @@
 | 
				
			|||||||
        @endif
 | 
					        @endif
 | 
				
			||||||
    @stack('total_td_end')
 | 
					    @stack('total_td_end')
 | 
				
			||||||
</tr>
 | 
					</tr>
 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
<?php $currency_style  = false; ?>
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@if (app()->getLocale() == "zh-CN" )
 | 
					 | 
				
			||||||
<?php $currency_style  = true; ?>
 | 
					 | 
				
			||||||
@endif
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@if (app()->getLocale() == "ja-JP" )
 | 
					 | 
				
			||||||
<?php $currency_style  = true; ?>
 | 
					 | 
				
			||||||
@endif
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@if (app()->getLocale() == "zh-TW" )
 | 
					 | 
				
			||||||
<?php $currency_style  = true; ?>
 | 
					 | 
				
			||||||
@endif
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@if ($currency_style)
 | 
					 | 
				
			||||||
    @push('stylesheet')
 | 
					 | 
				
			||||||
    <style type="text/css">
 | 
					 | 
				
			||||||
        @font-face {
 | 
					 | 
				
			||||||
            font-family: 'Firefly Sung';
 | 
					 | 
				
			||||||
            font-weight: 'normal';
 | 
					 | 
				
			||||||
            src: url("/public/css/fonts/firefly_sung_normal.ttf") format("truetype");
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
        @font-face {
 | 
					 | 
				
			||||||
            font-family: 'Firefly Sung';
 | 
					 | 
				
			||||||
            font-weight: 'bold';
 | 
					 | 
				
			||||||
            src: url("/public/css/fonts/firefly_sung_normal.ttf") format("truetype");
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
        @font-face {
 | 
					 | 
				
			||||||
            font-family: 'Firefly Sung';
 | 
					 | 
				
			||||||
            font-weight: 'italic';
 | 
					 | 
				
			||||||
            src: url("/public/css/fonts/firefly_sung_normal.ttf") format("truetype");
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
        body {
 | 
					 | 
				
			||||||
            font-family: 'Firefly Sung', sans-serif !important;
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
    </style>
 | 
					 | 
				
			||||||
    @endpush
 | 
					 | 
				
			||||||
@endif
 | 
					 | 
				
			||||||
 
 | 
				
			|||||||
@@ -276,46 +276,3 @@
 | 
				
			|||||||
        </div>
 | 
					        </div>
 | 
				
			||||||
    @endif
 | 
					    @endif
 | 
				
			||||||
@endif
 | 
					@endif
 | 
				
			||||||
 | 
					 | 
				
			||||||
<?php $currency_style  = false; ?>
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@if (app()->getLocale() == "zh-CN" )
 | 
					 | 
				
			||||||
<?php $currency_style  = true; ?>
 | 
					 | 
				
			||||||
@endif
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@if (app()->getLocale() == "ja-JP" )
 | 
					 | 
				
			||||||
<?php $currency_style  = true; ?>
 | 
					 | 
				
			||||||
@endif
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@if (app()->getLocale() == "zh-TW" )
 | 
					 | 
				
			||||||
<?php $currency_style  = true; ?>
 | 
					 | 
				
			||||||
@endif
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@if ($currency_style)
 | 
					 | 
				
			||||||
    @push('stylesheet')
 | 
					 | 
				
			||||||
    <style type="text/css">
 | 
					 | 
				
			||||||
        @font-face {
 | 
					 | 
				
			||||||
            font-family: 'Firefly Sung';
 | 
					 | 
				
			||||||
            font-weight: 'normal';
 | 
					 | 
				
			||||||
            src: url("/public/css/fonts/firefly_sung_normal.ttf") format("truetype");
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
        @font-face {
 | 
					 | 
				
			||||||
            font-family: 'Firefly Sung';
 | 
					 | 
				
			||||||
            font-weight: 'bold';
 | 
					 | 
				
			||||||
            src: url("/public/css/fonts/firefly_sung_normal.ttf") format("truetype");
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
        @font-face {
 | 
					 | 
				
			||||||
            font-family: 'Firefly Sung';
 | 
					 | 
				
			||||||
            font-weight: 'italic';
 | 
					 | 
				
			||||||
            src: url("/public/css/fonts/firefly_sung_normal.ttf") format("truetype");
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
        body {
 | 
					 | 
				
			||||||
            font-family: 'Firefly Sung', sans-serif !important;
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
    </style>
 | 
					 | 
				
			||||||
    @endpush
 | 
					 | 
				
			||||||
@endif
 | 
					 | 
				
			||||||
 
 | 
				
			|||||||
@@ -16,11 +16,25 @@
 | 
				
			|||||||
    <!-- Css -->
 | 
					    <!-- Css -->
 | 
				
			||||||
    <link rel="stylesheet" href="{{ asset('public/css/print.css?v=' . version('short')) }}" type="text/css">
 | 
					    <link rel="stylesheet" href="{{ asset('public/css/print.css?v=' . version('short')) }}" type="text/css">
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    @if (isset($currency_style) && $currency_style && in_array(app()->getLocale(), ['zh-CN', 'ja-JP', 'zh-TW']))
 | 
				
			||||||
    <style type="text/css">
 | 
					    <style type="text/css">
 | 
				
			||||||
 | 
					        @font-face {
 | 
				
			||||||
 | 
					            font-family: 'Firefly Sung';
 | 
				
			||||||
 | 
					            font-weight: 'normal';
 | 
				
			||||||
 | 
					            src: url('{{ asset("/public/css/fonts/firefly_sung_normal.ttf") }}') format("truetype");
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        * {
 | 
					        * {
 | 
				
			||||||
            font-family: DejaVu Sans, sans-serif;
 | 
					            font-family: 'Firefly Sung', sans-serif !important;
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
    </style>
 | 
					    </style>
 | 
				
			||||||
 | 
					    @else
 | 
				
			||||||
 | 
					    <style type="text/css">
 | 
				
			||||||
 | 
					        * {
 | 
				
			||||||
 | 
					            font-family: DejaVu Sans, sans-serif !important;
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					    </style>
 | 
				
			||||||
 | 
					    @endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    @stack('css')
 | 
					    @stack('css')
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user