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

@ -94,7 +94,7 @@
/* -- Address -- */
.wrapper {
.content-wrapper {
display: block;
margin-top: 60px;
padding-bottom: 20px;
@ -400,13 +400,14 @@
@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($estimate->user->company)
<h1 class="header-logo"> {{$estimate->user->company->name}} </h1>
@endif
@endif
</td>
@else
<td width="60%" class="header-section-left" style="padding-top: 0px;">
@if($estimate->user->company)
<h1 class="header-logo"> {{$estimate->user->company->name}} </h1>
@endif
</td>
@endif
<td width="40%" class="header-section-right estimate-details-container">
<h1>@lang('pdf_estimate_label')</h1>
<h4>{{$estimate->estimate_number}}</h4>
@ -416,41 +417,41 @@
</table>
</div>
<hr>
<div class="wrapper">
<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
<div class="billing-address-container billing-address" @if($shipping_address === '</br>') style="float:right; margin-right:30px;" @endif>
@if($billing_address)
@lang('pdf_bill_to')
<b>@lang('pdf_bill_to')</b> <br>
{!! $billing_address !!}
@endif
</div>
<div style="clear: both;"></div>
</div>
@include('app.pdf.estimate.partials.table')
<div class="notes">
@if($notes)
<div class="notes-label">
@lang('pdf_notes')
</div>
{!! $notes !!}
@endif
</div>
</div>
@include('app.pdf.estimate.partials.table')
<div class="notes">
@if($notes)
<div class="notes-label">
@lang('pdf_notes')
</div>
{!! $notes !!}
@endif
</div>
</div>
</body>
</html>