refactor estimate & invoice templates

This commit is contained in:
Mohit Panjwani
2021-04-12 14:40:59 +05:30
parent 63f7cdec82
commit cdaa1ff103
6 changed files with 176 additions and 152 deletions

View File

@ -123,7 +123,7 @@
/* margin-top: 18px; */
}
.company-address{
.company-address {
font-size: 10px;
line-height: 15px;
color: #595959;
@ -156,7 +156,7 @@
margin-bottom: 0px;
}
.billing-address{
.billing-address {
font-size: 10px;
line-height: 15px;
color: #595959;
@ -380,15 +380,17 @@
<table width="100%">
<tr>
@if($logo)
<td width="60%" class="header-section-left">
<img class="header-logo" src="{{ $logo }}" alt="Company Logo">
@else
<td width="60%" class="header-section-left" style="padding-top: 0px;">
@if($invoice->user->company)
<h1 class="header-logo"> {{$invoice->user->company->name}} </h1>
@endif
@endif
</td>
<td width="60%" class="header-section-left">
<img class="header-logo" src="{{ $logo }}" alt="Company Logo">
</td>
@else
<td width="60%" class="header-section-left" style="padding-top: 0px;">
@if($invoice->user->company)
<h1 class="header-logo"> {{$invoice->user->company->name}} </h1>
@endif
</td>
@endif
<td width="40%" class="header-section-right invoice-details-container">
<h1>@lang('pdf_invoice_label')</h1>
<h4>{{$invoice->invoice_number}}</h4>
@ -397,43 +399,47 @@
</tr>
</table>
</div>
<hr>
<div class="content-wrapper">
<div class="address-container">
<div class="company-address-container company-address">
{!! $company_address !!}
</div>
@if($shipping_address !== '</br>')
<div class="shipping-address-container shipping-address">
@if($shipping_address)
@lang('pdf_ship_to')
<b>@lang('pdf_ship_to')</b> <br>
{!! $shipping_address !!}
@endif
</div>
@endif
@if($shipping_address !== '</br>')
<div class="billing-address-container billing-address">
@else
<div class="billing-address-container billing-address" style="float:right; margin-right:30px;">
@endif
@if($billing_address)
@lang('pdf_bill_to')
{!! $billing_address !!}
@endif
</div>
<div style="clear: both;"></div>
</div>
@include('app.pdf.invoice.partials.table')
{{-- @include('app.pdf.invoice.partials.notes') --}}
<div class="notes">
@if($notes)
<div class="notes-label">
@lang('pdf_notes')
</div>
{!! $notes !!}
<div class="billing-address-container billing-address" @if($shipping_address === '</br>') style="float:right; margin-right:30px;" @endif>
@if($billing_address)
<b>@lang('pdf_bill_to')</b> <br>
{!! $billing_address !!}
@endif
</div>
<div style="clear: both;"></div>
</div>
@include('app.pdf.invoice.partials.table')
<div class="notes">
@if($notes)
<div class="notes-label">
@lang('pdf_notes')
</div>
{!! $notes !!}
@endif
</div>
</div>
</body>
</html>