mirror of
				https://github.com/crater-invoice/crater.git
				synced 2025-10-31 05:31:10 -04:00 
			
		
		
		
	Merge branch 'template-refactor' into 'master'
Template refactor See merge request mohit.panjvani/crater-web!232
This commit is contained in:
		| @ -1,10 +1,12 @@ | ||||
| <!DOCTYPE html> | ||||
| <html> | ||||
|  | ||||
| <head> | ||||
|     <title>Estimate</title> | ||||
|     <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> | ||||
|     <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | ||||
|  | ||||
|     <style type="text/css"> | ||||
|         /* -- Base -- */ | ||||
|         body { | ||||
|             font-family: "DejaVu Sans"; | ||||
|         } | ||||
| @ -12,31 +14,22 @@ | ||||
|         html { | ||||
|             margin: 0px; | ||||
|             padding: 0px; | ||||
|             margin-top: 50px; | ||||
|         } | ||||
|  | ||||
|         table { | ||||
|             border-collapse: collapse; | ||||
|         } | ||||
|  | ||||
|         .header-line { | ||||
|             color:rgba(0, 0, 0, 0.2); | ||||
|             position: absolute; | ||||
|             top: 90px; | ||||
|             left: 0px; | ||||
|             width: 100%; | ||||
|         } | ||||
|  | ||||
|         hr { | ||||
|             margin: 0 30px 0 30px; | ||||
|             color:rgba(0, 0, 0, 0.2); | ||||
|             color: rgba(0, 0, 0, 0.2); | ||||
|             border: 0.5px solid #EAF1FB; | ||||
|         } | ||||
|  | ||||
|         .header-center { | ||||
|             text-align: center | ||||
|         } | ||||
|         /* -- Header -- */ | ||||
|  | ||||
|         .header-table { | ||||
|         .header-container { | ||||
|             position: absolute; | ||||
|             width: 100%; | ||||
|             height: 90px; | ||||
| @ -44,6 +37,14 @@ | ||||
|             top: -50px; | ||||
|         } | ||||
|  | ||||
|         .header-bottom-divider { | ||||
|             color: rgba(0, 0, 0, 0.2); | ||||
|             position: absolute; | ||||
|             top: 90px; | ||||
|             left: 0px; | ||||
|             width: 100%; | ||||
|         } | ||||
|  | ||||
|         .header-logo { | ||||
|             height: 50px; | ||||
|             margin-top: 20px; | ||||
| @ -51,122 +52,95 @@ | ||||
|             color: #817AE3; | ||||
|         } | ||||
|  | ||||
|         .inv-flex{ | ||||
|             display:flex; | ||||
|         } | ||||
|  | ||||
|         .inv-data{ | ||||
|             text-align:right; | ||||
|             margin-right:120px; | ||||
|         } | ||||
|         .inv-value{ | ||||
|             text-align:left; | ||||
|             margin-left:160px; | ||||
|         } | ||||
|         .header { | ||||
|             font-size: 20px; | ||||
|             color: rgba(0, 0, 0, 0.7); | ||||
|         } | ||||
|  | ||||
|         .TextColor1 { | ||||
|             font-size: 16px; | ||||
|             color: rgba(0, 0, 0, 0.5); | ||||
|         } | ||||
|  | ||||
|         @page { | ||||
|             margin-top: 60px !important; | ||||
|         } | ||||
|  | ||||
|         .wrapper { | ||||
|            display: block; | ||||
|            margin-top: 0px; | ||||
|            padding-top: 16px; | ||||
|            padding-bottom: 20px; | ||||
|             display: block; | ||||
|             margin-top: 0px; | ||||
|             padding-top: 16px; | ||||
|             padding-bottom: 20px; | ||||
|         } | ||||
|  | ||||
|         .address { | ||||
|             /* display: inline-block; */ | ||||
|             padding-top: 30px | ||||
|         /* -- Company Details -- */ | ||||
|  | ||||
|         .company-details-container { | ||||
|             padding-top: 30px; | ||||
|         } | ||||
|  | ||||
|         .company { | ||||
|         .company-address-container { | ||||
|             float: left; | ||||
|             padding-left: 30px; | ||||
|             font-weight: normal; | ||||
|             display: inline; | ||||
|             float:left; | ||||
|             width:30%; | ||||
|             width: 30%; | ||||
|             text-transform: capitalize; | ||||
|             margin-bottom: 2px; | ||||
|         } | ||||
|  | ||||
|         .company h1 { | ||||
|             font-style: normal; | ||||
|             font-weight: normal; | ||||
|         .company-address-container { | ||||
|             padding-left: 30px; | ||||
|             float: left; | ||||
|             width: 30%; | ||||
|             text-transform: capitalize; | ||||
|             margin-bottom: 2px; | ||||
|         } | ||||
|  | ||||
|         .company-address-container h1 { | ||||
|             font-size: 15px; | ||||
|             line-height: 22px; | ||||
|             letter-spacing: 0.05em; | ||||
|             margin-bottom: 0px; | ||||
|             margin-top: 10px; | ||||
|         } | ||||
|  | ||||
|         .company-add { | ||||
|         .company-address { | ||||
|             margin-top: 2px; | ||||
|             text-align: left; | ||||
|             font-style: normal; | ||||
|             font-weight: normal; | ||||
|             font-size: 12px; | ||||
|             line-height: 15px; | ||||
|             color: #595959; | ||||
|         } | ||||
|  | ||||
|         .job-add { | ||||
|             /* display: inline; */ | ||||
|         .estimate-details-container { | ||||
|             float: right; | ||||
|             padding: 10px 30px 0 0; | ||||
|         } | ||||
|         .amount-due { | ||||
|             background-color: #f2f2f2; | ||||
|         } | ||||
|  | ||||
|         .textRight { | ||||
|             text-align: right; | ||||
|         } | ||||
|  | ||||
|         .textLeft { | ||||
|             text-align: left; | ||||
|         } | ||||
|  | ||||
|         .textStyle1 { | ||||
|             font-style: normal; | ||||
|             font-weight: normal; | ||||
|         .attribute-label { | ||||
|             font-size: 12px; | ||||
|             line-height: 18px; | ||||
|             padding-right: 40px; | ||||
|             text-align: left; | ||||
|             color: #55547A | ||||
|         } | ||||
|  | ||||
|         .textStyle2 { | ||||
|             font-style: normal; | ||||
|             font-weight: normal; | ||||
|         .attribute-value { | ||||
|             font-size: 12px; | ||||
|             line-height: 18px; | ||||
|             text-align: right; | ||||
|         } | ||||
|         .bill-add { | ||||
|             width:45%; | ||||
|  | ||||
|         /* -- Customer Address -- */ | ||||
|  | ||||
|         .customer-address-container { | ||||
|             width: 45%; | ||||
|             padding: 0px 0 0 0px; | ||||
|         } | ||||
|  | ||||
|         /* -------------------------- */ | ||||
|         /* shipping style */ | ||||
|         /* -- Shipping -- */ | ||||
|  | ||||
|         .ship-address-container { | ||||
|         .shipping-address-container { | ||||
|             float: right; | ||||
|             padding-left: 30px; | ||||
|         } | ||||
|  | ||||
|         .ship-to { | ||||
|             font-style: normal; | ||||
|             font-weight: normal; | ||||
|         .shipping-address-container--left { | ||||
|             float: left; | ||||
|             padding-left: 0px; | ||||
|         } | ||||
|  | ||||
|         .shipping-address-label { | ||||
|             font-size: 12px; | ||||
|             line-height: 18px; | ||||
|             padding: 0px; | ||||
| @ -174,18 +148,15 @@ | ||||
|             margin-bottom: 0px; | ||||
|         } | ||||
|  | ||||
|         .ship-user-name { | ||||
|             max-width: 250px | ||||
|             font-style: normal; | ||||
|             font-weight: normal; | ||||
|         .shipping-address-name { | ||||
|             max-width: 160px; | ||||
|             font-size: 15px; | ||||
|             line-height: 22px; | ||||
|             padding: 0px; | ||||
|             margin: 0px; | ||||
|         } | ||||
|         .ship-user-address { | ||||
|             font-style: normal; | ||||
|             font-weight: normal; | ||||
|  | ||||
|         .shipping-address { | ||||
|             font-size: 10px; | ||||
|             line-height: 15px; | ||||
|             color: #595959; | ||||
| @ -193,27 +164,15 @@ | ||||
|             margin: 0px; | ||||
|             width: 160px; | ||||
|         } | ||||
|         .ship-user-phone { | ||||
|             font-style: normal; | ||||
|             font-weight: normal; | ||||
|             font-size: 10px; | ||||
|             line-height: 15px; | ||||
|             color: #595959; | ||||
|             padding: 0px; | ||||
|             margin: 0px; | ||||
|         } | ||||
|  | ||||
|         /* -------------------------- */ | ||||
|         /* billing style */ | ||||
|         /* -- Billing -- */ | ||||
|  | ||||
|         .bill-address-container { | ||||
|         .billing-address-container { | ||||
|             float: left; | ||||
|             padding-left: 30px; | ||||
|         } | ||||
|  | ||||
|         .bill-to { | ||||
|             font-style: normal; | ||||
|             font-weight: normal; | ||||
|         .billing-address-label { | ||||
|             font-size: 12px; | ||||
|             line-height: 18px; | ||||
|             padding: 0px; | ||||
| @ -221,19 +180,15 @@ | ||||
|             margin-bottom: 0px; | ||||
|         } | ||||
|  | ||||
|         .bill-user-name { | ||||
|             max-width: 250px | ||||
|             font-style: normal; | ||||
|             font-weight: normal; | ||||
|         .billing-address-name { | ||||
|             max-width: 160px; | ||||
|             font-size: 15px; | ||||
|             line-height: 22px; | ||||
|             padding: 0px; | ||||
|             margin: 0px; | ||||
|         } | ||||
|  | ||||
|         .bill-user-address { | ||||
|             font-style: normal; | ||||
|             font-weight: normal; | ||||
|         .billing-address { | ||||
|             font-size: 10px; | ||||
|             line-height: 15px; | ||||
|             color: #595959; | ||||
| @ -242,28 +197,20 @@ | ||||
|             width: 160px; | ||||
|         } | ||||
|  | ||||
|         .bill-user-phone { | ||||
|             font-style: normal; | ||||
|             font-weight: normal; | ||||
|             font-size: 10px; | ||||
|             line-height: 15px; | ||||
|             color: #595959; | ||||
|             padding: 0px; | ||||
|             margin: 0px; | ||||
|         } | ||||
|         /* -- Items Table -- */ | ||||
|  | ||||
|         .table2 { | ||||
|         .items-table { | ||||
|             margin-top: 35px; | ||||
|             padding: 0px 30px 10px 30px; | ||||
|             page-break-before: avoid; | ||||
|             page-break-after: auto; | ||||
|         } | ||||
|  | ||||
|         .table2 hr { | ||||
|             height:0.1px; | ||||
|         .items-table hr { | ||||
|             height: 0.1px; | ||||
|         } | ||||
|  | ||||
|         .ItemTableHeader { | ||||
|         .item-table-heading { | ||||
|             font-size: 13.5; | ||||
|             text-align: center; | ||||
|             color: rgba(0, 0, 0, 0.85); | ||||
| @ -271,85 +218,86 @@ | ||||
|             padding-bottom: 10px; | ||||
|         } | ||||
|  | ||||
|         tr.main-table-header th { | ||||
|         tr.item-table-heading-row th { | ||||
|             border-bottom: 0.620315px solid #E8E8E8; | ||||
|             font-style: normal; | ||||
|             font-weight: normal; | ||||
|             font-size: 12px; | ||||
|             line-height: 18px; | ||||
|         } | ||||
|  | ||||
|         .main-table-header { | ||||
|         .item-table-heading-row { | ||||
|             margin-bottom: 10px; | ||||
|         } | ||||
|  | ||||
|         tr.item-details td { | ||||
|             font-style: normal; | ||||
|             font-weight: normal; | ||||
|         tr.item-row td { | ||||
|             font-size: 12px; | ||||
|             line-height: 18px; | ||||
|         } | ||||
|  | ||||
|         .items { | ||||
|         .item-cell { | ||||
|             font-size: 13; | ||||
|             color: rgba(0, 0, 0, 0.6); | ||||
|             color: #040405; | ||||
|             text-align: center; | ||||
|             padding: 5px; | ||||
|             padding-top: 10px; | ||||
|         } | ||||
|  | ||||
|         .padd8 { | ||||
|             padding-top: 8px; | ||||
|             padding-bottom: 8px; | ||||
|         } | ||||
|  | ||||
|         .padd2 { | ||||
|             padding-top: 2px; | ||||
|             padding-bottom: 2px; | ||||
|         } | ||||
|         .table3 { | ||||
|             border-top: none; | ||||
|             box-sizing: border-box; | ||||
|             width: 630px; | ||||
|             page-break-inside: avoid; | ||||
|             page-break-before: auto; | ||||
|             page-break-after: auto; | ||||
|  | ||||
|         } | ||||
|  | ||||
|         .total-border-left { | ||||
|             border: 1px solid #E8E8E8!important; | ||||
|             border-right: 0px !important; | ||||
|             padding-top: 0px; | ||||
|             padding:8px !important; | ||||
|         } | ||||
|         .total-border-right { | ||||
|             border: 1px solid #E8E8E8!important; | ||||
|             border-left: 0px !important; | ||||
|             padding-top: 0px; | ||||
|             padding:8px !important; | ||||
|  | ||||
|         } | ||||
|         .inv-item { | ||||
|             border-color: #d9d9d9; | ||||
|         } | ||||
|  | ||||
|         .no-border { | ||||
|             border: none; | ||||
|         .item-description { | ||||
|             color: #595959; | ||||
|             font-size: 9px; | ||||
|             line-height: 12px; | ||||
|         } | ||||
|  | ||||
|         .desc { | ||||
|             font-weight: 100; | ||||
|             text-align: justify; | ||||
|             font-size: 10px; | ||||
|             margin-bottom: 15px; | ||||
|             margin-top:7px; | ||||
|             color:rgba(0, 0, 0, 0.85); | ||||
|         /* -- Total Display Table -- */ | ||||
|  | ||||
|         .total-display-container { | ||||
|             padding: 0 25px; | ||||
|         } | ||||
|  | ||||
|         .total-display-table { | ||||
|             border-top: none; | ||||
|             box-sizing: border-box; | ||||
|             page-break-inside: avoid; | ||||
|             page-break-before: auto; | ||||
|             page-break-after: auto; | ||||
|             margin-left: 500px; | ||||
|             margin-top: 20px; | ||||
|         } | ||||
|  | ||||
|         .total-table-attribute-label { | ||||
|             font-size: 12px; | ||||
|             color: #55547A; | ||||
|             text-align: left; | ||||
|             padding-left: 10px; | ||||
|         } | ||||
|  | ||||
|         .total-table-attribute-value { | ||||
|             font-weight: bold; | ||||
|             text-align: right; | ||||
|             font-size: 12px; | ||||
|             color: #040405; | ||||
|             padding-right: 10px; | ||||
|             padding-top: 2px; | ||||
|             padding-bottom: 2px; | ||||
|         } | ||||
|  | ||||
|         .total-border-left { | ||||
|             border: 1px solid #E8E8E8 !important; | ||||
|             border-right: 0px !important; | ||||
|             padding-top: 0px; | ||||
|             padding: 8px !important; | ||||
|         } | ||||
|  | ||||
|         .total-border-right { | ||||
|             border: 1px solid #E8E8E8 !important; | ||||
|             border-left: 0px !important; | ||||
|             padding-top: 0px; | ||||
|             padding: 8px !important; | ||||
|         } | ||||
|  | ||||
|         /* -- Notes -- */ | ||||
|  | ||||
|         .notes { | ||||
|             font-style: normal; | ||||
|             font-weight: 300; | ||||
|             font-size: 12px; | ||||
|             color: #595959; | ||||
|             margin-top: 15px; | ||||
| @ -360,8 +308,6 @@ | ||||
|         } | ||||
|  | ||||
|         .notes-label { | ||||
|             font-style: normal; | ||||
|             font-weight: normal; | ||||
|             font-size: 15px; | ||||
|             line-height: 22px; | ||||
|             letter-spacing: 0.05em; | ||||
| @ -371,65 +317,122 @@ | ||||
|             padding-bottom: 10px; | ||||
|         } | ||||
|  | ||||
|         /* -- Helpers -- */ | ||||
|  | ||||
|         .text-primary { | ||||
|             color: #5851DB; | ||||
|         } | ||||
|  | ||||
|         .text-center { | ||||
|             text-align: center | ||||
|         } | ||||
|  | ||||
|         table .text-left { | ||||
|             text-align: left; | ||||
|         } | ||||
|  | ||||
|         table .text-right { | ||||
|             text-align: right; | ||||
|         } | ||||
|  | ||||
|         .border-0 { | ||||
|             border: none; | ||||
|         } | ||||
|  | ||||
|         .py-2 { | ||||
|             padding-top: 2px; | ||||
|             padding-bottom: 2px; | ||||
|         } | ||||
|  | ||||
|         .py-8 { | ||||
|             padding-top: 8px; | ||||
|             padding-bottom: 8px; | ||||
|         } | ||||
|  | ||||
|         .py-3 { | ||||
|             padding: 3px 0; | ||||
|         } | ||||
|  | ||||
|         .pr-20 { | ||||
|             padding-right: 20px; | ||||
|         } | ||||
|  | ||||
|         .pr-10 { | ||||
|             padding-right: 10px; | ||||
|         } | ||||
|  | ||||
|         .pl-20 { | ||||
|             padding-left: 20px; | ||||
|         } | ||||
|  | ||||
|         .pl-10 { | ||||
|             padding-left: 10px; | ||||
|         } | ||||
|  | ||||
|         .pl-0 { | ||||
|             padding-left: 0; | ||||
|         } | ||||
|     </style> | ||||
| </head> | ||||
|  | ||||
| <body> | ||||
|     <div class="header-table"> | ||||
|     <div class="header-container"> | ||||
|         <table width="100%"> | ||||
|             <tr> | ||||
|                 <td class="header-center"> | ||||
|                 <td class="text-center"> | ||||
|                     @if($logo) | ||||
|                         <img class="header-logo" src="{{ $logo }}" alt="Company Logo"> | ||||
|                     <img class="header-logo" src="{{ $logo }}" alt="Company Logo"> | ||||
|                     @else | ||||
|                         @if($estimate->user->company) | ||||
|                         <h2 class="header-logo"> {{$estimate->user->company->name}} </h2> | ||||
|                         @endif | ||||
|                     @if($estimate->user->company) | ||||
|                     <h2 class="header-logo"> {{$estimate->user->company->name}} </h2> | ||||
|                     @endif | ||||
|                     @endif | ||||
|                 </td> | ||||
|             </tr> | ||||
|         </table> | ||||
|         <hr class="header-line" /> | ||||
|         <hr class="header-bottom-divider" /> | ||||
|     </div> | ||||
|     <div class="wrapper"> | ||||
|         <div class="address"> | ||||
|             <div class="company"> | ||||
|         <div class="company-details-container"> | ||||
|             <div class="company-address-container"> | ||||
|                 @include('app.pdf.estimate.partials.company-address') | ||||
|             </div> | ||||
|             <div class="job-add"> | ||||
|                 <table> | ||||
|             <div class="estimate-details-container"> | ||||
|                 <table class="estimate-details-table"> | ||||
|                     <tr> | ||||
|                         <td class="textStyle1" style="text-align: left; color: #55547A">Estimate Number</td> | ||||
|                         <td class="textStyle2">  {{$estimate->estimate_number}}</td> | ||||
|                         <td class="attribute-label">Estimate Number</td> | ||||
|                         <td class="attribute-value">  {{$estimate->estimate_number}}</td> | ||||
|                     </tr> | ||||
|                     <tr> | ||||
|                         <td class="textStyle1" style="text-align: left; color: #55547A">Estimate Date </td> | ||||
|                         <td class="textStyle2">  {{$estimate->formattedEstimateDate}}</td> | ||||
|                         <td class="attribute-label">Estimate Date </td> | ||||
|                         <td class="attribute-value">  {{$estimate->formattedEstimateDate}}</td> | ||||
|                     </tr> | ||||
|                     <tr> | ||||
|                         <td class="textStyle1" style="text-align: left; color: #55547A">Expiry Date</td> | ||||
|                         <td class="textStyle2">  {{$estimate->formattedExpiryDate}}</td> | ||||
|                         <td class="attribute-label">Expiry Date</td> | ||||
|                         <td class="attribute-value">  {{$estimate->formattedExpiryDate}}</td> | ||||
|                     </tr> | ||||
|                 </table> | ||||
|             </div> | ||||
|             <div style="clear: both;"></div> | ||||
|         </div> | ||||
|         <div class="bill-add"> | ||||
|             <div class="bill-address-container"> | ||||
|         <div class="customer-address-container"> | ||||
|             <div class="billing-address-container"> | ||||
|                 @include('app.pdf.estimate.partials.billing-address') | ||||
|             </div> | ||||
|             @if($estimate->user->billingaddress) | ||||
|                 <div class="ship-address-container"> | ||||
|             <div class="shipping-address-container"> | ||||
|             @else | ||||
|                 <div class="ship-address-container " style="float:left;padding-left:0px;"> | ||||
|             <div class="shipping-address-container--left"> | ||||
|             @endif | ||||
|                 @include('app.pdf.estimate.partials.shipping-address') | ||||
|             @include('app.pdf.estimate.partials.shipping-address') | ||||
|             </div> | ||||
|             <div style="clear: both;"></div> | ||||
|             </div> | ||||
|             <div style="position:relative"> | ||||
|                 @include('app.pdf.estimate.partials.table') | ||||
|             </div> | ||||
|             @include('app.pdf.estimate.partials.notes') | ||||
|         </div> | ||||
|         <div style="position:relative"> | ||||
|             @include('app.pdf.estimate.partials.table') | ||||
|         </div> | ||||
|         @include('app.pdf.estimate.partials.notes') | ||||
|     </div> | ||||
| </body> | ||||
|  | ||||
| </html> | ||||
|  | ||||
| @ -1,9 +1,11 @@ | ||||
| <!DOCTYPE html> | ||||
| <html> | ||||
|  | ||||
| <head> | ||||
|     <title>Estimate</title> | ||||
|     <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> | ||||
|     <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | ||||
|     <style type="text/css"> | ||||
|         /* -- Base -- */ | ||||
|         body { | ||||
|             font-family: "DejaVu Sans"; | ||||
|         } | ||||
| @ -11,22 +13,21 @@ | ||||
|         html { | ||||
|             margin: 0px; | ||||
|             padding: 0px; | ||||
|             margin-top: 50px; | ||||
|         } | ||||
|  | ||||
|         table { | ||||
|             border-collapse: collapse; | ||||
|         } | ||||
|  | ||||
|         .header-left { | ||||
|             padding-top: 45px; | ||||
|             padding-bottom: 45px; | ||||
|             padding-left: 30px; | ||||
|             display:inline-block; | ||||
|             width:30%; | ||||
|         hr { | ||||
|             color: rgba(0, 0, 0, 0.2); | ||||
|             border: 0.5px solid #EAF1FB; | ||||
|         } | ||||
|         @page { | ||||
|             margin-top: 60px !important; | ||||
|         } | ||||
|         .header-table { | ||||
|  | ||||
|         /* -- Header -- */ | ||||
|  | ||||
|         .header-container { | ||||
|             background: #817AE3; | ||||
|             position: absolute; | ||||
|             width: 100%; | ||||
| @ -34,351 +35,286 @@ | ||||
|             left: 0px; | ||||
|             top: -60px; | ||||
|         } | ||||
|  | ||||
|         .header-section-left { | ||||
|             padding-top: 45px; | ||||
|             padding-bottom: 45px; | ||||
|             padding-left: 30px; | ||||
|             display: inline-block; | ||||
|             width: 30%; | ||||
|         } | ||||
|  | ||||
|         .header-logo { | ||||
|             position: absolute; | ||||
|             height: 50px; | ||||
|             text-transform: capitalize; | ||||
|             color: #fff; | ||||
|         } | ||||
|         .header-right { | ||||
|             display:inline-block; | ||||
|             width:35%; | ||||
|             float:right; | ||||
|  | ||||
|         .header-section-right { | ||||
|             display: inline-block; | ||||
|             width: 35%; | ||||
|             float: right; | ||||
|             padding: 20px 30px 20px 0px; | ||||
|             text-align: right; | ||||
|             color:white; | ||||
|             color: white; | ||||
|         } | ||||
|  | ||||
|         } | ||||
|         .inv-flex{ | ||||
|             display:flex; | ||||
|         } | ||||
|         .inv-data{ | ||||
|             text-align:right; | ||||
|             margin-right:120px; | ||||
|         } | ||||
|         .inv-value{ | ||||
|             text-align:left; | ||||
|             margin-left:160px; | ||||
|         } | ||||
|         .header { | ||||
|             font-size: 20px; | ||||
|             color: rgba(0, 0, 0, 0.7); | ||||
|         } | ||||
|  | ||||
|         .TextColor1 { | ||||
|             font-size: 16px; | ||||
|             color: rgba(0, 0, 0, 0.5); | ||||
|         /* -- Estimate Details -- */ | ||||
|  | ||||
|         .estimate-details-container { | ||||
|             text-align: center; | ||||
|             width: 40%; | ||||
|         } | ||||
|  | ||||
|         .wrapper { | ||||
|            display: block; | ||||
|            margin-top: 60px; | ||||
|            padding-bottom: 20px; | ||||
|         .estimate-details-container h1 { | ||||
|             margin: 0; | ||||
|             font-size: 24px; | ||||
|             line-height: 36px; | ||||
|             text-align: right; | ||||
|             font-family: "DejaVu Sans"; | ||||
|         } | ||||
|  | ||||
|         .address { | ||||
|             display: block; | ||||
|             padding-top: 20px; | ||||
|         } | ||||
|         .company { | ||||
|             padding: 0 0 0 30px; | ||||
|             display: inline; | ||||
|             float:left; | ||||
|             width:30%; | ||||
|         } | ||||
|  | ||||
|         .company h1 { | ||||
|             font-style: normal; | ||||
|             font-weight: bold; | ||||
|             font-size: 15px; | ||||
|             line-height: 22px; | ||||
|             letter-spacing: 0.05em; | ||||
|             margin-bottom: 0; | ||||
|         } | ||||
|  | ||||
|         .company-add { | ||||
|             font-style: normal; | ||||
|             font-weight: normal; | ||||
|         .estimate-details-container h4 { | ||||
|             margin: 0; | ||||
|             font-size: 10px; | ||||
|             line-height: 15px; | ||||
|             color: #595959; | ||||
|             margin-top: 0px; | ||||
|         } | ||||
|  | ||||
|         /* -------------------------- */ | ||||
|         /* billing style */ | ||||
|         .bill-address-container { | ||||
|             display: block; | ||||
|             /* position: absolute; */ | ||||
|             float:right; | ||||
|             padding: 0 40px 0 0; | ||||
|         } | ||||
|  | ||||
|         .bill-to { | ||||
|             font-style: normal; | ||||
|             font-weight: normal; | ||||
|             font-size: 12px; | ||||
|             line-height: 18px; | ||||
|             padding: 0px; | ||||
|             margin-bottom: 0px; | ||||
|         } | ||||
|  | ||||
|         .bill-user-name { | ||||
|             max-width: 250px | ||||
|             font-style: normal; | ||||
|             font-weight: normal; | ||||
|             font-size: 15px; | ||||
|             line-height: 22px; | ||||
|             padding: 0px; | ||||
|             margin-top: 0px; | ||||
|             margin-bottom: 0px; | ||||
|         } | ||||
|  | ||||
|         .bill-user-address { | ||||
|             font-style: normal; | ||||
|             font-weight: normal; | ||||
|             font-size: 10px; | ||||
|             line-height: 15px; | ||||
|             color: #595959; | ||||
|             padding: 0px; | ||||
|             margin: 0px; | ||||
|             width: 170px; | ||||
|         } | ||||
|         .bill-user-phone { | ||||
|             font-style: normal; | ||||
|             font-weight: normal; | ||||
|             font-size: 10px; | ||||
|             line-height: 15px; | ||||
|             color: #595959; | ||||
|             padding: 0px; | ||||
|             margin: 0px; | ||||
|         } | ||||
|  | ||||
|         /* -------------------------- */ | ||||
|         /* shipping style */ | ||||
|         .ship-address-container { | ||||
|             display: block; | ||||
|             float:right; | ||||
|             padding: 0 30px 0 0; | ||||
|         } | ||||
|  | ||||
|         .ship-to { | ||||
|             font-style: normal; | ||||
|             font-weight: normal; | ||||
|             font-size: 12px; | ||||
|             line-height: 18px; | ||||
|             padding: 0px; | ||||
|             margin-bottom: 0px; | ||||
|         } | ||||
|  | ||||
|         .ship-user-name { | ||||
|             max-width: 250px | ||||
|             font-style: normal; | ||||
|             font-weight: normal; | ||||
|             font-size: 15px; | ||||
|             line-height: 22px; | ||||
|             padding: 0px; | ||||
|             margin-top: 0px; | ||||
|             margin-bottom: 0px; | ||||
|         } | ||||
|  | ||||
|         .ship-user-address { | ||||
|             font-style: normal; | ||||
|             font-weight: normal; | ||||
|             font-size: 10px; | ||||
|             line-height: 15px; | ||||
|             color: #595959; | ||||
|             padding: 0px; | ||||
|             margin: 0px; | ||||
|             width: 170px; | ||||
|         } | ||||
|  | ||||
|         .ship-user-phone { | ||||
|             font-style: normal; | ||||
|             font-weight: normal; | ||||
|             font-size: 10px; | ||||
|             line-height: 15px; | ||||
|             color: #595959; | ||||
|             padding: 0px; | ||||
|             margin: 0px; | ||||
|         } | ||||
|  | ||||
|         .job-add { | ||||
|             display: inline; | ||||
|             float: right; | ||||
|             width:40%; | ||||
|         } | ||||
|  | ||||
|         .amount-due { | ||||
|             background-color: #f2f2f2; | ||||
|         } | ||||
|  | ||||
|         .textRight { | ||||
|             text-align: right; | ||||
|         } | ||||
|  | ||||
|         .textLeft { | ||||
|             text-align: left; | ||||
|         .estimate-details-container h3 { | ||||
|             margin-bottom: 1px; | ||||
|             margin-top: 0; | ||||
|         } | ||||
|  | ||||
|         .textStyle1 { | ||||
|         /* -- Address -- */ | ||||
|  | ||||
|         .wrapper { | ||||
|             display: block; | ||||
|             margin-top: 60px; | ||||
|             padding-bottom: 20px; | ||||
|         } | ||||
|  | ||||
|         .address-container { | ||||
|             display: block; | ||||
|             padding-top: 20px; | ||||
|         } | ||||
|  | ||||
|         /* -- Company Address -- */ | ||||
|  | ||||
|         .company-address-container { | ||||
|             padding: 0 0 0 30px; | ||||
|             display: inline; | ||||
|             float: left; | ||||
|             width: 30%; | ||||
|         } | ||||
|  | ||||
|         .company-address-container { | ||||
|             padding-left: 30px; | ||||
|             float: left; | ||||
|             width: 30%; | ||||
|             text-transform: capitalize; | ||||
|             margin-bottom: 2px; | ||||
|         } | ||||
|  | ||||
|         .company-address-container h1 { | ||||
|             font-size: 15px; | ||||
|             line-height: 22px; | ||||
|             letter-spacing: 0.05em; | ||||
|             margin-bottom: 0px; | ||||
|             margin-top: 10px; | ||||
|         } | ||||
|  | ||||
|         .company-address { | ||||
|             margin-top: 2px; | ||||
|             text-align: left; | ||||
|  | ||||
|  | ||||
|             font-size: 12px; | ||||
|             line-height: 15px; | ||||
|             color: #595959; | ||||
|         } | ||||
|  | ||||
|         /* -- Billing -- */ | ||||
|  | ||||
|         .billing-address-container { | ||||
|             display: block; | ||||
|             /* position: absolute; */ | ||||
|             float: right; | ||||
|             padding: 0 40px 0 0; | ||||
|         } | ||||
|  | ||||
|         .billing-address-label { | ||||
|             font-size: 12px; | ||||
|             line-height: 18px; | ||||
|             padding: 0px; | ||||
|             margin-bottom: 0px; | ||||
|         } | ||||
|  | ||||
|         .billing-address-name { | ||||
|             max-width: 160px; | ||||
|             font-size: 15px; | ||||
|             line-height: 22px; | ||||
|             padding: 0px; | ||||
|             margin-top: 0px; | ||||
|             margin-bottom: 0px; | ||||
|         } | ||||
|  | ||||
|         .billing-address { | ||||
|             font-size: 10px; | ||||
|             line-height: 15px; | ||||
|             color: #595959; | ||||
|             padding: 0px; | ||||
|             margin: 0px; | ||||
|             width: 170px; | ||||
|         } | ||||
|  | ||||
|         /* -- Shipping -- */ | ||||
|  | ||||
|         .shipping-address-container { | ||||
|             display: block; | ||||
|             float: right; | ||||
|             padding: 0 30px 0 0; | ||||
|         } | ||||
|  | ||||
|         .shipping-address-label { | ||||
|             font-size: 12px; | ||||
|             line-height: 18px; | ||||
|             padding: 0px; | ||||
|             margin-bottom: 0px; | ||||
|         } | ||||
|  | ||||
|         .shipping-address-name { | ||||
|             max-width: 160px; | ||||
|             font-size: 15px; | ||||
|             line-height: 22px; | ||||
|             padding: 0px; | ||||
|             margin-top: 0px; | ||||
|             margin-bottom: 0px; | ||||
|         } | ||||
|  | ||||
|         .shipping-address { | ||||
|             font-size: 10px; | ||||
|             line-height: 15px; | ||||
|             color: #595959; | ||||
|             padding: 0px; | ||||
|             margin: 0px; | ||||
|             width: 170px; | ||||
|         } | ||||
|  | ||||
|         .attribute-label { | ||||
|             font-size: 12; | ||||
|             font-weight: bold; | ||||
|             line-height:22px; | ||||
|             line-height: 22px; | ||||
|             color: rgba(0, 0, 0, 0.8); | ||||
|         } | ||||
|  | ||||
|         .textStyle2 { | ||||
|         .attribute-value { | ||||
|             font-size: 12; | ||||
|             line-height:22px; | ||||
|             line-height: 22px; | ||||
|             color: rgba(0, 0, 0, 0.7); | ||||
|         } | ||||
|  | ||||
|         .main-table-header td { | ||||
|             padding: 5px; | ||||
|             padding-bottom: 10px; | ||||
|         } | ||||
|         /* -- Items Table -- */ | ||||
|  | ||||
|         .main-table-header { | ||||
|             border-bottom: 1px solid red; | ||||
|         } | ||||
|  | ||||
|         .table2 { | ||||
|             margin-top: 30px; | ||||
|             padding: 0px 30px 10px 30px; | ||||
|         .items-table { | ||||
|             padding: 30px 30px 10px 30px; | ||||
|             page-break-before: avoid; | ||||
|             page-break-after: auto; | ||||
|         } | ||||
|  | ||||
|         hr { | ||||
|             margin: 0 30px 0 30px; | ||||
|             color:rgba(0, 0, 0, 0.2); | ||||
|             border: 0.5px solid #EAF1FB; | ||||
|         .items-table hr { | ||||
|             height: 0.1px; | ||||
|             margin: 0 30px; | ||||
|         } | ||||
|  | ||||
|         .table2 hr { | ||||
|             height:0.1px; | ||||
|         } | ||||
|  | ||||
|         .ItemTableHeader { | ||||
|         .item-table-heading { | ||||
|             font-size: 13.5; | ||||
|             text-align: center; | ||||
|             color: rgba(0, 0, 0, 0.85); | ||||
|             padding: 5px; | ||||
|         } | ||||
|  | ||||
|         tr.main-table-header th { | ||||
|         .item-table-heading-row td { | ||||
|             padding: 5px; | ||||
|             padding-bottom: 10px; | ||||
|         } | ||||
|  | ||||
|         .item-table-heading-row { | ||||
|             border-bottom: 1px solid red; | ||||
|         } | ||||
|  | ||||
|         tr.item-table-heading-row th { | ||||
|             border-bottom: 0.620315px solid #E8E8E8; | ||||
|             font-style: normal; | ||||
|             font-weight: normal; | ||||
|             font-size: 12px; | ||||
|             line-height: 18px; | ||||
|         } | ||||
|  | ||||
|         tr.item-details td { | ||||
|             font-style: normal; | ||||
|             font-weight: normal; | ||||
|         tr.item-row td { | ||||
|             font-size: 12px; | ||||
|             line-height: 18px; | ||||
|         } | ||||
|  | ||||
|         .items { | ||||
|         .item-cell { | ||||
|             font-size: 13; | ||||
|             color: rgba(0, 0, 0, 0.6); | ||||
|             color: #040405; | ||||
|             text-align: center; | ||||
|             padding: 5px; | ||||
|             padding-top: 10px; | ||||
|         } | ||||
|  | ||||
|         .note-header { | ||||
|             font-size: 13; | ||||
|             color: rgba(0, 0, 0, 0.6); | ||||
|         .item-description { | ||||
|             color: #595959; | ||||
|             font-size: 9px; | ||||
|             line-height: 12px; | ||||
|             page-break-inside: avoid; | ||||
|         } | ||||
|  | ||||
|         .note-text { | ||||
|             font-size: 10; | ||||
|             color: rgba(0, 0, 0, 0.6); | ||||
|         /* -- Total Display Table -- */ | ||||
|  | ||||
|         .total-display-container { | ||||
|             padding: 0 25px; | ||||
|         } | ||||
|  | ||||
|         .padd8 { | ||||
|             padding-top: 8px; | ||||
|             padding-bottom: 8px; | ||||
|         .item-cell-table-hr { | ||||
|             margin: 0 25px 0 30px; | ||||
|         } | ||||
|  | ||||
|         .padd2 { | ||||
|         .total-display-table { | ||||
|             box-sizing: border-box; | ||||
|             page-break-inside: avoid; | ||||
|             page-break-before: auto; | ||||
|             page-break-after: auto; | ||||
|             margin-left: 500px; | ||||
|             border: 1px solid #EAF1FB; | ||||
|             border-top: none; | ||||
|         } | ||||
|  | ||||
|         .total-table-attribute-label { | ||||
|             font-size: 12px; | ||||
|             color: #55547A; | ||||
|             text-align: left; | ||||
|             padding-left: 10px; | ||||
|         } | ||||
|  | ||||
|         .total-table-attribute-value { | ||||
|             font-weight: bold; | ||||
|             text-align: right; | ||||
|             font-size: 12px; | ||||
|             color: #040405; | ||||
|             padding-right: 10px; | ||||
|             padding-top: 2px; | ||||
|             padding-bottom: 2px; | ||||
|         } | ||||
|  | ||||
|         .table3 { | ||||
|             border: 1px solid #EAF1FB; | ||||
|             border-top: none; | ||||
|             box-sizing: border-box; | ||||
|             width: 630px; | ||||
|             page-break-inside: avoid; | ||||
|             page-break-before: auto; | ||||
|             page-break-after: auto; | ||||
|         } | ||||
|  | ||||
|         .text-per-item-table3 { | ||||
|             border: 1px solid #EAF1FB; | ||||
|             border-top: none; | ||||
|             padding-right: 30px; | ||||
|             box-sizing: border-box; | ||||
|             width: 260px; | ||||
|             /* height: 100px; */ | ||||
|             position: absolute; | ||||
|             right: -25; | ||||
|         } | ||||
|  | ||||
|         .inv-item { | ||||
|             border-color: #d9d9d9; | ||||
|         } | ||||
|  | ||||
|         .no-border { | ||||
|             border: none; | ||||
|         } | ||||
|  | ||||
|         .desc { | ||||
|             font-weight: 100; | ||||
|             text-align: justify; | ||||
|             font-size: 10px; | ||||
|             margin-bottom: 15px; | ||||
|             margin-top:7px; | ||||
|             color:rgba(0, 0, 0, 0.85); | ||||
|         } | ||||
|  | ||||
|         .company-details{ | ||||
|             text-align: center; | ||||
|             width: 40%; | ||||
|         } | ||||
|  | ||||
|         .company-details h1 { | ||||
|             margin:0; | ||||
|             font-style: normal; | ||||
|             font-weight: 500; | ||||
|             font-size: 24px; | ||||
|             line-height: 36px; | ||||
|             text-align: right; | ||||
|         } | ||||
|  | ||||
|         .company-details h4 { | ||||
|             margin:0; | ||||
|             font-style: normal; | ||||
|             font-weight: normal; | ||||
|             font-size: 10px; | ||||
|             line-height: 15px; | ||||
|             text-align: right; | ||||
|         } | ||||
|  | ||||
|         .company-details h3 { | ||||
|              margin-bottom:1px; | ||||
|              margin-top:0; | ||||
|         } | ||||
|         /* -- Notes -- */ | ||||
|  | ||||
|         .notes { | ||||
|             font-style: normal; | ||||
|             font-weight: 300; | ||||
|             font-size: 12px; | ||||
|             color: #595959; | ||||
|             margin-top: 15px; | ||||
| @ -389,8 +325,6 @@ | ||||
|         } | ||||
|  | ||||
|         .notes-label { | ||||
|             font-style: normal; | ||||
|             font-weight: normal; | ||||
|             font-size: 15px; | ||||
|             line-height: 22px; | ||||
|             letter-spacing: 0.05em; | ||||
| @ -400,23 +334,79 @@ | ||||
|             padding-bottom: 10px; | ||||
|         } | ||||
|  | ||||
|         /* -- Helpers -- */ | ||||
|  | ||||
|         .text-primary { | ||||
|             color: #5851DB; | ||||
|         } | ||||
|  | ||||
|         .text-center { | ||||
|             text-align: center | ||||
|         } | ||||
|  | ||||
|         table .text-left { | ||||
|             text-align: left; | ||||
|         } | ||||
|  | ||||
|         table .text-right { | ||||
|             text-align: right; | ||||
|         } | ||||
|  | ||||
|         .border-0 { | ||||
|             border: none; | ||||
|         } | ||||
|  | ||||
|         .py-2 { | ||||
|             padding-top: 2px; | ||||
|             padding-bottom: 2px; | ||||
|         } | ||||
|  | ||||
|         .py-8 { | ||||
|             padding-top: 8px; | ||||
|             padding-bottom: 8px; | ||||
|         } | ||||
|  | ||||
|         .py-3 { | ||||
|             padding: 3px 0; | ||||
|         } | ||||
|  | ||||
|         .pr-20 { | ||||
|             padding-right: 20px; | ||||
|         } | ||||
|  | ||||
|         .pr-10 { | ||||
|             padding-right: 10px; | ||||
|         } | ||||
|  | ||||
|         .pl-20 { | ||||
|             padding-left: 20px; | ||||
|         } | ||||
|  | ||||
|         .pl-10 { | ||||
|             padding-left: 10px; | ||||
|         } | ||||
|  | ||||
|         .pl-0 { | ||||
|             padding-left: 0; | ||||
|         } | ||||
|     </style> | ||||
| </head> | ||||
|  | ||||
| <body> | ||||
|     <div class="header-table"> | ||||
|     <div class="header-container"> | ||||
|         <table width="100%"> | ||||
|             <tr> | ||||
|                 @if($logo) | ||||
|                     <td width="60%" class="header-left"> | ||||
|                         <img class="header-logo" src="{{ $logo }}" alt="Company Logo"> | ||||
|                 @else | ||||
|                     <td width="60%" class="header-left" style="padding-top: 0px;"> | ||||
|                         @if($estimate->user->company) | ||||
|                             <h1 class="header-logo"> {{$estimate->user->company->name}} </h1> | ||||
|                         @endif | ||||
|                 @endif | ||||
|                 <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> | ||||
|                 <td width="40%" class="header-right company-details"> | ||||
|                 <td width="40%" class="header-section-right estimate-details-container"> | ||||
|                     <h1>Estimate</h1> | ||||
|                     <h4>{{$estimate->estimate_number}}</h4> | ||||
|                     <h4>{{$estimate->formattedEstimateDate}}</h4> | ||||
| @ -426,24 +416,24 @@ | ||||
|     </div> | ||||
|     <hr> | ||||
|     <div class="wrapper"> | ||||
|         <div class="address"> | ||||
|             <div class="company"> | ||||
|         <div class="address-container"> | ||||
|             <div class="company-address-container"> | ||||
|                 @include('app.pdf.estimate.partials.company-address') | ||||
|             </div> | ||||
|             <div class="ship-address-container"> | ||||
|             <div class="shipping-address-container"> | ||||
|                 @include('app.pdf.estimate.partials.shipping-address') | ||||
|             </div> | ||||
|             @if($estimate->user->shippingaddress) | ||||
|                 <div class="bill-address-container"> | ||||
|             <div class="billing-address-container"> | ||||
|             @else | ||||
|                 <div class="bill-address-container" style="float:right;padding-right:0px;"> | ||||
|             <div class="billing-address-container" style="float:right; padding-right:0px;"> | ||||
|             @endif | ||||
|                 @include('app.pdf.estimate.partials.billing-address') | ||||
|             </div> | ||||
|             <div style="clear: both;"></div> | ||||
|             @include('app.pdf.estimate.partials.table') | ||||
|             @include('app.pdf.estimate.partials.notes') | ||||
|         </div> | ||||
|         @include('app.pdf.estimate.partials.table') | ||||
|         @include('app.pdf.estimate.partials.notes') | ||||
|     </div> | ||||
| </body> | ||||
|  | ||||
| </html> | ||||
|  | ||||
| @ -1,10 +1,12 @@ | ||||
| <!DOCTYPE html> | ||||
| <html> | ||||
|  | ||||
| <head> | ||||
|     <title>Estimate</title> | ||||
|     <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> | ||||
|     <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | ||||
|  | ||||
|     <style type="text/css"> | ||||
|         /* -- Base -- */ | ||||
|         body { | ||||
|             font-family: "DejaVu Sans"; | ||||
|         } | ||||
| @ -12,147 +14,138 @@ | ||||
|         html { | ||||
|             margin: 0px; | ||||
|             padding: 0px; | ||||
|             margin-top: 50px; | ||||
|         } | ||||
|  | ||||
|         table { | ||||
|             border-collapse: collapse; | ||||
|         } | ||||
|  | ||||
|         .header-line { | ||||
|             color:rgba(0, 0, 0, 0.2); | ||||
|             position: absolute; | ||||
|             top: 80px; | ||||
|             left: 0px; | ||||
|             right: -70px; | ||||
|             width: 100%; | ||||
|         } | ||||
|  | ||||
|         hr { | ||||
|             color:rgba(0, 0, 0, 0.2); | ||||
|             color: rgba(0, 0, 0, 0.2); | ||||
|             border: 0.5px solid #EAF1FB; | ||||
|         } | ||||
|  | ||||
|         .items-table-hr{ | ||||
|             margin: 0 30px 0 30px; | ||||
|         } | ||||
|         /* -- Header -- */ | ||||
|  | ||||
|         .header-left { | ||||
|             padding-top: 45px; | ||||
|             padding-bottom: 45px; | ||||
|             padding-left: 30px; | ||||
|             display:inline-block; | ||||
|             width:30%; | ||||
|         } | ||||
|  | ||||
|         .header-table { | ||||
|         .header-container { | ||||
|             position: absolute; | ||||
|             width: 100%; | ||||
|             height: 150px; | ||||
|             left: 0px; | ||||
|             top: -60px; | ||||
|         } | ||||
|  | ||||
|         .header-section-left { | ||||
|             padding-top: 45px; | ||||
|             padding-bottom: 45px; | ||||
|             padding-left: 30px; | ||||
|             display: inline-block; | ||||
|             width: 30%; | ||||
|         } | ||||
|  | ||||
|         .header-bottom-divider { | ||||
|             color: rgba(0, 0, 0, 0.2); | ||||
|             position: absolute; | ||||
|             top: 100px; | ||||
|             left: 0px; | ||||
|             width: 100%; | ||||
|         } | ||||
|  | ||||
|         .header-logo { | ||||
|             position: absolute; | ||||
|             height: 50px; | ||||
|             text-transform: capitalize; | ||||
|             color: #817AE3; | ||||
|         } | ||||
|         .header-right { | ||||
|             display:inline-block; | ||||
|  | ||||
|         .header-section-right { | ||||
|             display: inline-block; | ||||
|             position: absolute; | ||||
|             right:0; | ||||
|             right: 0; | ||||
|             padding: 15px 30px 15px 0px; | ||||
|             float: right; | ||||
|         } | ||||
|         .inv-flex{ | ||||
|             display:flex; | ||||
|         } | ||||
|         .inv-data{ | ||||
|             text-align:right; | ||||
|             margin-right:120px; | ||||
|         } | ||||
|         .inv-value{ | ||||
|             text-align:left; | ||||
|             margin-left:160px; | ||||
|         } | ||||
|  | ||||
|         .header { | ||||
|             font-size: 20px; | ||||
|             color: rgba(0, 0, 0, 0.7); | ||||
|         } | ||||
|  | ||||
|         .TextColor1 { | ||||
|             font-size: 16px; | ||||
|             color: rgba(0, 0, 0, 0.5); | ||||
|         /* -- Company Address -- */ | ||||
|  | ||||
|         .company-address-container { | ||||
|             width: auto; | ||||
|             text-transform: capitalize; | ||||
|             margin-bottom: 2px; | ||||
|         } | ||||
|  | ||||
|         @page { | ||||
|             margin-top: 60px !important; | ||||
|         } | ||||
|         .company-address-container h1 { | ||||
|  | ||||
|         .wrapper { | ||||
|            display: block; | ||||
|            padding-top: 50px; | ||||
|            padding-bottom: 20px; | ||||
|         } | ||||
|  | ||||
|         .address { | ||||
|             display: inline-block; | ||||
|             padding-top: 100px | ||||
|         } | ||||
|  | ||||
|         .bill-add { | ||||
|             display: inline; | ||||
|             float:left; | ||||
|             width:40%; | ||||
|             padding: 0 0 0 30px; | ||||
|         } | ||||
|         .company { | ||||
|             padding-left: 30px; | ||||
|             display: inline; | ||||
|             float:left; | ||||
|             width:30%; | ||||
|         } | ||||
|  | ||||
|         .company h1 { | ||||
|             font-style: normal; | ||||
|             font-weight: bold; | ||||
|             font-size: 18px; | ||||
|             font-size: 15px; | ||||
|             line-height: 22px; | ||||
|             letter-spacing: 0.05em; | ||||
|             margin-bottom: 0px; | ||||
|             margin-top: 10px; | ||||
|         } | ||||
|  | ||||
|         .company-add { | ||||
|         .company-address { | ||||
|             margin-top: 2px; | ||||
|             text-align: left; | ||||
|             font-style: normal; | ||||
|             font-weight: normal; | ||||
|             font-size: 10px; | ||||
|  | ||||
|  | ||||
|             font-size: 12px; | ||||
|             line-height: 15px; | ||||
|             color: #595959; | ||||
|             margin: 0px; | ||||
|         } | ||||
|  | ||||
|          /* -------------------------- */ | ||||
|         /* shipping style */ | ||||
|         .ship-to { | ||||
|         /* -- Content Wrapper -- */ | ||||
|  | ||||
|         .wrapper { | ||||
|             display: block; | ||||
|             padding-top: 100px; | ||||
|             padding-bottom: 20px; | ||||
|         } | ||||
|  | ||||
|         .main-content { | ||||
|         } | ||||
|  | ||||
|         .customer-address-container { | ||||
|             display: inline; | ||||
|             float: left; | ||||
|             width: 40%; | ||||
|             padding: 0 0 0 30px; | ||||
|         } | ||||
|  | ||||
|         /* -- Shipping -- */ | ||||
|  | ||||
|         .shipping-address-container { | ||||
|             float: right; | ||||
|             display: block; | ||||
|         } | ||||
|  | ||||
|         .shipping-address-container--left { | ||||
|             float: left; | ||||
|             padding-left: 0; | ||||
|         } | ||||
|  | ||||
|         .shipping-address-label { | ||||
|             padding-top: 5px; | ||||
|             font-style: normal; | ||||
|             font-weight: normal; | ||||
|             font-size: 12px; | ||||
|             line-height: 18px; | ||||
|             margin-bottom: 0px; | ||||
|         } | ||||
|  | ||||
|         .ship-user-name { | ||||
|         .shipping-address-name { | ||||
|             padding: 0px; | ||||
|             font-style: normal; | ||||
|             font-weight: normal; | ||||
|             font-size: 15px; | ||||
|             line-height: 22px; | ||||
|             margin: 0px; | ||||
|             max-width: 160px; | ||||
|         } | ||||
|  | ||||
|         .ship-user-address { | ||||
|             font-style: normal; | ||||
|             font-weight: normal; | ||||
|         .shipping-address { | ||||
|             font-size: 10px; | ||||
|             line-height: 15px; | ||||
|             color: #595959; | ||||
| @ -160,38 +153,28 @@ | ||||
|             width: 160px; | ||||
|         } | ||||
|  | ||||
|         .ship-user-phone { | ||||
|             font-style: normal; | ||||
|             font-weight: normal; | ||||
|             font-size: 10px; | ||||
|             line-height: 15px; | ||||
|             color: #595959; | ||||
|             margin: 0px; | ||||
|         /* -- Billing -- */ | ||||
|  | ||||
|         .billing-address-container { | ||||
|             float: left; | ||||
|         } | ||||
|  | ||||
|          /* -------------------------- */ | ||||
|         /* billing style */ | ||||
|         .bill-to { | ||||
|         .billing-address-label { | ||||
|             padding-top: 5px; | ||||
|             font-style: normal; | ||||
|             font-weight: normal; | ||||
|             font-size: 12px; | ||||
|             line-height: 18px; | ||||
|             margin-bottom: 0px; | ||||
|         } | ||||
|  | ||||
|         .bill-user-name { | ||||
|         .billing-address-name { | ||||
|             padding: 0px; | ||||
|             font-style: normal; | ||||
|             font-weight: normal; | ||||
|             font-size: 15px; | ||||
|             line-height: 22px; | ||||
|             margin: 0px; | ||||
|             max-width: 160px; | ||||
|         } | ||||
|  | ||||
|         .bill-user-address { | ||||
|             font-style: normal; | ||||
|             font-weight: normal; | ||||
|         .billing-address { | ||||
|             font-size: 10px; | ||||
|             line-height: 15px; | ||||
|             color: #595959; | ||||
| @ -199,187 +182,131 @@ | ||||
|             width: 160px; | ||||
|         } | ||||
|  | ||||
|         .bill-user-phone { | ||||
|             font-style: normal; | ||||
|             font-weight: normal; | ||||
|             font-size: 10px; | ||||
|             line-height: 15px; | ||||
|             color: #595959; | ||||
|             margin: 0px; | ||||
|         } | ||||
|         /* -- Estimate Details -- */ | ||||
|  | ||||
|  | ||||
|         .job-add { | ||||
|         .estimate-details-container { | ||||
|             display: block; | ||||
|             float: right; | ||||
|             padding: 20px 30px 0 0; | ||||
|         } | ||||
|         .amount-due { | ||||
|             background-color: #f2f2f2; | ||||
|         } | ||||
|  | ||||
|         .textRight { | ||||
|             text-align: right; | ||||
|         } | ||||
|  | ||||
|         .textLeft { | ||||
|         .attribute-label { | ||||
|             font-size: 12px; | ||||
|             line-height: 18px; | ||||
|             text-align: left; | ||||
|             color: #55547A | ||||
|         } | ||||
|  | ||||
|         .textStyle1 { | ||||
|             font-style: normal; | ||||
|             font-weight: normal; | ||||
|             font-size: 12px; | ||||
|             line-height: 18px; | ||||
|         } | ||||
|  | ||||
|         .textStyle2 { | ||||
|             font-style: normal; | ||||
|             font-weight: normal; | ||||
|         .attribute-value { | ||||
|             font-size: 12px; | ||||
|             line-height: 18px; | ||||
|             text-align: right; | ||||
|         } | ||||
|         .main-table-header td { | ||||
|             padding: 10px; | ||||
|         } | ||||
|         .main-table-header { | ||||
|             border-bottom: 1px solid red; | ||||
|         } | ||||
|         tr.main-table-header th { | ||||
|             font-style: normal; | ||||
|             font-weight: 600; | ||||
|             font-size: 12px; | ||||
|             line-height: 18px; | ||||
|         } | ||||
|         tr.item-details td { | ||||
|             font-style: normal; | ||||
|             font-weight: normal; | ||||
|             font-size: 12px; | ||||
|             line-height: 18px; | ||||
|         } | ||||
|         .table2 { | ||||
|             padding: 0px 30px 10px 30px; | ||||
|  | ||||
|         /* -- Items Table -- */ | ||||
|  | ||||
|         .items-table { | ||||
|             padding: 30px 30px 10px 30px; | ||||
|             page-break-before: avoid; | ||||
|             page-break-after: auto; | ||||
|         } | ||||
|  | ||||
|         .table2 hr { | ||||
|             height:0.1px; | ||||
|         .items-table hr { | ||||
|             height: 0.1px; | ||||
|             margin: 0 30px; | ||||
|         } | ||||
|  | ||||
|         .ItemTableHeader { | ||||
|         .item-table-heading { | ||||
|             font-size: 13.5; | ||||
|             text-align: center; | ||||
|             color: rgba(0, 0, 0, 0.85); | ||||
|             padding: 5px; | ||||
|             padding-bottom: 10px; | ||||
|         } | ||||
|  | ||||
|         .items { | ||||
|         tr.item-table-heading-row th { | ||||
|             border-bottom: 0.620315px solid #E8E8E8; | ||||
|             font-size: 12px; | ||||
|             line-height: 18px; | ||||
|         } | ||||
|  | ||||
|         .item-table-heading-row { | ||||
|             margin-bottom: 10px; | ||||
|         } | ||||
|  | ||||
|         tr.item-row td { | ||||
|             font-size: 12px; | ||||
|             line-height: 18px; | ||||
|         } | ||||
|  | ||||
|         .item-cell { | ||||
|             font-size: 13; | ||||
|             color: rgba(0, 0, 0, 0.6); | ||||
|             color: #040405; | ||||
|             text-align: center; | ||||
|             padding: 5px; | ||||
|             padding-top: 10px; | ||||
|             border-color: #d9d9d9; | ||||
|         } | ||||
|  | ||||
|         .note-header { | ||||
|             font-size: 13; | ||||
|             color: rgba(0, 0, 0, 0.6); | ||||
|         .item-description { | ||||
|             color: #595959; | ||||
|             font-size: 9px; | ||||
|             line-height: 12px; | ||||
|         } | ||||
|  | ||||
|         .note-text { | ||||
|             font-size: 10; | ||||
|             color: rgba(0, 0, 0, 0.6); | ||||
|         .item-cell-table-hr { | ||||
|             margin: 0 30px 0 30px; | ||||
|         } | ||||
|  | ||||
|         .padd8 { | ||||
|             padding-top: 8px; | ||||
|             padding-bottom: 8px; | ||||
|         /* -- Total Display Table -- */ | ||||
|  | ||||
|         .total-display-container { | ||||
|             padding: 0 25px; | ||||
|         } | ||||
|  | ||||
|         .padd2 { | ||||
|         .total-display-table { | ||||
|             box-sizing: border-box; | ||||
|             page-break-inside: avoid; | ||||
|             page-break-before: auto; | ||||
|             page-break-after: auto; | ||||
|             margin-left: 500px; | ||||
|             margin-top: 20px; | ||||
|         } | ||||
|  | ||||
|         .total-table-attribute-label { | ||||
|             font-size: 12px; | ||||
|             color: #55547A; | ||||
|             text-align: left; | ||||
|             padding-left: 10px; | ||||
|         } | ||||
|  | ||||
|         .total-table-attribute-value { | ||||
|             font-weight: bold; | ||||
|             text-align: right; | ||||
|             font-size: 12px; | ||||
|             color: #040405; | ||||
|             padding-right: 10px; | ||||
|             padding-top: 2px; | ||||
|             padding-bottom: 2px; | ||||
|         } | ||||
|  | ||||
|         .table3 { | ||||
|              border: 1px solid #EAF1FB; | ||||
|              border-top: none; | ||||
|             box-sizing: border-box; | ||||
|             width: 630px; | ||||
|             page-break-inside: avoid; | ||||
|             page-break-before: auto; | ||||
|             page-break-after: auto; | ||||
|         .total-border-left { | ||||
|             border: 1px solid #E8E8E8 !important; | ||||
|             border-right: 0px !important; | ||||
|             padding-top: 0px; | ||||
|             padding: 8px !important; | ||||
|         } | ||||
|  | ||||
|         td.estimate-total1 { | ||||
|             text-align:left; | ||||
|             padding: 15px 0 15px 10px; | ||||
|             font-size:12px; | ||||
|             line-height: 18px; | ||||
|             color: #55547A; | ||||
|             border-bottom:1px solid #E8E8E8; | ||||
|             border-top:1px solid #E8E8E8; | ||||
|             border-left:1px solid #E8E8E8; | ||||
|         .total-border-right { | ||||
|             border: 1px solid #E8E8E8 !important; | ||||
|             border-left: 0px !important; | ||||
|             padding-top: 0px; | ||||
|             padding: 8px !important; | ||||
|         } | ||||
|  | ||||
|         td.estimate-total2 { | ||||
|             font-weight: 500; | ||||
|             text-align: right; | ||||
|             font-size:12px; | ||||
|             line-height: 18px; | ||||
|             padding: 15px 10px 15px 0; | ||||
|             color: #5851DB; | ||||
|             border-bottom:1px solid #E8E8E8; | ||||
|             border-top:1px solid #E8E8E8; | ||||
|             border-right:1px solid #E8E8E8; | ||||
|         } | ||||
|  | ||||
|         .inv-item { | ||||
|             border-color: #d9d9d9; | ||||
|         } | ||||
|  | ||||
|         .no-border { | ||||
|             border: none; | ||||
|         } | ||||
|         .desc { | ||||
|             font-weight: 100; | ||||
|             text-align: justify; | ||||
|             font-size: 10px; | ||||
|             margin-bottom: 15px; | ||||
|             margin-top:7px; | ||||
|             color:rgba(0, 0, 0, 0.85); | ||||
|         } | ||||
|         .company-details h1 { | ||||
|             margin:0; | ||||
|             font-style: normal; | ||||
|             font-weight: bold; | ||||
|             font-size: 15px; | ||||
|             line-height: 22px; | ||||
|             letter-spacing: 0.05em; | ||||
|             text-align: left; | ||||
|             max-width: 220px; | ||||
|         } | ||||
|         .company-details h4 { | ||||
|             margin:0; | ||||
|             font-style: normal; | ||||
|             font-weight: 100; | ||||
|             font-size: 18px; | ||||
|             line-height: 25px; | ||||
|             text-align: right; | ||||
|         } | ||||
|         .company-details h3 { | ||||
|              margin-bottom:1px; | ||||
|              margin-top:0; | ||||
|         } | ||||
|         tr.total td { | ||||
|             border-bottom:1px solid #E8E8E8; | ||||
|             border-top:1px solid #E8E8E8; | ||||
|         } | ||||
|         /* -- Notes -- */ | ||||
|  | ||||
|         .notes { | ||||
|             font-style: normal; | ||||
|             font-weight: 300; | ||||
|             font-size: 12px; | ||||
|             color: #595959; | ||||
|             margin-top: 15px; | ||||
| @ -390,8 +317,6 @@ | ||||
|         } | ||||
|  | ||||
|         .notes-label { | ||||
|             font-style: normal; | ||||
|             font-weight: normal; | ||||
|             font-size: 15px; | ||||
|             line-height: 22px; | ||||
|             letter-spacing: 0.05em; | ||||
| @ -401,67 +326,125 @@ | ||||
|             padding-bottom: 10px; | ||||
|         } | ||||
|  | ||||
|         /* -- Helpers -- */ | ||||
|  | ||||
|         .text-primary { | ||||
|             color: #5851DB; | ||||
|         } | ||||
|  | ||||
|         .text-center { | ||||
|             text-align: center | ||||
|         } | ||||
|  | ||||
|         table .text-left { | ||||
|             text-align: left; | ||||
|         } | ||||
|  | ||||
|         table .text-right { | ||||
|             text-align: right; | ||||
|         } | ||||
|  | ||||
|         .border-0 { | ||||
|             border: none; | ||||
|         } | ||||
|  | ||||
|         .py-2 { | ||||
|             padding-top: 2px; | ||||
|             padding-bottom: 2px; | ||||
|         } | ||||
|  | ||||
|         .py-8 { | ||||
|             padding-top: 8px; | ||||
|             padding-bottom: 8px; | ||||
|         } | ||||
|  | ||||
|         .py-3 { | ||||
|             padding: 3px 0; | ||||
|         } | ||||
|  | ||||
|         .pr-20 { | ||||
|             padding-right: 20px; | ||||
|         } | ||||
|  | ||||
|         .pr-10 { | ||||
|             padding-right: 10px; | ||||
|         } | ||||
|  | ||||
|         .pl-20 { | ||||
|             padding-left: 20px; | ||||
|         } | ||||
|  | ||||
|         .pl-10 { | ||||
|             padding-left: 10px; | ||||
|         } | ||||
|  | ||||
|         .pl-0 { | ||||
|             padding-left: 0; | ||||
|         } | ||||
|     </style> | ||||
| </head> | ||||
|  | ||||
| <body> | ||||
|     <div class="header-table"> | ||||
|     <div class="header-container"> | ||||
|         <table width="100%"> | ||||
|             <tr> | ||||
|                 @if($logo) | ||||
|                     <td class="header-left"> | ||||
|                 <td class="header-section-left"> | ||||
|                     <img class="header-logo" src="{{ $logo }}" alt="Company Logo"> | ||||
|                 @else | ||||
|                     @else | ||||
|                     @if($estimate->user->company) | ||||
|                     <td class="header-left" style="padding-top:0px;"> | ||||
|                         <h1 class="header-logo"> {{$estimate->user->company->name}} </h1> | ||||
|                 <td class="header-section-left" style="padding-top:0px;"> | ||||
|                     <h1 class="header-logo"> {{$estimate->user->company->name}} </h1> | ||||
|                     @endif | ||||
|                     @endif | ||||
|                 @endif | ||||
|                 </td> | ||||
|                 <td class="header-right company-details"> | ||||
|                 <td class="header-section-right company-address-container"> | ||||
|                     @include('app.pdf.estimate.partials.company-address') | ||||
|                 </td> | ||||
|             </tr> | ||||
|         </table> | ||||
|     </div> | ||||
|  | ||||
|     <hr class="header-line"> | ||||
|     <hr class="header-bottom-divider"> | ||||
|  | ||||
|     <div class="wrapper"> | ||||
|         <div class="address"> | ||||
|             <div class="bill-add"> | ||||
|                 <div style="float:left;"> | ||||
|         <div class="main-content"> | ||||
|             <div class="customer-address-container"> | ||||
|                 <div class="billing-address-container"> | ||||
|                     @include('app.pdf.estimate.partials.billing-address') | ||||
|                 </div> | ||||
|                @if($estimate->user->billingaddress) | ||||
|                     <div style="float:right;"> | ||||
|                 @else | ||||
|                     <div style="float:left;"> | ||||
|                 @endif | ||||
|                     @include('app.pdf.estimate.partials.shipping-address') | ||||
|                 @if($estimate->user->billingaddress) | ||||
|                 <div class="shipping-address-container"> | ||||
|                     @else | ||||
|                     <div class="shipping-address-container--left"> | ||||
|                         @endif | ||||
|                         @include('app.pdf.estimate.partials.shipping-address') | ||||
|                     </div> | ||||
|                     <div style="clear: both;"></div> | ||||
|                 </div> | ||||
|  | ||||
|                 <div class="estimate-details-container"> | ||||
|                     <table> | ||||
|                         <tr> | ||||
|                             <td class="attribute-label">Estimate Number</td> | ||||
|                             <td class="attribute-value">  {{$estimate->estimate_number}}</td> | ||||
|                         </tr> | ||||
|                         <tr> | ||||
|                             <td class="attribute-label">Estimate Date </td> | ||||
|                             <td class="attribute-value">  {{$estimate->formattedEstimateDate}}</td> | ||||
|                         </tr> | ||||
|                         <tr> | ||||
|                             <td class="attribute-label">Expiry Date</td> | ||||
|                             <td class="attribute-value">  {{$estimate->formattedExpiryDate}}</td> | ||||
|                         </tr> | ||||
|                     </table> | ||||
|                 </div> | ||||
|                 <div style="clear: both;"></div> | ||||
|             </div> | ||||
|  | ||||
|             <div class="job-add"> | ||||
|                 <table> | ||||
|                     <tr> | ||||
|                         <td class="textStyle1" style="text-align: left; color: #55547A">Estimate Number</td> | ||||
|                         <td class="textStyle2">  {{$estimate->estimate_number}}</td> | ||||
|                     </tr> | ||||
|                     <tr> | ||||
|                         <td class="textStyle1" style="text-align: left; color: #55547A">Estimate Date </td> | ||||
|                         <td class="textStyle2">  {{$estimate->formattedEstimateDate}}</td> | ||||
|                     </tr> | ||||
|                     <tr> | ||||
|                         <td class="textStyle1" style="text-align: left; color: #55547A">Expiry Date</td> | ||||
|                         <td class="textStyle2">  {{$estimate->formattedExpiryDate}}</td> | ||||
|                     </tr> | ||||
|                 </table> | ||||
|             </div> | ||||
|             <div style="clear: both;"></div> | ||||
|             @include('app.pdf.estimate.partials.table') | ||||
|             @include('app.pdf.estimate.partials.notes') | ||||
|         </div> | ||||
|         @include('app.pdf.estimate.partials.table') | ||||
|         @include('app.pdf.estimate.partials.notes') | ||||
|     </div> | ||||
| </body> | ||||
|  | ||||
| </html> | ||||
|  | ||||
| @ -1,11 +1,11 @@ | ||||
| @if($estimate->user->billingaddress) | ||||
|     <p class="bill-to">Bill To,</p> | ||||
|     <p class="billing-address-label">Bill To,</p> | ||||
|     @if($estimate->user->billingaddress->name) | ||||
|         <p class="bill-user-name"> | ||||
|         <p class="billing-address-name"> | ||||
|             {{$estimate->user->billingaddress->name}} | ||||
|         </p> | ||||
|     @endif | ||||
|     <p class="bill-user-address"> | ||||
|     <p class="billing-address"> | ||||
|         @if($estimate->user->billingaddress->address_street_1) | ||||
|             {!! nl2br(htmlspecialchars($estimate->user->billingaddress->address_street_1)) !!}<br> | ||||
|         @endif | ||||
| @ -31,7 +31,7 @@ | ||||
|         @endif | ||||
|  | ||||
|         @if($estimate->user->billingaddress->phone) | ||||
|             <p class="bill-user-phone"> | ||||
|             <p class="billing-address"> | ||||
|                 Phone :{{$estimate->user->billingaddress->phone}} | ||||
|             </p> | ||||
|         @endif | ||||
|  | ||||
| @ -3,7 +3,7 @@ | ||||
| @endif | ||||
|  | ||||
| @if($company_address) | ||||
|     <p class="company-add"> | ||||
|     <p class="company-address"> | ||||
|         @if($company_address->addresses[0]['address_street_1']) | ||||
|             {!! nl2br(htmlspecialchars($company_address->addresses[0]['address_street_1'])) !!} <br> | ||||
|         @endif | ||||
|  | ||||
| @ -1,11 +1,11 @@ | ||||
| @if($estimate->user->shippingaddress) | ||||
|     <p class="ship-to">Ship To,</p> | ||||
|     <p class="shipping-address-label">Ship To,</p> | ||||
|     @if($estimate->user->shippingaddress->name) | ||||
|         <p class="ship-user-name"> | ||||
|         <p class="shipping-address-name"> | ||||
|             {{$estimate->user->shippingaddress->name}} | ||||
|         </p> | ||||
|     @endif | ||||
|     <p class="ship-user-address"> | ||||
|     <p class="shipping-address"> | ||||
|         @if($estimate->user->shippingaddress->address_street_1) | ||||
|             {!! nl2br(htmlspecialchars($estimate->user->shippingaddress->address_street_1)) !!}<br> | ||||
|         @endif | ||||
| @ -30,8 +30,8 @@ | ||||
|             {{$estimate->user->shippingaddress->country->name}}<br> | ||||
|         @endif | ||||
|  | ||||
|         @if($estimate->user->phone) | ||||
|             <p class="ship-user-phone"> | ||||
|         @if($estimate->user->shippingAddress->phone) | ||||
|             <p class="shipping-address"> | ||||
|                 Phone :{{$estimate->user->shippingaddress->phone}} | ||||
|             </p> | ||||
|         @endif | ||||
|  | ||||
| @ -1,50 +1,49 @@ | ||||
| <table width="100%" class="table2" cellspacing="0" border="0"> | ||||
|     <tr class="main-table-header"> | ||||
|         <th width="2%" class="ItemTableHeader" style="text-align: right; color: #55547A; padding-right: 20px">#</th> | ||||
|         <th width="40%" class="ItemTableHeader" style="text-align: left; color: #55547A; padding-left: 0px">Items</th> | ||||
|         <th class="ItemTableHeader" style="text-align: right; color: #55547A; padding-right: 20px">Quantity</th> | ||||
|         <th class="ItemTableHeader" style="text-align: right; color: #55547A; padding-right: 20px">Price</th> | ||||
| <table width="100%" class="items-table" cellspacing="0" border="0"> | ||||
|     <tr class="item-table-heading-row"> | ||||
|         <th width="2%" class="item-table-heading text-right pr-20">#</th> | ||||
|         <th width="40%" class="item-table-heading text-left pl-0">Items</th> | ||||
|         <th class="item-table-heading text-right pr-20">Quantity</th> | ||||
|         <th class="item-table-heading text-right pr-20">Price</th> | ||||
|         @if($estimate->discount_per_item === 'YES') | ||||
|         <th class="ItemTableHeader" style="text-align: right; color: #55547A; padding-left: 10px">Discount</th> | ||||
|         <th class="item-table-heading text-right pl-10">Discount</th> | ||||
|         @endif | ||||
|         <th class="ItemTableHeader" style="text-align: right; color: #55547A;">Amount</th> | ||||
|         <th class="item-table-heading text-right">Amount </th> | ||||
|     </tr> | ||||
|     @php | ||||
|         $index = 1 | ||||
|     @endphp | ||||
|     @foreach ($estimate->items as $item) | ||||
|         <tr class="item-details"> | ||||
|         <tr class="item-row"> | ||||
|             <td | ||||
|                 class="inv-item items" | ||||
|                 style="text-align: right; color: #040405; padding-right: 20px; vertical-align: top;" | ||||
|                 class="item-cell text-right pr-20" | ||||
|                 style="vertical-align: top;" | ||||
|             > | ||||
|                 {{$index}} | ||||
|             </td> | ||||
|             <td | ||||
|                 class="inv-item items" | ||||
|                 style="text-align: left; color: #040405;padding-left: 0px" | ||||
|                 class="item-cell text-left pl-0" | ||||
|             > | ||||
|                 <span>{{ $item->name }}</span><br> | ||||
|                 <span | ||||
|                     style="text-align: left; color: #595959; font-size: 9px; font-weight:300; line-height: 12px;" | ||||
|                     class="item-description" | ||||
|                 > | ||||
|                     {!! nl2br(htmlspecialchars($item->description)) !!} | ||||
|                 </span> | ||||
|             </td> | ||||
|             <td | ||||
|                 class="inv-item items" | ||||
|                 style="text-align: right; color: #040405; padding-right: 20px" | ||||
|                 class="item-cell text-right pr-20" | ||||
|                 style="vertical-align: top;" | ||||
|             > | ||||
|                 {{$item->quantity}} | ||||
|             </td> | ||||
|             <td | ||||
|                 class="inv-item items" | ||||
|                 style="text-align: right; color: #040405; padding-right: 20px" | ||||
|                 class="item-cell text-right pr-20" | ||||
|                 style="vertical-align: top;" | ||||
|             > | ||||
|                 {!! format_money_pdf($item->price, $estimate->user->currency) !!} | ||||
|             </td> | ||||
|             @if($estimate->discount_per_item === 'YES') | ||||
|                 <td class="inv-item items" style="text-align: right; color: #040405; padding-left: 10px"> | ||||
|                 <td class="item-cell text-right pl-10" style="vertical-align: top;"> | ||||
|                     @if($item->discount_type === 'fixed') | ||||
|                         {!! format_money_pdf($item->discount_val, $estimate->user->currency) !!} | ||||
|                     @endif | ||||
| @ -53,7 +52,7 @@ | ||||
|                     @endif | ||||
|                 </td> | ||||
|             @endif | ||||
|             <td class="inv-item items" style="text-align: right; color: #040405;"> | ||||
|             <td class="item-cell text-right" style="vertical-align: top;"> | ||||
|                 {!! format_money_pdf($item->total, $estimate->user->currency) !!} | ||||
|             </td> | ||||
|         </tr> | ||||
| @ -63,74 +62,68 @@ | ||||
|     @endforeach | ||||
| </table> | ||||
|  | ||||
| <hr class="items-table-hr"> | ||||
| <hr class="item-cell-table-hr"> | ||||
|  | ||||
| <table width="100%" cellspacing="0px" style="margin-left:420px;margin-top: 10px" border="0" class="table3 @if(count($estimate->items) > 12) page-break @endif"> | ||||
|     <tr> | ||||
|         <td class="no-borde" style="color: #55547A; padding-left:10px;  font-size:12px;">Subtotal</td> | ||||
|         <td class="no-border items" | ||||
|             style="padding-right:10px; text-align: right;  font-size:12px; color: #040405; font-weight: 500;">{!! format_money_pdf($estimate->sub_total, $estimate->user->currency) !!}</td> | ||||
|     </tr> | ||||
|  | ||||
|     @if ($estimate->tax_per_item === 'YES') | ||||
|         @for ($i = 0; $i < count($labels); $i++) | ||||
|             <tr> | ||||
|                 <td class="no-border" style="padding-left:10px; text-align:left; font-size:12px;  color: #55547A;"> | ||||
|                     {{$labels[$i]}} | ||||
|                 </td> | ||||
|                 <td class="no-border items padd2" style="padding-right:10px; font-weight: 500; text-align: right; font-size:12px;  color: #040405"> | ||||
|                     {!! format_money_pdf($taxes[$i], $estimate->user->currency) !!} | ||||
|                 </td> | ||||
|             </tr> | ||||
|         @endfor | ||||
|     @else | ||||
|         @foreach ($estimate->taxes as $tax) | ||||
|             <tr> | ||||
|                 <td class="no-border" style="padding-left:10px; text-align:left; font-size:12px;  color: #55547A;"> | ||||
|                     {{$tax->name.' ('.$tax->percent.'%)'}} | ||||
|                 </td> | ||||
|                 <td class="no-border items padd2" style="padding-right:10px; font-weight: 500; text-align: right; font-size:12px;  color: #040405"> | ||||
|                     {!! format_money_pdf($tax->amount, $estimate->user->currency) !!} | ||||
|                 </td> | ||||
|             </tr> | ||||
|         @endforeach | ||||
|     @endif | ||||
|  | ||||
|     @if ($estimate->discount_per_item === 'NO') | ||||
| <div class="total-display-container"> | ||||
|     <table width="100%" cellspacing="0px" border="0" class="total-display-table @if(count($estimate->items) > 12) page-break @endif"> | ||||
|         <tr> | ||||
|             <td class="no-border" style="padding-left:10px; text-align:left; font-size:12px; color: #55547A;"> | ||||
|                 @if($estimate->discount_type === 'fixed') | ||||
|                     Discount | ||||
|                 @endif | ||||
|                 @if($estimate->discount_type === 'percentage') | ||||
|                     Discount ({{$estimate->discount}}%) | ||||
|                 @endif | ||||
|             </td> | ||||
|             <td class="no-border items padd2" style="padding-right:10px; font-weight: 500; text-align: right; font-size:12px;  color: #040405"> | ||||
|                 @if($estimate->discount_type === 'fixed') | ||||
|                     {!! format_money_pdf($estimate->discount_val, $estimate->user->currency) !!} | ||||
|                 @endif | ||||
|                 @if($estimate->discount_type === 'percentage') | ||||
|                     {!! format_money_pdf($estimate->discount_val, $estimate->user->currency) !!} | ||||
|                 @endif | ||||
|             <td class="border-0 total-table-attribute-label">Subtotal</td> | ||||
|             <td class="border-0 item-cell total-table-attribute-value ">{!! format_money_pdf($estimate->sub_total, $estimate->user->currency) !!}</td> | ||||
|         </tr> | ||||
|  | ||||
|         @if ($estimate->tax_per_item === 'YES') | ||||
|             @for ($i = 0; $i < count($labels); $i++) | ||||
|                 <tr> | ||||
|                     <td class="border-0 total-table-attribute-label"> | ||||
|                         {{$labels[$i]}} | ||||
|                     </td> | ||||
|                     <td class="border-0 item-cell  total-table-attribute-value"> | ||||
|                         {!! format_money_pdf($taxes[$i], $estimate->user->currency) !!} | ||||
|                     </td> | ||||
|                 </tr> | ||||
|             @endfor | ||||
|         @else | ||||
|             @foreach ($estimate->taxes as $tax) | ||||
|                 <tr> | ||||
|                     <td class="border-0 total-table-attribute-label"> | ||||
|                         {{$tax->name.' ('.$tax->percent.'%)'}} | ||||
|                     </td> | ||||
|                     <td class="border-0 item-cell total-table-attribute-value" > | ||||
|                         {!! format_money_pdf($tax->amount, $estimate->user->currency) !!} | ||||
|                     </td> | ||||
|                 </tr> | ||||
|             @endforeach | ||||
|         @endif | ||||
|  | ||||
|         @if ($estimate->discount_per_item === 'NO') | ||||
|             <tr> | ||||
|                 <td class="border-0 total-table-attribute-label pl-10"> | ||||
|                     @if($estimate->discount_type === 'fixed') | ||||
|                         Discount | ||||
|                     @endif | ||||
|                     @if($estimate->discount_type === 'percentage') | ||||
|                         Discount ({{$estimate->discount}}%) | ||||
|                     @endif | ||||
|                 </td> | ||||
|                 <td class="border-0 item-cell total-table-attribute-value text-right"> | ||||
|                     @if($estimate->discount_type === 'fixed') | ||||
|                         {!! format_money_pdf($estimate->discount_val, $estimate->user->currency) !!} | ||||
|                     @endif | ||||
|                     @if($estimate->discount_type === 'percentage') | ||||
|                         {!! format_money_pdf($estimate->discount_val, $estimate->user->currency) !!} | ||||
|                     @endif | ||||
|                 </td> | ||||
|             </tr> | ||||
|         @endif | ||||
|         <tr> | ||||
|             <td class="py-3"></td> | ||||
|             <td class="py-3"></td> | ||||
|         </tr> | ||||
|         <tr> | ||||
|             <td class="border-0 total-border-left total-table-attribute-label">Total</td> | ||||
|             <td class="border-0 total-border-right item-cell py-8 total-table-attribute-value text-primary"> | ||||
|                 {!! format_money_pdf($estimate->total, $estimate->user->currency)!!} | ||||
|             </td> | ||||
|         </tr> | ||||
|     @endif | ||||
|     <tr> | ||||
|         <td style="padding:3px 0px"></td> | ||||
|         <td style="padding:3px 0px"></td> | ||||
|     </tr> | ||||
|     <tr> | ||||
|         <td class="no-border total-border-left" | ||||
|             style="padding-left:10px; padding-bottom:10px; text-align:left; padding-top:20px; font-size:12px;  color: #55547A;" | ||||
|         > | ||||
|             <label class="total-bottom"> Total </label> | ||||
|         </td> | ||||
|         <td | ||||
|             class="no-border total-border-right items padd8" | ||||
|             style="padding-right:10px; font-weight: 500; text-align: right; font-size:12px;  padding-top:20px; color: #5851DB" | ||||
|         > | ||||
|             {!! format_money_pdf($estimate->total, $estimate->user->currency)!!} | ||||
|         </td> | ||||
|     </tr> | ||||
| </table> | ||||
|     </table> | ||||
| </div> | ||||
|  | ||||
| @ -6,6 +6,7 @@ | ||||
|     <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | ||||
|  | ||||
|     <style type="text/css"> | ||||
|         /* -- Base -- */ | ||||
|         body { | ||||
|             font-family: "DejaVu Sans"; | ||||
|         } | ||||
| @ -16,16 +17,8 @@ | ||||
|             margin-top: 50px; | ||||
|         } | ||||
|  | ||||
|         table { | ||||
|             border-collapse: collapse; | ||||
|         } | ||||
|  | ||||
|         .header-line { | ||||
|             color: rgba(0, 0, 0, 0.2); | ||||
|             position: absolute; | ||||
|             top: 90px; | ||||
|             left: 0px; | ||||
|             width: 100%; | ||||
|         .text-center { | ||||
|             text-align: center | ||||
|         } | ||||
|  | ||||
|         hr { | ||||
| @ -34,11 +27,17 @@ | ||||
|             border: 0.5px solid #EAF1FB; | ||||
|         } | ||||
|  | ||||
|         .header-center { | ||||
|             text-align: center | ||||
|         /* -- Header -- */ | ||||
|  | ||||
|         .header-bottom-divider { | ||||
|             color: rgba(0, 0, 0, 0.2); | ||||
|             position: absolute; | ||||
|             top: 90px; | ||||
|             left: 0px; | ||||
|             width: 100%; | ||||
|         } | ||||
|  | ||||
|         .header-table { | ||||
|         .header-container { | ||||
|             position: absolute; | ||||
|             width: 100%; | ||||
|             height: 90px; | ||||
| @ -53,125 +52,69 @@ | ||||
|             color: #817AE3; | ||||
|         } | ||||
|  | ||||
|         .inv-flex { | ||||
|             display: flex; | ||||
|         } | ||||
|  | ||||
|         .inv-data { | ||||
|             text-align: right; | ||||
|             margin-right: 120px; | ||||
|         } | ||||
|  | ||||
|         .inv-value { | ||||
|             text-align: left; | ||||
|             margin-left: 160px; | ||||
|         } | ||||
|  | ||||
|         .header { | ||||
|             font-size: 20px; | ||||
|             color: rgba(0, 0, 0, 0.7); | ||||
|         } | ||||
|  | ||||
|         .TextColor1 { | ||||
|             font-size: 16px; | ||||
|             color: rgba(0, 0, 0, 0.5); | ||||
|         } | ||||
|  | ||||
|         @page { | ||||
|             margin-top: 60px !important; | ||||
|         } | ||||
|  | ||||
|         .wrapper { | ||||
|         .content-wrapper { | ||||
|             display: block; | ||||
|             margin-top: 0px; | ||||
|             padding-top: 16px; | ||||
|             padding-bottom: 20px; | ||||
|         } | ||||
|  | ||||
|         .address { | ||||
|             /* display: inline-block; */ | ||||
|             padding-top: 30px | ||||
|         } | ||||
|  | ||||
|         .company { | ||||
|         .company-address-container { | ||||
|             padding-left: 30px; | ||||
|             font-weight: normal; | ||||
|             display: inline; | ||||
|             float: left; | ||||
|             width: 30%; | ||||
|             text-transform: capitalize; | ||||
|             margin-bottom: 2px; | ||||
|         } | ||||
|  | ||||
|         .company h1 { | ||||
|             font-style: normal; | ||||
|             font-weight: normal; | ||||
|         .company-address-container h1 { | ||||
|             font-size: 15px; | ||||
|             line-height: 22px; | ||||
|             letter-spacing: 0.05em; | ||||
|             margin-bottom: 0px; | ||||
|             margin-top: 10px; | ||||
|         } | ||||
|  | ||||
|         .company-add { | ||||
|         .company-address { | ||||
|             margin-top: 2px; | ||||
|             text-align: left; | ||||
|             font-style: normal; | ||||
|             font-weight: normal; | ||||
|             font-size: 12px; | ||||
|             line-height: 15px; | ||||
|             color: #595959; | ||||
|         } | ||||
|  | ||||
|         .job-add { | ||||
|             /* display: inline; */ | ||||
|         .invoice-details-container { | ||||
|             float: right; | ||||
|             padding: 10px 30px 0 0; | ||||
|         } | ||||
|  | ||||
|         .amount-due { | ||||
|             background-color: #f2f2f2; | ||||
|         } | ||||
|  | ||||
|         .textRight { | ||||
|             text-align: right; | ||||
|         } | ||||
|  | ||||
|         .textLeft { | ||||
|             text-align: left; | ||||
|         } | ||||
|  | ||||
|         .textStyle1 { | ||||
|             font-style: normal; | ||||
|             font-weight: normal; | ||||
|         .attribute-label { | ||||
|             font-size: 12px; | ||||
|             line-height: 18px; | ||||
|             padding-right: 40px; | ||||
|             text-align: left; | ||||
|             color: #55547A; | ||||
|         } | ||||
|  | ||||
|         .textStyle2 { | ||||
|             font-style: normal; | ||||
|             font-weight: normal; | ||||
|         .attribute-value { | ||||
|             font-size: 12px; | ||||
|             line-height: 18px; | ||||
|             text-align: right; | ||||
|         } | ||||
|  | ||||
|         .bill-add { | ||||
|             width: 45%; | ||||
|             padding: 0px 0 0 0px; | ||||
|         } | ||||
|         /* -- Shipping -- */ | ||||
|  | ||||
|         /* -------------------------- */ | ||||
|         /* shipping style */ | ||||
|  | ||||
|         .ship-address-container { | ||||
|         .shipping-address-container { | ||||
|             float: right; | ||||
|             padding-left: 30px; | ||||
|         } | ||||
|  | ||||
|         .ship-to { | ||||
|             font-style: normal; | ||||
|             font-weight: normal; | ||||
|         .shipping-address-label { | ||||
|             font-size: 12px; | ||||
|             line-height: 18px; | ||||
|             padding: 0px; | ||||
| @ -179,18 +122,15 @@ | ||||
|             margin-bottom: 0px; | ||||
|         } | ||||
|  | ||||
|         .ship-user-name { | ||||
|             max-width: 250px font-style: normal; | ||||
|             font-weight: normal; | ||||
|         .shipping-address-name { | ||||
|             max-width: 160px; | ||||
|             font-size: 15px; | ||||
|             line-height: 22px; | ||||
|             padding: 0px; | ||||
|             margin: 0px; | ||||
|         } | ||||
|  | ||||
|         .ship-user-address { | ||||
|             font-style: normal; | ||||
|             font-weight: normal; | ||||
|         .shipping-address { | ||||
|             font-size: 10px; | ||||
|             line-height: 15px; | ||||
|             color: #595959; | ||||
| @ -199,27 +139,14 @@ | ||||
|             width: 160px; | ||||
|         } | ||||
|  | ||||
|         .ship-user-phone { | ||||
|             font-style: normal; | ||||
|             font-weight: normal; | ||||
|             font-size: 10px; | ||||
|             line-height: 15px; | ||||
|             color: #595959; | ||||
|             padding: 0px; | ||||
|             margin: 0px; | ||||
|         } | ||||
|         /* -- Billing -- */ | ||||
|  | ||||
|         /* -------------------------- */ | ||||
|         /* billing style */ | ||||
|  | ||||
|         .bill-address-container { | ||||
|         .billing-address-container { | ||||
|             float: left; | ||||
|             padding-left: 30px; | ||||
|         } | ||||
|  | ||||
|         .bill-to { | ||||
|             font-style: normal; | ||||
|             font-weight: normal; | ||||
|         .billing-address-label { | ||||
|             font-size: 12px; | ||||
|             line-height: 18px; | ||||
|             padding: 0px; | ||||
| @ -227,18 +154,15 @@ | ||||
|             margin-bottom: 0px; | ||||
|         } | ||||
|  | ||||
|         .bill-user-name { | ||||
|             max-width: 250px font-style: normal; | ||||
|             font-weight: normal; | ||||
|         .billing-address-name { | ||||
|             max-width: 160px; | ||||
|             font-size: 15px; | ||||
|             line-height: 22px; | ||||
|             padding: 0px; | ||||
|             margin: 0px; | ||||
|         } | ||||
|  | ||||
|         .bill-user-address { | ||||
|             font-style: normal; | ||||
|             font-weight: normal; | ||||
|         .billing-address { | ||||
|             font-size: 10px; | ||||
|             line-height: 15px; | ||||
|             color: #595959; | ||||
| @ -247,79 +171,83 @@ | ||||
|             width: 160px; | ||||
|         } | ||||
|  | ||||
|         .bill-user-phone { | ||||
|             font-style: normal; | ||||
|             font-weight: normal; | ||||
|             font-size: 10px; | ||||
|             line-height: 15px; | ||||
|             color: #595959; | ||||
|             padding: 0px; | ||||
|             margin: 0px; | ||||
|         } | ||||
|         /* -- Items Table -- */ | ||||
|  | ||||
|         .table2 { | ||||
|         .items-table { | ||||
|             margin-top: 35px; | ||||
|             padding: 0px 30px 10px 30px; | ||||
|             page-break-before: avoid; | ||||
|             page-break-after: auto; | ||||
|         } | ||||
|  | ||||
|  | ||||
|         .table2 hr { | ||||
|         .items-table hr { | ||||
|             height: 0.1px; | ||||
|         } | ||||
|  | ||||
|         .ItemTableHeader { | ||||
|         .item-table-heading { | ||||
|             font-size: 13.5; | ||||
|             text-align: center; | ||||
|             color: rgba(0, 0, 0, 0.85); | ||||
|             padding: 5px; | ||||
|             color: #55547A; | ||||
|         } | ||||
|  | ||||
|         tr.main-table-header th { | ||||
|         tr.item-table-heading-row th { | ||||
|             border-bottom: 0.620315px solid #E8E8E8; | ||||
|             font-style: normal; | ||||
|             font-weight: normal; | ||||
|             font-size: 12px; | ||||
|             line-height: 18px; | ||||
|         } | ||||
|  | ||||
|         tr.item-details td { | ||||
|             font-style: normal; | ||||
|             font-weight: normal; | ||||
|         tr.item-row td { | ||||
|             font-size: 12px; | ||||
|             line-height: 18px; | ||||
|         } | ||||
|  | ||||
|         .items { | ||||
|         .item-cell { | ||||
|             font-size: 13; | ||||
|             color: rgba(0, 0, 0, 0.6); | ||||
|             text-align: center; | ||||
|             padding: 5px; | ||||
|             padding-top: 10px; | ||||
|             color: #040405; | ||||
|         } | ||||
|  | ||||
|         .padd8 { | ||||
|             padding-top: 8px; | ||||
|             padding-bottom: 8px; | ||||
|         .item-description { | ||||
|             color: #595959; | ||||
|             font-size: 9px; | ||||
|             line-height: 12px; | ||||
|         } | ||||
|  | ||||
|         .padd2 { | ||||
|             padding-top: 2px; | ||||
|             padding-bottom: 2px; | ||||
|         /* -- Total Display Table -- */ | ||||
|  | ||||
|         .total-display-container { | ||||
|             padding: 0 25px; | ||||
|         } | ||||
|  | ||||
|         .table3 { | ||||
|             /* border: 1px solid #EAF1FB; */ | ||||
|         .total-display-table { | ||||
|             border-top: none; | ||||
|             /* padding-right: 30px; */ | ||||
|             box-sizing: border-box; | ||||
|             width: 630px; | ||||
|             /* position: absolute; | ||||
|             right: -25; */ | ||||
|             page-break-inside: avoid; | ||||
|             page-break-before: auto; | ||||
|             page-break-after: auto; | ||||
|             margin-left: 500px; | ||||
|             margin-top: 20px; | ||||
|         } | ||||
|  | ||||
|         .total-table-attribute-label { | ||||
|             font-size: 13px; | ||||
|             color: #55547A; | ||||
|             text-align: left; | ||||
|             padding-left: 10px; | ||||
|         } | ||||
|  | ||||
|         .total-table-attribute-value { | ||||
|             font-weight: bold; | ||||
|             text-align: right; | ||||
|             font-size: 13px; | ||||
|             color: #040405; | ||||
|             padding-right: 10px; | ||||
|             padding-top: 2px; | ||||
|             padding-bottom: 2px; | ||||
|         } | ||||
|  | ||||
|         .total-border-left { | ||||
| @ -334,29 +262,11 @@ | ||||
|             border-left: 0px !important; | ||||
|             padding-top: 0px; | ||||
|             padding: 8px !important; | ||||
|  | ||||
|         } | ||||
|  | ||||
|         .inv-item { | ||||
|             border-color: #d9d9d9; | ||||
|         } | ||||
|  | ||||
|         .no-border { | ||||
|             border: none; | ||||
|         } | ||||
|  | ||||
|         .desc { | ||||
|             font-weight: 100; | ||||
|             text-align: justify; | ||||
|             font-size: 10px; | ||||
|             margin-bottom: 15px; | ||||
|             margin-top: 7px; | ||||
|             color: rgba(0, 0, 0, 0.85); | ||||
|         } | ||||
|         /* -- Notes -- */ | ||||
|  | ||||
|         .notes { | ||||
|             font-style: normal; | ||||
|             font-weight: 300; | ||||
|             font-size: 12px; | ||||
|             color: #595959; | ||||
|             margin-top: 15px; | ||||
| @ -367,8 +277,6 @@ | ||||
|         } | ||||
|  | ||||
|         .notes-label { | ||||
|             font-style: normal; | ||||
|             font-weight: normal; | ||||
|             font-size: 15px; | ||||
|             line-height: 22px; | ||||
|             letter-spacing: 0.05em; | ||||
| @ -377,67 +285,118 @@ | ||||
|             height: 19.87px; | ||||
|             padding-bottom: 10px; | ||||
|         } | ||||
|  | ||||
|         /* -- Helpers -- */ | ||||
|  | ||||
|         .text-primary { | ||||
|             color: #5851DB; | ||||
|         } | ||||
|  | ||||
|         .text-center { | ||||
|             text-align: center | ||||
|         } | ||||
|  | ||||
|         table .text-left { | ||||
|             text-align: left; | ||||
|         } | ||||
|  | ||||
|         table .text-right { | ||||
|             text-align: right; | ||||
|         } | ||||
|  | ||||
|         .border-0 { | ||||
|             border: none; | ||||
|         } | ||||
|  | ||||
|         .py-2 { | ||||
|             padding-top: 2px; | ||||
|             padding-bottom: 2px; | ||||
|         } | ||||
|  | ||||
|         .py-8 { | ||||
|             padding-top: 8px; | ||||
|             padding-bottom: 8px; | ||||
|         } | ||||
|  | ||||
|         .py-3 { | ||||
|             padding: 3px 0; | ||||
|         } | ||||
|  | ||||
|         .pr-20 { | ||||
|             padding-right: 20px; | ||||
|         } | ||||
|  | ||||
|         .pr-10 { | ||||
|             padding-right: 10px; | ||||
|         } | ||||
|  | ||||
|         .pl-20 { | ||||
|             padding-left: 20px; | ||||
|         } | ||||
|  | ||||
|         .pl-10 { | ||||
|             padding-left: 10px; | ||||
|         } | ||||
|  | ||||
|         .pl-0 { | ||||
|             padding-left: 0; | ||||
|         } | ||||
|     </style> | ||||
| </head> | ||||
|  | ||||
| <body> | ||||
|     <div class="header-table"> | ||||
|     <div class="header-container"> | ||||
|         <table width="100%"> | ||||
|             <tr> | ||||
|                 <td class="header-center"> | ||||
|                 <td class="text-center"> | ||||
|                     @if($logo) | ||||
|                     <img class="header-logo" src="{{ $logo }}" alt="Company Logo"> | ||||
|                         <img class="header-logo" src="{{ $logo }}" alt="Company Logo"> | ||||
|                     @else | ||||
|                     @if($invoice->user->company) | ||||
|                     <h2 class="header-logo"> {{$invoice->user->company->name}} </h2> | ||||
|                     @endif | ||||
|                         @if($invoice->user->company) | ||||
|                             <h2 class="header-logo"> {{$invoice->user->company->name}} </h2> | ||||
|                         @endif | ||||
|                     @endif | ||||
|                 </td> | ||||
|             </tr> | ||||
|         </table> | ||||
|         <hr class="header-line" style="border: 0.620315px solid #E8E8E8;" /> | ||||
|         <hr class="header-bottom-divider" style="border: 0.620315px solid #E8E8E8;" /> | ||||
|     </div> | ||||
|     <div class="wrapper"> | ||||
|         <div class="address"> | ||||
|             <div class="company"> | ||||
|     <div class="content-wrapper"> | ||||
|         <div style="padding-top: 30px"> | ||||
|             <div class="company-address-container"> | ||||
|                 @include('app.pdf.invoice.partials.company-address') | ||||
|             </div> | ||||
|             <div class="job-add"> | ||||
|             <div class="invoice-details-container"> | ||||
|                 <table> | ||||
|                     <tr> | ||||
|                         <td class="textStyle1" style="text-align: left; color: #55547A">Invoice Number</td> | ||||
|                         <td class="textStyle2">  {{$invoice->invoice_number}}</td> | ||||
|                         <td class="attribute-label">Invoice Number</td> | ||||
|                         <td class="attribute-value">  {{$invoice->invoice_number}}</td> | ||||
|                     </tr> | ||||
|                     <tr> | ||||
|                         <td class="textStyle1" style="text-align: left; color: #55547A">Invoice Date </td> | ||||
|                         <td class="textStyle2">  {{$invoice->formattedInvoiceDate}}</td> | ||||
|                         <td class="attribute-label">Invoice Date </td> | ||||
|                         <td class="attribute-value">  {{$invoice->formattedInvoiceDate}}</td> | ||||
|                     </tr> | ||||
|                     <tr> | ||||
|                         <td class="textStyle1" style="text-align: left; color: #55547A">Due date</td> | ||||
|                         <td class="textStyle2">  {{$invoice->formattedDueDate}}</td> | ||||
|                         <td class="attribute-label">Due date</td> | ||||
|                         <td class="attribute-value">  {{$invoice->formattedDueDate}}</td> | ||||
|                     </tr> | ||||
|                 </table> | ||||
|             </div> | ||||
|             <div style="clear: both;"></div> | ||||
|         </div> | ||||
|         <div class="bill-add"> | ||||
|             <div class="bill-address-container"> | ||||
|                 @include('app.pdf.invoice.partials.billing-address') | ||||
|             </div> | ||||
|             @if($invoice->user->billingaddress) | ||||
|             <div class="ship-address-container"> | ||||
|                 @else | ||||
|                 <div class="ship-address-container " style="float:left;padding-left:0px;"> | ||||
|                     @endif | ||||
|                     @include('app.pdf.invoice.partials.shipping-address') | ||||
|                 </div> | ||||
|                 <div style="clear: both;"></div> | ||||
|             </div> | ||||
|             <div style="position:relative"> | ||||
|                 @include('app.pdf.invoice.partials.table') | ||||
|             </div> | ||||
|             @include('app.pdf.invoice.partials.notes') | ||||
|  | ||||
|         <div class="billing-address-container"> | ||||
|             @include('app.pdf.invoice.partials.billing-address') | ||||
|         </div> | ||||
|  | ||||
|         <div class="shipping-address-container" @if($invoice->user->billingaddress) style="float:left;" @else style="float:left: padding-left: 0px;" @endif> | ||||
|             @include('app.pdf.invoice.partials.shipping-address') | ||||
|             @if($invoice->user->billingaddress) <div style="clear: both;"></div> @endif | ||||
|         </div> | ||||
|         <div style="position: relative; clear: both;"> | ||||
|             @include('app.pdf.invoice.partials.table') | ||||
|         </div> | ||||
|         @include('app.pdf.invoice.partials.notes') | ||||
| </body> | ||||
|  | ||||
| </html> | ||||
| </html> | ||||
|  | ||||
| @ -1,10 +1,11 @@ | ||||
| <!DOCTYPE html> | ||||
| <html> | ||||
|  | ||||
| <head> | ||||
|     <title>Invoice</title> | ||||
|     {{-- <link href="https://fonts.googleapis.com/css?family=Poppins&display=swap" rel="stylesheet"> --}} | ||||
|     <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> | ||||
|     <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | ||||
|     <style type="text/css"> | ||||
|         /* -- Base -- */ | ||||
|         body { | ||||
|             font-family: "DejaVu Sans"; | ||||
|         } | ||||
| @ -12,22 +13,22 @@ | ||||
|         html { | ||||
|             margin: 0px; | ||||
|             padding: 0px; | ||||
|             margin-top: 50px; | ||||
|         } | ||||
|  | ||||
|         table { | ||||
|             border-collapse: collapse; | ||||
|         } | ||||
|  | ||||
|         .header-left { | ||||
|             padding-top: 45px; | ||||
|             padding-bottom: 45px; | ||||
|             padding-left: 30px; | ||||
|             display:inline-block; | ||||
|             width:30%; | ||||
|         hr { | ||||
|             margin: 0 30px 0 30px; | ||||
|             color: rgba(0, 0, 0, 0.2); | ||||
|             border: 0.5px solid #EAF1FB; | ||||
|         } | ||||
|         @page { | ||||
|             margin-top: 60px !important; | ||||
|         } | ||||
|         .header-table { | ||||
|  | ||||
|         /* -- Header -- */ | ||||
|  | ||||
|         .header-container { | ||||
|             background: #817AE3; | ||||
|             position: absolute; | ||||
|             width: 100%; | ||||
| @ -35,61 +36,85 @@ | ||||
|             left: 0px; | ||||
|             top: -60px; | ||||
|         } | ||||
|  | ||||
|         .header-section-left { | ||||
|             padding-top: 45px; | ||||
|             padding-bottom: 45px; | ||||
|             padding-left: 30px; | ||||
|             display: inline-block; | ||||
|             width: 30%; | ||||
|         } | ||||
|  | ||||
|         .header-logo { | ||||
|             position: absolute; | ||||
|             height: 50px; | ||||
|             text-transform: capitalize; | ||||
|             color: #fff; | ||||
|         } | ||||
|         .header-right { | ||||
|             display:inline-block; | ||||
|             width:35%; | ||||
|             float:right; | ||||
|  | ||||
|         .header-section-right { | ||||
|             display: inline-block; | ||||
|             width: 35%; | ||||
|             float: right; | ||||
|             padding: 20px 30px 20px 0px; | ||||
|             text-align: right; | ||||
|             color:white; | ||||
|             color: white; | ||||
|         } | ||||
|  | ||||
|         } | ||||
|         .inv-flex{ | ||||
|             display:flex; | ||||
|         } | ||||
|         .inv-data{ | ||||
|             text-align:right; | ||||
|             margin-right:120px; | ||||
|         } | ||||
|         .inv-value{ | ||||
|             text-align:left; | ||||
|             margin-left:160px; | ||||
|         } | ||||
|         .header { | ||||
|             font-size: 20px; | ||||
|             color: rgba(0, 0, 0, 0.7); | ||||
|         } | ||||
|  | ||||
|         .TextColor1 { | ||||
|             font-size: 16px; | ||||
|             color: rgba(0, 0, 0, 0.5); | ||||
|         /*  -- Estimate Details -- */ | ||||
|  | ||||
|         .invoice-details-container { | ||||
|             text-align: center; | ||||
|             width: 40%; | ||||
|         } | ||||
|  | ||||
|         .wrapper { | ||||
|            display: block; | ||||
|            margin-top: 60px; | ||||
|            padding-bottom: 20px; | ||||
|         .invoice-details-container h1 { | ||||
|             margin: 0; | ||||
|             font-size: 24px; | ||||
|             line-height: 36px; | ||||
|             text-align: right; | ||||
|         } | ||||
|  | ||||
|         .address { | ||||
|         .invoice-details-container h4 { | ||||
|             margin: 0; | ||||
|             font-size: 10px; | ||||
|             line-height: 15px; | ||||
|             text-align: right; | ||||
|         } | ||||
|  | ||||
|         .invoice-details-container h3 { | ||||
|             margin-bottom: 1px; | ||||
|             margin-top: 0; | ||||
|         } | ||||
|  | ||||
|         /* -- Content Wrapper -- */ | ||||
|  | ||||
|         .content-wrapper { | ||||
|             display: block; | ||||
|             margin-top: 60px; | ||||
|             padding-bottom: 20px; | ||||
|         } | ||||
|  | ||||
|         .address-container { | ||||
|             display: block; | ||||
|             padding-top: 20px; | ||||
|         } | ||||
|         .company { | ||||
|  | ||||
|         /* -- Company -- */ | ||||
|  | ||||
|         .company-address-container { | ||||
|             padding: 0 0 0 30px; | ||||
|             display: inline; | ||||
|             float:left; | ||||
|             width:30%; | ||||
|             float: left; | ||||
|             width: 30%; | ||||
|         } | ||||
|  | ||||
|         .company h1 { | ||||
|             font-style: normal; | ||||
|         .company-address-container h1 { | ||||
|             font-weight: bold; | ||||
|             font-size: 15px; | ||||
|             line-height: 22px; | ||||
| @ -97,37 +122,31 @@ | ||||
|             margin-bottom: 0; | ||||
|         } | ||||
|  | ||||
|         .company-add { | ||||
|             font-style: normal; | ||||
|             font-weight: normal; | ||||
|         .company-address{ | ||||
|             font-size: 10px; | ||||
|             line-height: 15px; | ||||
|             color: #595959; | ||||
|             margin-top: 0px; | ||||
|         } | ||||
|  | ||||
|         /* -------------------------- */ | ||||
|         /* billing style */ | ||||
|         .bill-address-container { | ||||
|         /* -- Billing -- */ | ||||
|  | ||||
|         .billing-address-container { | ||||
|             display: block; | ||||
|             /* position: absolute; */ | ||||
|             float:right; | ||||
|             float: right; | ||||
|             padding: 0 40px 0 0; | ||||
|         } | ||||
|  | ||||
|         .bill-to { | ||||
|             font-style: normal; | ||||
|             font-weight: normal; | ||||
|         .billing-address-label { | ||||
|             font-size: 12px; | ||||
|             line-height: 18px; | ||||
|             padding: 0px; | ||||
|             margin-bottom: 0px; | ||||
|         } | ||||
|  | ||||
|         .bill-user-name { | ||||
|             max-width: 250px | ||||
|             font-style: normal; | ||||
|             font-weight: normal; | ||||
|         .billing-address-name { | ||||
|             max-width: 250px; | ||||
|             font-size: 15px; | ||||
|             line-height: 22px; | ||||
|             padding: 0px; | ||||
| @ -135,9 +154,7 @@ | ||||
|             margin-bottom: 0px; | ||||
|         } | ||||
|  | ||||
|         .bill-user-address { | ||||
|             font-style: normal; | ||||
|             font-weight: normal; | ||||
|         .billing-address{ | ||||
|             font-size: 10px; | ||||
|             line-height: 15px; | ||||
|             color: #595959; | ||||
| @ -145,37 +162,24 @@ | ||||
|             margin: 0px; | ||||
|             width: 170px; | ||||
|         } | ||||
|         .bill-user-phone { | ||||
|             font-style: normal; | ||||
|             font-weight: normal; | ||||
|             font-size: 10px; | ||||
|             line-height: 15px; | ||||
|             color: #595959; | ||||
|             padding: 0px; | ||||
|             margin: 0px; | ||||
|         } | ||||
|  | ||||
|         /* -------------------------- */ | ||||
|         /* shipping style */ | ||||
|         .ship-address-container { | ||||
|         /* -- Shipping -- */ | ||||
|  | ||||
|         .shipping-address-container { | ||||
|             display: block; | ||||
|             float:right; | ||||
|             float: right; | ||||
|             padding: 0 30px 0 0; | ||||
|         } | ||||
|  | ||||
|         .ship-to { | ||||
|             font-style: normal; | ||||
|             font-weight: normal; | ||||
|         .shipping-address-label { | ||||
|             font-size: 12px; | ||||
|             line-height: 18px; | ||||
|             padding: 0px; | ||||
|             margin-bottom: 0px; | ||||
|         } | ||||
|  | ||||
|         .ship-user-name { | ||||
|             max-width: 250px | ||||
|             font-style: normal; | ||||
|             font-weight: normal; | ||||
|         .shipping-address-name { | ||||
|             max-width: 250px; | ||||
|             font-size: 15px; | ||||
|             line-height: 22px; | ||||
|             padding: 0px; | ||||
| @ -183,9 +187,7 @@ | ||||
|             margin-bottom: 0px; | ||||
|         } | ||||
|  | ||||
|         .ship-user-address { | ||||
|             font-style: normal; | ||||
|             font-weight: normal; | ||||
|         .shipping-address { | ||||
|             font-size: 10px; | ||||
|             line-height: 15px; | ||||
|             color: #595959; | ||||
| @ -194,192 +196,106 @@ | ||||
|             width: 170px; | ||||
|         } | ||||
|  | ||||
|         .ship-user-phone { | ||||
|             font-style: normal; | ||||
|             font-weight: normal; | ||||
|             font-size: 10px; | ||||
|             line-height: 15px; | ||||
|             color: #595959; | ||||
|             padding: 0px; | ||||
|             margin: 0px; | ||||
|         } | ||||
|         /* -- Items Table -- */ | ||||
|  | ||||
|         .job-add { | ||||
|             display: inline; | ||||
|             float: right; | ||||
|             width:40%; | ||||
|         } | ||||
|  | ||||
|         .amount-due { | ||||
|             background-color: #f2f2f2; | ||||
|         } | ||||
|  | ||||
|         .textRight { | ||||
|             text-align: right; | ||||
|         } | ||||
|  | ||||
|         .textLeft { | ||||
|             text-align: left; | ||||
|         } | ||||
|  | ||||
|         .textStyle1 { | ||||
|             font-size: 12; | ||||
|             font-weight: bold; | ||||
|             line-height:22px; | ||||
|             color: rgba(0, 0, 0, 0.8); | ||||
|         } | ||||
|  | ||||
|         .textStyle2 { | ||||
|             font-size: 12; | ||||
|             line-height:22px; | ||||
|             color: rgba(0, 0, 0, 0.7); | ||||
|         } | ||||
|  | ||||
|         .main-table-header td { | ||||
|             padding: 5px; | ||||
|             padding-bottom: 10px; | ||||
|         } | ||||
|  | ||||
|         .main-table-header { | ||||
|             border-bottom: 1px solid red; | ||||
|         } | ||||
|  | ||||
|         .table2 { | ||||
|             margin-top: 30px; | ||||
|         .items-table { | ||||
|             margin-top: 35px; | ||||
|             padding: 0px 30px 10px 30px; | ||||
|             page-break-before: avoid; | ||||
|             page-break-after: auto; | ||||
|         } | ||||
|  | ||||
|         hr { | ||||
|             margin: 0 30px 0 30px; | ||||
|             color:rgba(0, 0, 0, 0.2); | ||||
|             border: 0.5px solid #EAF1FB; | ||||
|         .items-table hr { | ||||
|             height: 0.1px; | ||||
|         } | ||||
|  | ||||
|         .table2 hr { | ||||
|             height:0.1px; | ||||
|         } | ||||
|  | ||||
|         .ItemTableHeader { | ||||
|         .item-table-heading { | ||||
|             font-size: 13.5; | ||||
|             text-align: center; | ||||
|             color: rgba(0, 0, 0, 0.85); | ||||
|             padding: 5px; | ||||
|             color: #55547A; | ||||
|         } | ||||
|  | ||||
|         tr.main-table-header th { | ||||
|         tr.item-table-heading-row th { | ||||
|             border-bottom: 0.620315px solid #E8E8E8; | ||||
|             font-style: normal; | ||||
|             font-weight: normal; | ||||
|             font-size: 12px; | ||||
|             line-height: 18px; | ||||
|         } | ||||
|  | ||||
|         tr.item-details td { | ||||
|             font-style: normal; | ||||
|             font-weight: normal; | ||||
|         tr.item-row td { | ||||
|             font-size: 12px; | ||||
|             line-height: 18px; | ||||
|         } | ||||
|  | ||||
|         .items { | ||||
|         .item-cell { | ||||
|             font-size: 13; | ||||
|             color: rgba(0, 0, 0, 0.6); | ||||
|             text-align: center; | ||||
|             padding: 5px; | ||||
|             padding-top: 10px; | ||||
|             color: #040405; | ||||
|         } | ||||
|  | ||||
|         .note-header { | ||||
|             font-size: 13; | ||||
|             color: rgba(0, 0, 0, 0.6); | ||||
|         .item-description { | ||||
|             color: #595959; | ||||
|             font-size: 9px; | ||||
|             line-height: 12px; | ||||
|         } | ||||
|  | ||||
|         .note-text { | ||||
|             font-size: 10; | ||||
|             color: rgba(0, 0, 0, 0.6); | ||||
|         /* -- Total Display Table -- */ | ||||
|  | ||||
|         .total-display-container { | ||||
|             padding: 0 25px; | ||||
|         } | ||||
|  | ||||
|         .padd8 { | ||||
|             padding-top: 8px; | ||||
|             padding-bottom: 8px; | ||||
|         .item-cell-table-hr { | ||||
|             margin: 0 25px 0 30px; | ||||
|         } | ||||
|  | ||||
|         .padd2 { | ||||
|         .total-display-table { | ||||
|             box-sizing: border-box; | ||||
|             page-break-inside: avoid; | ||||
|             page-break-before: auto; | ||||
|             page-break-after: auto; | ||||
|             margin-left: 500px; | ||||
|             border: 1px solid #EAF1FB; | ||||
|             border-top: none; | ||||
|         } | ||||
|  | ||||
|         .total-table-attribute-label { | ||||
|             font-size: 12px; | ||||
|             color: #55547A; | ||||
|             text-align: left; | ||||
|             padding-left: 10px; | ||||
|         } | ||||
|  | ||||
|         .total-table-attribute-value { | ||||
|             font-weight: 500; | ||||
|             text-align: right; | ||||
|             font-size: 12px; | ||||
|             color: #040405; | ||||
|             padding-right: 10px; | ||||
|             padding-top: 2px; | ||||
|             padding-bottom: 2px; | ||||
|         } | ||||
|  | ||||
|         .table3 { | ||||
|             border: 1px solid #EAF1FB; | ||||
|             border-top: none; | ||||
|             box-sizing: border-box; | ||||
|             width: 630px; | ||||
|             page-break-inside: avoid; | ||||
|             page-break-before: auto; | ||||
|             page-break-after: auto; | ||||
|         .total-border-left { | ||||
|             border: 1px solid #E8E8E8 !important; | ||||
|             border-right: 0px !important; | ||||
|             padding-top: 0px; | ||||
|             padding: 8px !important; | ||||
|         } | ||||
|  | ||||
|         .text-per-item-table3 { | ||||
|             border: 1px solid #EAF1FB; | ||||
|             border-top: none; | ||||
|             padding-right: 30px; | ||||
|             box-sizing: border-box; | ||||
|             width: 260px; | ||||
|             /* height: 100px; */ | ||||
|             position: absolute; | ||||
|             right: -25; | ||||
|         .total-border-right { | ||||
|             border: 1px solid #E8E8E8 !important; | ||||
|             border-left: 0px !important; | ||||
|             padding-top: 0px; | ||||
|             padding: 8px !important; | ||||
|         } | ||||
|  | ||||
|         .inv-item { | ||||
|             border-color: #d9d9d9; | ||||
|         } | ||||
|  | ||||
|         .no-border { | ||||
|             border: none; | ||||
|         } | ||||
|  | ||||
|         .desc { | ||||
|             font-weight: 100; | ||||
|             text-align: justify; | ||||
|             font-size: 10px; | ||||
|             margin-bottom: 15px; | ||||
|             margin-top:7px; | ||||
|             color:rgba(0, 0, 0, 0.85); | ||||
|         } | ||||
|  | ||||
|         .company-details{ | ||||
|             text-align: center; | ||||
|             width: 40%; | ||||
|         } | ||||
|  | ||||
|         .company-details h1 { | ||||
|             margin:0; | ||||
|             font-style: normal; | ||||
|             font-weight: 500; | ||||
|             font-size: 24px; | ||||
|             line-height: 36px; | ||||
|             text-align: right; | ||||
|         } | ||||
|  | ||||
|         .company-details h4 { | ||||
|             margin:0; | ||||
|             font-style: normal; | ||||
|             font-weight: normal; | ||||
|             font-size: 10px; | ||||
|             line-height: 15px; | ||||
|             text-align: right; | ||||
|         } | ||||
|  | ||||
|         .company-details h3 { | ||||
|              margin-bottom:1px; | ||||
|              margin-top:0; | ||||
|         } | ||||
|         /* -- Notes -- */ | ||||
|  | ||||
|         .notes { | ||||
|             font-style: normal; | ||||
|             font-weight: 300; | ||||
|             font-size: 12px; | ||||
|             color: #595959; | ||||
|             margin-top: 15px; | ||||
| @ -390,8 +306,6 @@ | ||||
|         } | ||||
|  | ||||
|         .notes-label { | ||||
|             font-style: normal; | ||||
|             font-weight: normal; | ||||
|             font-size: 15px; | ||||
|             line-height: 22px; | ||||
|             letter-spacing: 0.05em; | ||||
| @ -401,23 +315,79 @@ | ||||
|             padding-bottom: 10px; | ||||
|         } | ||||
|  | ||||
|         /* -- Helpers -- */ | ||||
|  | ||||
|         .text-primary { | ||||
|             color: #5851DB; | ||||
|         } | ||||
|  | ||||
|         .text-center { | ||||
|             text-align: center | ||||
|         } | ||||
|  | ||||
|         table .text-left { | ||||
|             text-align: left; | ||||
|         } | ||||
|  | ||||
|         table .text-right { | ||||
|             text-align: right; | ||||
|         } | ||||
|  | ||||
|         .border-0 { | ||||
|             border: none; | ||||
|         } | ||||
|  | ||||
|         .py-2 { | ||||
|             padding-top: 2px; | ||||
|             padding-bottom: 2px; | ||||
|         } | ||||
|  | ||||
|         .py-8 { | ||||
|             padding-top: 8px; | ||||
|             padding-bottom: 8px; | ||||
|         } | ||||
|  | ||||
|         .py-3 { | ||||
|             padding: 3px 0; | ||||
|         } | ||||
|  | ||||
|         .pr-20 { | ||||
|             padding-right: 20px; | ||||
|         } | ||||
|  | ||||
|         .pr-10 { | ||||
|             padding-right: 10px; | ||||
|         } | ||||
|  | ||||
|         .pl-20 { | ||||
|             padding-left: 20px; | ||||
|         } | ||||
|  | ||||
|         .pl-10 { | ||||
|             padding-left: 10px; | ||||
|         } | ||||
|  | ||||
|         .pl-0 { | ||||
|             padding-left: 0; | ||||
|         } | ||||
|     </style> | ||||
| </head> | ||||
|  | ||||
| <body> | ||||
|     <div class="header-table"> | ||||
|     <div class="header-container"> | ||||
|         <table width="100%"> | ||||
|             <tr> | ||||
|                 @if($logo) | ||||
|                     <td width="60%" class="header-left"> | ||||
|                         <img class="header-logo" src="{{ $logo }}" alt="Company Logo"> | ||||
|                 @else | ||||
|                     <td width="60%" class="header-left" style="padding-top: 0px;"> | ||||
|                         @if($invoice->user->company) | ||||
|                             <h1 class="header-logo"> {{$invoice->user->company->name}} </h1> | ||||
|                         @endif | ||||
|                 @endif | ||||
|                 <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="40%" class="header-right company-details"> | ||||
|                 <td width="40%" class="header-section-right invoice-details-container"> | ||||
|                     <h1>Invoice</h1> | ||||
|                     <h4>{{$invoice->invoice_number}}</h4> | ||||
|                     <h4>{{$invoice->formattedInvoiceDate}}</h4> | ||||
| @ -426,25 +396,26 @@ | ||||
|         </table> | ||||
|     </div> | ||||
|     <hr> | ||||
|     <div class="wrapper"> | ||||
|         <div class="address"> | ||||
|             <div class="company"> | ||||
|     <div class="content-wrapper"> | ||||
|         <div class="address-container"> | ||||
|             <div class="company-address-container"> | ||||
|                 @include('app.pdf.invoice.partials.company-address') | ||||
|             </div> | ||||
|             <div class="ship-address-container"> | ||||
|             <div class="shipping-address-container"> | ||||
|                 @include('app.pdf.invoice.partials.shipping-address') | ||||
|             </div> | ||||
|             @if($invoice->user->shippingaddress) | ||||
|                 <div class="bill-address-container"> | ||||
|             @else | ||||
|                 <div class="bill-address-container" style="float:right;padding-right:0px;"> | ||||
|             @endif | ||||
|                 @include('app.pdf.invoice.partials.billing-address') | ||||
|             <div class="billing-address-container"> | ||||
|                 @else | ||||
|                 <div class="billing-address-container" style="float:right;padding-right:0px;"> | ||||
|                     @endif | ||||
|                     @include('app.pdf.invoice.partials.billing-address') | ||||
|                 </div> | ||||
|                 <div style="clear: both;"></div> | ||||
|             </div> | ||||
|             <div style="clear: both;"></div> | ||||
|             @include('app.pdf.invoice.partials.table') | ||||
|             @include('app.pdf.invoice.partials.notes') | ||||
|         </div> | ||||
|         @include('app.pdf.invoice.partials.table') | ||||
|         @include('app.pdf.invoice.partials.notes') | ||||
|     </div> | ||||
| </body> | ||||
|  | ||||
| </html> | ||||
|  | ||||
| @ -1,11 +1,13 @@ | ||||
| <!DOCTYPE html> | ||||
| <html> | ||||
|  | ||||
| <head> | ||||
|     <title>Invoice</title> | ||||
|     {{-- <link href="https://fonts.googleapis.com/css?family=Poppins&display=swap" rel="stylesheet"> --}} | ||||
|     <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> | ||||
|     <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | ||||
|  | ||||
|     <style type="text/css"> | ||||
|         /* -- Base -- */ | ||||
|  | ||||
|         body { | ||||
|             font-family: "DejaVu Sans"; | ||||
|         } | ||||
| @ -13,146 +15,134 @@ | ||||
|         html { | ||||
|             margin: 0px; | ||||
|             padding: 0px; | ||||
|             margin-top: 50px; | ||||
|         } | ||||
|  | ||||
|         table { | ||||
|             border-collapse: collapse; | ||||
|         } | ||||
|  | ||||
|         .header-line { | ||||
|             color:rgba(0, 0, 0, 0.2); | ||||
|             position: absolute; | ||||
|             top: 80px; | ||||
|             left: 0px; | ||||
|             right: -70px; | ||||
|             width: 100%; | ||||
|         } | ||||
|  | ||||
|         hr { | ||||
|             color:rgba(0, 0, 0, 0.2); | ||||
|             color: rgba(0, 0, 0, 0.2); | ||||
|             border: 0.5px solid #EAF1FB; | ||||
|         } | ||||
|  | ||||
|         .items-table-hr{ | ||||
|             margin: 0 30px 0 30px; | ||||
|         /* -- Header -- */ | ||||
|  | ||||
|         .header-bottom-divider { | ||||
|             color: rgba(0, 0, 0, 0.2); | ||||
|             position: absolute; | ||||
|             top: 100px; | ||||
|             left: 0px; | ||||
|             width: 100%; | ||||
|         } | ||||
|  | ||||
|  | ||||
|         .header-left { | ||||
|         .header-section-left { | ||||
|             padding-top: 45px; | ||||
|             padding-bottom: 45px; | ||||
|             padding-left: 30px; | ||||
|             display:inline-block; | ||||
|             width:30%; | ||||
|             display: inline-block; | ||||
|             width: 30%; | ||||
|         } | ||||
|         .header-table { | ||||
|  | ||||
|         .header-container { | ||||
|             position: absolute; | ||||
|             width: 100%; | ||||
|             height: 150px; | ||||
|             left: 0px; | ||||
|             top: -60px; | ||||
|         } | ||||
|  | ||||
|         .header-logo { | ||||
|             position: absolute; | ||||
|             height: 50px; | ||||
|             text-transform: capitalize; | ||||
|             color: #817AE3; | ||||
|         } | ||||
|         .header-right { | ||||
|             display:inline-block; | ||||
|  | ||||
|         .header-section-right { | ||||
|             display: inline-block; | ||||
|             position: absolute; | ||||
|             right:0; | ||||
|             right: 0; | ||||
|             padding: 15px 30px 15px 0px; | ||||
|             float: right; | ||||
|         } | ||||
|         .inv-flex{ | ||||
|             display:flex; | ||||
|         } | ||||
|         .inv-data{ | ||||
|             text-align:right; | ||||
|             margin-right:120px; | ||||
|         } | ||||
|         .inv-value{ | ||||
|             text-align:left; | ||||
|             margin-left:160px; | ||||
|         } | ||||
|  | ||||
|         .header { | ||||
|             font-size: 20px; | ||||
|             color: rgba(0, 0, 0, 0.7); | ||||
|         } | ||||
|  | ||||
|         .TextColor1 { | ||||
|             font-size: 16px; | ||||
|             color: rgba(0, 0, 0, 0.5); | ||||
|         /* -- Company Address */ | ||||
|  | ||||
|         .company-address-container { | ||||
|             width: auto; | ||||
|             text-transform: capitalize; | ||||
|             margin-bottom: 2px; | ||||
|         } | ||||
|  | ||||
|         @page { | ||||
|             margin-top: 60px !important; | ||||
|         } | ||||
|         .wrapper { | ||||
|            display: block; | ||||
|            padding-top: 50px; | ||||
|            padding-bottom: 20px; | ||||
|         } | ||||
|  | ||||
|         .address { | ||||
|             display: inline-block; | ||||
|             padding-top: 100px; | ||||
|         } | ||||
|  | ||||
|         .bill-add { | ||||
|             display: block; | ||||
|             float:left; | ||||
|             width:40%; | ||||
|             padding: 0 0 0 30px; | ||||
|         } | ||||
|         .company { | ||||
|             padding-left: 30px; | ||||
|             display: inline; | ||||
|             float:left; | ||||
|             width:30%; | ||||
|         } | ||||
|  | ||||
|         .company h1 { | ||||
|             font-style: normal; | ||||
|             font-weight: bold; | ||||
|             font-size: 18px; | ||||
|          .company-address-container h1 { | ||||
|             font-size: 15px; | ||||
|             line-height: 22px; | ||||
|             letter-spacing: 0.05em; | ||||
|             margin-bottom: 0px; | ||||
|             margin-top: 10px; | ||||
|         } | ||||
|  | ||||
|         .company-add { | ||||
|             text-align: left; | ||||
|             font-style: normal; | ||||
|             font-weight: normal; | ||||
|             font-size: 10px; | ||||
|         .company-address { | ||||
|             margin-top: 2px; | ||||
|             font-size: 12px; | ||||
|             line-height: 15px; | ||||
|             color: #595959; | ||||
|             margin: 0px; | ||||
|         } | ||||
|  | ||||
|          /* -------------------------- */ | ||||
|         /* shipping style */ | ||||
|         .ship-to { | ||||
|         /* -- Content Wrapper  */ | ||||
|  | ||||
|         .content-wrapper { | ||||
|             display: block; | ||||
|             padding-top: 100px; | ||||
|             padding-bottom: 20px; | ||||
|         } | ||||
|  | ||||
|         .main-content { | ||||
|  | ||||
|         } | ||||
|  | ||||
|         .customer-address-container { | ||||
|             display: block; | ||||
|             float: left; | ||||
|             width: 40%; | ||||
|             padding: 0 0 0 30px; | ||||
|         } | ||||
|  | ||||
|         /* -- Shipping -- */ | ||||
|         .shipping-address-container { | ||||
|             float:right; | ||||
|             display: block; | ||||
|         } | ||||
|  | ||||
|         .shipping-address-container--left { | ||||
|             float:left; | ||||
|             display: block; | ||||
|             padding-left: 0; | ||||
|         } | ||||
|  | ||||
|         .shipping-address-label { | ||||
|             padding-top: 5px; | ||||
|             font-style: normal; | ||||
|             font-weight: normal; | ||||
|             font-size: 12px; | ||||
|             line-height: 18px; | ||||
|             margin-bottom: 0px; | ||||
|         } | ||||
|  | ||||
|         .ship-user-name { | ||||
|         .shipping-address-name { | ||||
|             padding: 0px; | ||||
|             font-style: normal; | ||||
|             font-weight: normal; | ||||
|             font-size: 15px; | ||||
|             line-height: 22px; | ||||
|             margin: 0px; | ||||
|             max-width: 160px; | ||||
|         } | ||||
|  | ||||
|         .ship-user-address { | ||||
|             font-style: normal; | ||||
|             font-weight: normal; | ||||
|         .shipping-address { | ||||
|             font-size: 10px; | ||||
|             line-height: 15px; | ||||
|             color: #595959; | ||||
| @ -160,237 +150,156 @@ | ||||
|             width: 160px; | ||||
|         } | ||||
|  | ||||
|         .ship-user-phone { | ||||
|             font-style: normal; | ||||
|             font-weight: normal; | ||||
|             font-size: 10px; | ||||
|             line-height: 15px; | ||||
|             color: #595959; | ||||
|             margin: 0px; | ||||
|         /* -- Billing -- */ | ||||
|  | ||||
|         .billing-address-container { | ||||
|             display: block; | ||||
|             float: left; | ||||
|         } | ||||
|  | ||||
|          /* -------------------------- */ | ||||
|         /* billing style */ | ||||
|         .bill-to { | ||||
|         .billing-address-label { | ||||
|             padding-top: 5px; | ||||
|             font-style: normal; | ||||
|             font-weight: normal; | ||||
|             font-size: 12px; | ||||
|             line-height: 18px; | ||||
|             margin-bottom: 0px; | ||||
|         } | ||||
|  | ||||
|         .bill-user-name { | ||||
|         .billing-address-name { | ||||
|             padding: 0px; | ||||
|             font-style: normal; | ||||
|             font-weight: normal; | ||||
|             font-size: 15px; | ||||
|             line-height: 22px; | ||||
|             margin: 0px; | ||||
|             max-width: 160px; | ||||
|         } | ||||
|  | ||||
|         .bill-user-address { | ||||
|             font-style: normal; | ||||
|             font-weight: normal; | ||||
|             font-size: 10px; | ||||
|             line-height: 15px; | ||||
|             color: #595959; | ||||
|             margin:0px; | ||||
|             width: 160px; | ||||
|         } | ||||
|  | ||||
|         .bill-user-phone { | ||||
|             font-style: normal; | ||||
|             font-weight: normal; | ||||
|         .billing-address { | ||||
|             font-size: 10px; | ||||
|             line-height: 15px; | ||||
|             color: #595959; | ||||
|             margin: 0px; | ||||
|             width: 160px; | ||||
|         } | ||||
|  | ||||
|         /*  -- Estimate Details -- */ | ||||
|  | ||||
|         .job-add { | ||||
|         .invoice-details-container { | ||||
|             display: block; | ||||
|             float: right; | ||||
|             padding: 20px 30px 0 0; | ||||
|         } | ||||
|         .amount-due { | ||||
|             background-color: #f2f2f2; | ||||
|         } | ||||
|  | ||||
|         .textRight { | ||||
|             text-align: right; | ||||
|         } | ||||
|  | ||||
|         .textLeft { | ||||
|         .attribute-label { | ||||
|             font-size: 12px; | ||||
|             line-height: 18px; | ||||
|             text-align: left; | ||||
|             color: #55547A | ||||
|         } | ||||
|  | ||||
|         .textStyle1 { | ||||
|             font-style: normal; | ||||
|             font-weight: normal; | ||||
|             font-size: 12px; | ||||
|             line-height: 18px; | ||||
|         } | ||||
|  | ||||
|         .textStyle2 { | ||||
|             font-style: normal; | ||||
|             font-weight: normal; | ||||
|         .attribute-value { | ||||
|             font-size: 12px; | ||||
|             line-height: 18px; | ||||
|             text-align: right; | ||||
|         } | ||||
|         .main-table-header td { | ||||
|             padding: 10px; | ||||
|         } | ||||
|         .main-table-header { | ||||
|             border-bottom: 1px solid red; | ||||
|         } | ||||
|         tr.main-table-header th { | ||||
|             font-style: normal; | ||||
|             font-weight: 600; | ||||
|             font-size: 12px; | ||||
|             line-height: 18px; | ||||
|         } | ||||
|         tr.item-details td { | ||||
|             font-style: normal; | ||||
|             font-weight: normal; | ||||
|             font-size: 12px; | ||||
|             line-height: 18px; | ||||
|         } | ||||
|         .table2 { | ||||
|  | ||||
|         /* -- Items Table -- */ | ||||
|  | ||||
|         .items-table { | ||||
|             margin-top: 35px; | ||||
|             padding: 0px 30px 10px 30px; | ||||
|             page-break-before: avoid; | ||||
|             page-break-after: auto; | ||||
|         } | ||||
|  | ||||
|         .table2 hr { | ||||
|             height:0.1px; | ||||
|         .items-table hr { | ||||
|             height: 0.1px; | ||||
|         } | ||||
|  | ||||
|         .ItemTableHeader { | ||||
|         .item-table-heading { | ||||
|             font-size: 13.5; | ||||
|             text-align: center; | ||||
|             color: rgba(0, 0, 0, 0.85); | ||||
|             padding: 5px; | ||||
|             color: #55547A; | ||||
|         } | ||||
|  | ||||
|         .items { | ||||
|         tr.item-table-heading-row th { | ||||
|             border-bottom: 0.620315px solid #E8E8E8; | ||||
|             font-size: 12px; | ||||
|             line-height: 18px; | ||||
|         } | ||||
|  | ||||
|         tr.item-row td { | ||||
|             font-size: 12px; | ||||
|             line-height: 18px; | ||||
|         } | ||||
|  | ||||
|         .item-cell { | ||||
|             font-size: 13; | ||||
|             color: rgba(0, 0, 0, 0.6); | ||||
|             text-align: center; | ||||
|             padding: 5px; | ||||
|             padding-top: 10px; | ||||
|             color: #040405; | ||||
|         } | ||||
|  | ||||
|         .note-header { | ||||
|             font-size: 13; | ||||
|             color: rgba(0, 0, 0, 0.6); | ||||
|         .item-description { | ||||
|             color: #595959; | ||||
|             font-size: 9px; | ||||
|             line-height: 12px; | ||||
|         } | ||||
|  | ||||
|         .note-text { | ||||
|             font-size: 10; | ||||
|             color: rgba(0, 0, 0, 0.6); | ||||
|         .item-cell-table-hr { | ||||
|             margin: 0 30px 0 30px; | ||||
|         } | ||||
|  | ||||
|         .padd8 { | ||||
|             padding-top: 8px; | ||||
|             padding-bottom: 8px; | ||||
|         /* -- Total Display Table -- */ | ||||
|  | ||||
|         .total-display-container { | ||||
|             padding: 0 25px; | ||||
|         } | ||||
|  | ||||
|         .padd2 { | ||||
|  | ||||
|         .total-display-table { | ||||
|             box-sizing: border-box; | ||||
|             page-break-inside: avoid; | ||||
|             page-break-before: auto; | ||||
|             page-break-after: auto; | ||||
|             margin-left: 500px; | ||||
|             margin-top: 20px; | ||||
|         } | ||||
|  | ||||
|         .total-table-attribute-label { | ||||
|             font-size: 12px; | ||||
|             color: #55547A; | ||||
|             text-align: left; | ||||
|             padding-left: 10px; | ||||
|         } | ||||
|  | ||||
|         .total-table-attribute-value { | ||||
|             font-weight: bold; | ||||
|             text-align: right; | ||||
|             font-size: 12px; | ||||
|             color: #040405; | ||||
|             padding-right: 10px; | ||||
|             padding-top: 2px; | ||||
|             padding-bottom: 2px; | ||||
|         } | ||||
|  | ||||
|         .table3 { | ||||
|             border: 1px solid #EAF1FB; | ||||
|             border-top: none; | ||||
|             box-sizing: border-box; | ||||
|             width: 630px; | ||||
|             page-break-inside: avoid; | ||||
|             page-break-before: auto; | ||||
|             page-break-after: auto; | ||||
|         .total-border-left { | ||||
|             border: 1px solid #E8E8E8 !important; | ||||
|             border-right: 0px !important; | ||||
|             padding-top: 0px; | ||||
|             padding: 8px !important; | ||||
|         } | ||||
|  | ||||
|         .text-per-item-table3 { | ||||
|             border: 1px solid #EAF1FB; | ||||
|             border-top: none; | ||||
|             padding-right: 30px; | ||||
|             box-sizing: border-box; | ||||
|             width: 260px; | ||||
|             /* height: 100px; */ | ||||
|             position: absolute; | ||||
|             right: -25; | ||||
|         } | ||||
|  | ||||
|         td.invoice-total1 { | ||||
|             text-align:left; | ||||
|             padding: 15px 0 15px 10px; | ||||
|             font-size:12px; | ||||
|             line-height: 18px; | ||||
|             color: #55547A; | ||||
|             border-bottom:1px solid #E8E8E8; | ||||
|             border-top:1px solid #E8E8E8; | ||||
|             border-left:1px solid #E8E8E8; | ||||
|         } | ||||
|  | ||||
|         td.invoice-total2 { | ||||
|             font-weight: 500; | ||||
|             text-align: right; | ||||
|             font-size:12px; | ||||
|             line-height: 18px; | ||||
|             padding: 15px 10px 15px 0; | ||||
|             color: #5851DB; | ||||
|             border-bottom:1px solid #E8E8E8; | ||||
|             border-top:1px solid #E8E8E8; | ||||
|             border-right:1px solid #E8E8E8; | ||||
|         } | ||||
|  | ||||
|         .inv-item { | ||||
|             border-color: #d9d9d9; | ||||
|         } | ||||
|  | ||||
|         .no-border { | ||||
|             border: none; | ||||
|         } | ||||
|         .desc { | ||||
|             font-weight: 100; | ||||
|             text-align: justify; | ||||
|             font-size: 10px; | ||||
|             margin-bottom: 15px; | ||||
|             margin-top:7px; | ||||
|             color:rgba(0, 0, 0, 0.85); | ||||
|         } | ||||
|         .company-details h1 { | ||||
|             margin:0; | ||||
|             font-style: normal; | ||||
|             font-weight: bold; | ||||
|             font-size: 15px; | ||||
|             line-height: 22px; | ||||
|             letter-spacing: 0.05em; | ||||
|             text-align: left; | ||||
|             max-width: 220px; | ||||
|         } | ||||
|         .company-details h4 { | ||||
|             margin:0; | ||||
|             font-style: normal; | ||||
|             font-weight: 100; | ||||
|             font-size: 18px; | ||||
|             line-height: 25px; | ||||
|             text-align: right; | ||||
|         } | ||||
|         .company-details h3 { | ||||
|              margin-bottom:1px; | ||||
|              margin-top:0; | ||||
|         } | ||||
|         tr.total td { | ||||
|             border-bottom:1px solid #E8E8E8; | ||||
|             border-top:1px solid #E8E8E8; | ||||
|         .total-border-right { | ||||
|             border: 1px solid #E8E8E8 !important; | ||||
|             border-left: 0px !important; | ||||
|             padding-top: 0px; | ||||
|             padding: 8px !important; | ||||
|         } | ||||
|  | ||||
|         /* -- Notes -- */ | ||||
|         .notes { | ||||
|             font-style: normal; | ||||
|             font-weight: 300; | ||||
|             font-size: 12px; | ||||
|             color: #595959; | ||||
|             margin-top: 15px; | ||||
| @ -401,8 +310,6 @@ | ||||
|         } | ||||
|  | ||||
|         .notes-label { | ||||
|             font-style: normal; | ||||
|             font-weight: normal; | ||||
|             font-size: 15px; | ||||
|             line-height: 22px; | ||||
|             letter-spacing: 0.05em; | ||||
| @ -412,67 +319,122 @@ | ||||
|             padding-bottom: 10px; | ||||
|         } | ||||
|  | ||||
|          /* -- Helpers -- */ | ||||
|  | ||||
|         .text-primary { | ||||
|             color: #5851DB; | ||||
|         } | ||||
|  | ||||
|         .text-center { | ||||
|             text-align: center | ||||
|         } | ||||
|  | ||||
|         table .text-left { | ||||
|             text-align: left; | ||||
|         } | ||||
|  | ||||
|         table .text-right { | ||||
|             text-align: right; | ||||
|         } | ||||
|  | ||||
|         .border-0 { | ||||
|             border: none; | ||||
|         } | ||||
|  | ||||
|         .py-2 { | ||||
|             padding-top: 2px; | ||||
|             padding-bottom: 2px; | ||||
|         } | ||||
|  | ||||
|         .py-8 { | ||||
|             padding-top: 8px; | ||||
|             padding-bottom: 8px; | ||||
|         } | ||||
|  | ||||
|         .py-3 { | ||||
|             padding: 3px 0; | ||||
|         } | ||||
|  | ||||
|         .pr-20 { | ||||
|             padding-right: 20px; | ||||
|         } | ||||
|  | ||||
|         .pr-10 { | ||||
|             padding-right: 10px; | ||||
|         } | ||||
|  | ||||
|         .pl-20 { | ||||
|             padding-left: 20px; | ||||
|         } | ||||
|  | ||||
|         .pl-10 { | ||||
|             padding-left: 10px; | ||||
|         } | ||||
|  | ||||
|         .pl-0 { | ||||
|             padding-left: 0; | ||||
|         } | ||||
|     </style> | ||||
| </head> | ||||
|  | ||||
| <body> | ||||
|     <div class="header-table"> | ||||
|     <div class="header-container"> | ||||
|         <table width="100%"> | ||||
|             <tr> | ||||
|                 @if($logo) | ||||
|                     <td class="header-left"> | ||||
|                 <td class="header-section-left"> | ||||
|                     @if($logo) | ||||
|                         <img class="header-logo" src="{{ $logo }}" alt="Company Logo"> | ||||
|                     @else | ||||
|                         @if($invoice->user->company) | ||||
|                         <td class="header-left" style="padding-top:0px;"> | ||||
|                             <h1 class="header-logo"> {{$invoice->user->company->name}} </h1> | ||||
|                         @endif | ||||
|                         <h1 class="header-logo"> {{$invoice->user->company->name}} </h1> | ||||
|                     @endif | ||||
|                 </td> | ||||
|                 <td class="header-right company-details"> | ||||
|                 <td class="header-section-right company-address-container"> | ||||
|                     @include('app.pdf.invoice.partials.company-address') | ||||
|                 </td> | ||||
|             </tr> | ||||
|         </table> | ||||
|     </div> | ||||
|  | ||||
|     <hr class="header-line"> | ||||
|     <hr class="header-bottom-divider"> | ||||
|  | ||||
|     <div class="wrapper"> | ||||
|         <div class="address"> | ||||
|             <div class="bill-add"> | ||||
|                 <div style="float:left;"> | ||||
|     <div class="content-wrapper"> | ||||
|         <div class="main-content"> | ||||
|             <div class="customer-address-container"> | ||||
|                 <div class="billing-address-container"> | ||||
|                     @include('app.pdf.invoice.partials.billing-address') | ||||
|                 </div> | ||||
|                 @if($invoice->user->billingaddress) | ||||
|                     <div style="float:right;"> | ||||
|                 <div class="shipping-address-container"> | ||||
|                 @else | ||||
|                     <div style="float:left;"> | ||||
|                 <div class="shipping-address-container--left"> | ||||
|                 @endif | ||||
|                     @include('app.pdf.invoice.partials.shipping-address') | ||||
|                         @include('app.pdf.invoice.partials.shipping-address') | ||||
|                     </div> | ||||
|                     <div style="clear: both;"></div> | ||||
|                 </div> | ||||
|  | ||||
|                 <div class="invoice-details-container"> | ||||
|                     <table> | ||||
|                         <tr> | ||||
|                             <td class="attribute-label">Invoice Number</td> | ||||
|                             <td class="attribute-value">  {{$invoice->invoice_number}}</td> | ||||
|                         </tr> | ||||
|                         <tr> | ||||
|                             <td class="attribute-label">Invoice Date </td> | ||||
|                             <td class="attribute-value">  {{$invoice->formattedInvoiceDate}}</td> | ||||
|                         </tr> | ||||
|                         <tr> | ||||
|                             <td class="attribute-label">Due date</td> | ||||
|                             <td class="attribute-value">  {{$invoice->formattedDueDate}}</td> | ||||
|                         </tr> | ||||
|                     </table> | ||||
|                 </div> | ||||
|                 <div style="clear: both;"></div> | ||||
|             </div> | ||||
|  | ||||
|             <div class="job-add"> | ||||
|                 <table> | ||||
|                     <tr> | ||||
|                         <td class="textStyle1" style="text-align: left; color: #55547A">Invoice Number</td> | ||||
|                         <td class="textStyle2">  {{$invoice->invoice_number}}</td> | ||||
|                     </tr> | ||||
|                     <tr> | ||||
|                         <td class="textStyle1" style="text-align: left; color: #55547A">Invoice Date </td> | ||||
|                         <td class="textStyle2">  {{$invoice->formattedInvoiceDate}}</td> | ||||
|                     </tr> | ||||
|                     <tr> | ||||
|                         <td class="textStyle1" style="text-align: left; color: #55547A">Due date</td> | ||||
|                         <td class="textStyle2">  {{$invoice->formattedDueDate}}</td> | ||||
|                     </tr> | ||||
|                 </table> | ||||
|             </div> | ||||
|             <div style="clear: both;"></div> | ||||
|             @include('app.pdf.invoice.partials.table') | ||||
|             @include('app.pdf.invoice.partials.notes') | ||||
|         </div> | ||||
|         @include('app.pdf.invoice.partials.table') | ||||
|         @include('app.pdf.invoice.partials.notes') | ||||
|     </div> | ||||
| </body> | ||||
|  | ||||
| </html> | ||||
|  | ||||
| @ -1,11 +1,11 @@ | ||||
| @if($invoice->user->billingaddress) | ||||
|     <p class="bill-to">Bill To,</p> | ||||
|     <p class="billing-address-label">Bill To,</p> | ||||
|     @if($invoice->user->billingaddress->name) | ||||
|         <p class="bill-user-name"> | ||||
|         <p class="billing-address-name"> | ||||
|             {{$invoice->user->billingaddress->name}} | ||||
|         </p> | ||||
|     @endif | ||||
|     <p class="bill-user-address"> | ||||
|     <p class="billing-address"> | ||||
|         @if($invoice->user->billingaddress->address_street_1) | ||||
|             {!! nl2br(htmlspecialchars($invoice->user->billingaddress->address_street_1)) !!}<br> | ||||
|         @endif | ||||
| @ -25,7 +25,7 @@ | ||||
|             {{$invoice->user->billingaddress->country->name}}<br> | ||||
|         @endif | ||||
|         @if($invoice->user->billingaddress->phone) | ||||
|             <p class="bill-user-phone"> | ||||
|             <p class="billing-address"> | ||||
|                 Phone :{{$invoice->user->billingaddress->phone}} | ||||
|             </p> | ||||
|         @endif | ||||
|  | ||||
| @ -3,7 +3,7 @@ | ||||
| @endif | ||||
|  | ||||
| @if($company_address) | ||||
|     <p class="company-add"> | ||||
|     <p class="company-address"> | ||||
|         @if($company_address->addresses[0]['address_street_1']) | ||||
|             {!! nl2br(htmlspecialchars($company_address->addresses[0]['address_street_1'])) !!} <br> | ||||
|         @endif | ||||
|  | ||||
| @ -1,11 +1,11 @@ | ||||
| @if($invoice->user->shippingaddress) | ||||
|     <p class="ship-to">Ship To,</p> | ||||
|     <p class="shipping-address-label">Ship To,</p> | ||||
|     @if($invoice->user->shippingaddress->name) | ||||
|         <p class="ship-user-name"> | ||||
|         <p class="shipping-address-name"> | ||||
|             {{$invoice->user->shippingaddress->name}} | ||||
|         </p> | ||||
|     @endif | ||||
|     <p class="ship-user-address"> | ||||
|     <p class="shipping-address"> | ||||
|         @if($invoice->user->shippingaddress->address_street_1) | ||||
|             {!! nl2br(htmlspecialchars($invoice->user->shippingaddress->address_street_1)) !!}<br> | ||||
|         @endif | ||||
| @ -30,8 +30,8 @@ | ||||
|             {{$invoice->user->shippingaddress->country->name}}<br> | ||||
|         @endif | ||||
|  | ||||
|         @if($invoice->user->phone) | ||||
|             <p class="ship-user-phone"> | ||||
|         @if($invoice->user->shippingaddress->phone) | ||||
|             <p class="shipping-address"> | ||||
|                 Phone :{{$invoice->user->shippingaddress->phone}} | ||||
|             </p> | ||||
|         @endif | ||||
|  | ||||
| @ -1,46 +1,49 @@ | ||||
| <table width="100%" class="table2" cellspacing="0" border="0"> | ||||
|     <tr class="main-table-header"> | ||||
|         <th width="2%" class="ItemTableHeader" style="text-align: right; color: #55547A; padding-right: 20px">#</th> | ||||
|         <th width="40%" class="ItemTableHeader" style="text-align: left; color: #55547A; padding-left: 0px">Items</th> | ||||
|         <th class="ItemTableHeader" style="text-align: right; color: #55547A; padding-right: 20px">Quantity</th> | ||||
|         <th class="ItemTableHeader" style="text-align: right; color: #55547A; padding-right: 20px">Price</th> | ||||
| <table width="100%" class="items-table" cellspacing="0" border="0"> | ||||
|     <tr class="item-table-heading-row"> | ||||
|         <th width="2%" class="item-table-heading text-right pr-20">#</th> | ||||
|         <th width="40%" class="item-table-heading text-left pl-0">Items</th> | ||||
|         <th class="item-table-heading text-right pr-20">Quantity</th> | ||||
|         <th class="item-table-heading pr-20 text-right">Price</th> | ||||
|         @if($invoice->discount_per_item === 'YES') | ||||
|         <th class="ItemTableHeader" style="text-align: right; color: #55547A; padding-left: 10px">Discount</th> | ||||
|         <th class="item-table-heading text-right pl-10">Discount</th> | ||||
|         @endif | ||||
|         <th class="ItemTableHeader" style="text-align: right; color: #55547A;">Amount</th> | ||||
|         <th class="item-table-heading text-right">Amount</th> | ||||
|     </tr> | ||||
|     @php | ||||
|         $index = 1 | ||||
|     @endphp | ||||
|     @foreach ($invoice->items as $item) | ||||
|         <tr class="item-details"> | ||||
|         <tr class="item-row"> | ||||
|             <td | ||||
|                 class="inv-item items" | ||||
|                 style="text-align: right; color: #040405; padding-right: 20px; vertical-align: top;" | ||||
|                 class="item-cell text-right pr-20" | ||||
|                 style="vertical-align: top;" | ||||
|             > | ||||
|                 {{$index}} | ||||
|             </td> | ||||
|             <td | ||||
|                 class="inv-item items" | ||||
|                 style="text-align: left; color: #040405;padding-left: 0px" | ||||
|                 class="item-cell text-left pl-0" | ||||
|                 style="vertical-align: top;" | ||||
|             > | ||||
|                 <span>{{ $item->name }}</span><br> | ||||
|                 <span style="text-align: left; color: #595959; font-size: 9px; font-weight:300; line-height: 12px;">{!! nl2br(htmlspecialchars($item->description)) !!}</span> | ||||
|                 <span class="item-description">{!! nl2br(htmlspecialchars($item->description)) !!}</span> | ||||
|             </td> | ||||
|             <td | ||||
|                 class="inv-item items" | ||||
|                 style="text-align: right; color: #040405; padding-right: 20px" | ||||
|                 class="item-cell pr-20 text-right" | ||||
|                 style="vertical-align: top;" | ||||
|             > | ||||
|                 {{$item->quantity}} | ||||
|             </td> | ||||
|             <td | ||||
|                 class="inv-item items" | ||||
|                 style="text-align: right; color: #040405; padding-right: 20px" | ||||
|                 class="item-cell text-right pr-20" | ||||
|                 style="vertical-align: top;" | ||||
|             > | ||||
|                 {!! format_money_pdf($item->price, $invoice->user->currency) !!} | ||||
|             </td> | ||||
|             @if($invoice->discount_per_item === 'YES') | ||||
|                 <td class="inv-item items" style="text-align: right; color: #040405; padding-left: 10px"> | ||||
|                 <td | ||||
|                     class="item-cell text-right pl-10" | ||||
|                     style="vertical-align: top;" | ||||
|                 > | ||||
|                     @if($item->discount_type === 'fixed') | ||||
|                         {!! format_money_pdf($item->discount_val, $invoice->user->currency) !!} | ||||
|                     @endif | ||||
| @ -50,8 +53,8 @@ | ||||
|                 </td> | ||||
|             @endif | ||||
|             <td | ||||
|                 class="inv-item items" | ||||
|                 style="text-align: right; color: #040405;" | ||||
|                 class="item-cell text-right" | ||||
|                 style="vertical-align: top;" | ||||
|             > | ||||
|                 {!! format_money_pdf($item->total, $invoice->user->currency) !!} | ||||
|             </td> | ||||
| @ -62,74 +65,74 @@ | ||||
|     @endforeach | ||||
| </table> | ||||
|  | ||||
| <hr class="items-table-hr"> | ||||
| <hr class="item-cell-table-hr"> | ||||
|  | ||||
| <table width="100%" cellspacing="0px" style="margin-left:420px; margin-top: 10px" border="0" class="table3 @if(count($invoice->items) > 12) page-break @endif"> | ||||
|     <tr> | ||||
|         <td class="no-border" style="color: #55547A; padding-left:10px;  font-size:12px;">Subtotal</td> | ||||
|         <td class="no-border items padd2" | ||||
|             style="padding-right:10px; text-align: right;  font-size:12px; color: #040405; font-weight: 500;">{!! format_money_pdf($invoice->sub_total, $invoice->user->currency) !!}</td> | ||||
|     </tr> | ||||
|  | ||||
|     @if ($invoice->tax_per_item === 'YES') | ||||
|         @for ($i = 0; $i < count($labels); $i++) | ||||
|             <tr> | ||||
|                 <td class="no-border" style="padding-left:10px; text-align:left; font-size:12px;  color: #55547A;"> | ||||
|                     {{$labels[$i]}} | ||||
|                 </td> | ||||
|                 <td class="no-border items padd2" style="padding-right:10px; font-weight: 500; text-align: right; font-size:12px;  color: #040405"> | ||||
|                     {!! format_money_pdf($taxes[$i], $invoice->user->currency) !!} | ||||
|                 </td> | ||||
|             </tr> | ||||
|         @endfor | ||||
|     @else | ||||
|         @foreach ($invoice->taxes as $tax) | ||||
|             <tr> | ||||
|                 <td class="no-border" style="padding-left:10px; text-align:left; font-size:12px;  color: #55547A;"> | ||||
|                     {{$tax->name.' ('.$tax->percent.'%)'}} | ||||
|                 </td> | ||||
|                 <td class="no-border items padd2" style="padding-right:10px; font-weight: 500; text-align: right; font-size:12px;  color: #040405"> | ||||
|                     {!! format_money_pdf($tax->amount, $invoice->user->currency) !!} | ||||
|                 </td> | ||||
|             </tr> | ||||
|         @endforeach | ||||
|     @endif | ||||
|  | ||||
|     @if ($invoice->discount_per_item === 'NO') | ||||
| <div class="total-display-container"> | ||||
|     <table width="100%" cellspacing="0px" border="0" class="total-display-table @if(count($invoice->items) > 12) page-break @endif"> | ||||
|         <tr> | ||||
|             <td class="no-border" style="padding-left:10px; text-align:left; font-size:12px; color: #55547A;"> | ||||
|                 @if($invoice->discount_type === 'fixed') | ||||
|                     Discount | ||||
|                 @endif | ||||
|                 @if($invoice->discount_type === 'percentage') | ||||
|                     Discount ({{$invoice->discount}}%) | ||||
|                 @endif | ||||
|             </td> | ||||
|             <td class="no-border items padd2" style="padding-right:10px; font-weight: 500; text-align: right; font-size:12px;  color: #040405"> | ||||
|                 @if($invoice->discount_type === 'fixed') | ||||
|                     {!! format_money_pdf($invoice->discount_val, $invoice->user->currency) !!} | ||||
|                 @endif | ||||
|                 @if($invoice->discount_type === 'percentage') | ||||
|                     {!! format_money_pdf($invoice->discount_val, $invoice->user->currency) !!} | ||||
|                 @endif | ||||
|             <td class="border-0 total-table-attribute-label">Subtotal</td> | ||||
|             <td class="border-0 item-cell py-2 total-table-attribute-value"> | ||||
|                 {!! format_money_pdf($invoice->sub_total, $invoice->user->currency) !!} | ||||
|             </td> | ||||
|         </tr> | ||||
|     @endif | ||||
|     <tr> | ||||
|         <td style="padding:3px 0px"></td> | ||||
|         <td style="padding:3px 0px"></td> | ||||
|     </tr> | ||||
|     <tr> | ||||
|         <td class="no-border total-border-left" | ||||
|             style="padding-left:10px; padding-bottom:10px; text-align:left; padding-top:20px; font-size:12px;  color: #55547A;" | ||||
|         > | ||||
|             <label class="total-bottom"> Total </label> | ||||
|         </td> | ||||
|         <td | ||||
|             class="no-border total-border-right items padd8" | ||||
|             style="padding-right:10px; font-weight: 500; text-align: right; font-size:12px;  padding-top:20px; color: #5851DB" | ||||
|         > | ||||
|             {!! format_money_pdf($invoice->total, $invoice->user->currency)!!} | ||||
|         </td> | ||||
|     </tr> | ||||
| </table> | ||||
|  | ||||
|         @if ($invoice->tax_per_item === 'YES') | ||||
|             @for ($i = 0; $i < count($labels); $i++) | ||||
|                 <tr> | ||||
|                     <td class="border-0 total-table-attribute-label"> | ||||
|                         {{$labels[$i]}} | ||||
|                     </td> | ||||
|                     <td class="border-0 item-cell py-2 total-table-attribute-value"> | ||||
|                         {!! format_money_pdf($taxes[$i], $invoice->user->currency) !!} | ||||
|                     </td> | ||||
|                 </tr> | ||||
|             @endfor | ||||
|         @else | ||||
|             @foreach ($invoice->taxes as $tax) | ||||
|                 <tr> | ||||
|                     <td class="border-0 total-table-attribute-label"> | ||||
|                         {{$tax->name.' ('.$tax->percent.'%)'}} | ||||
|                     </td> | ||||
|                     <td class="border-0 item-cell py-2 total-table-attribute-value"> | ||||
|                         {!! format_money_pdf($tax->amount, $invoice->user->currency) !!} | ||||
|                     </td> | ||||
|                 </tr> | ||||
|             @endforeach | ||||
|         @endif | ||||
|  | ||||
|         @if ($invoice->discount_per_item === 'NO') | ||||
|             <tr> | ||||
|                 <td class="border-0 total-table-attribute-label"> | ||||
|                     @if($invoice->discount_type === 'fixed') | ||||
|                         Discount | ||||
|                     @endif | ||||
|                     @if($invoice->discount_type === 'percentage') | ||||
|                         Discount ({{$invoice->discount}}%) | ||||
|                     @endif | ||||
|                 </td> | ||||
|                 <td class="border-0 item-cell py-2 total-table-attribute-value" > | ||||
|                     @if($invoice->discount_type === 'fixed') | ||||
|                         {!! format_money_pdf($invoice->discount_val, $invoice->user->currency) !!} | ||||
|                     @endif | ||||
|                     @if($invoice->discount_type === 'percentage') | ||||
|                         {!! format_money_pdf($invoice->discount_val, $invoice->user->currency) !!} | ||||
|                     @endif | ||||
|                 </td> | ||||
|             </tr> | ||||
|         @endif | ||||
|         <tr> | ||||
|             <td class="py-3"></td> | ||||
|             <td class="py-3"></td> | ||||
|         </tr> | ||||
|         <tr> | ||||
|             <td class="border-0 total-border-left total-table-attribute-label"> | ||||
|                 Total | ||||
|             </td> | ||||
|             <td | ||||
|                 class="border-0 total-border-right item-cell py-8 total-table-attribute-value text-primary" | ||||
|             > | ||||
|                 {!! format_money_pdf($invoice->total, $invoice->user->currency)!!} | ||||
|             </td> | ||||
|         </tr> | ||||
|     </table> | ||||
| </div> | ||||
|  | ||||
| @ -1,11 +1,11 @@ | ||||
| @if($payment->user->billingaddress) | ||||
|     <p class="bill-to">Received From:</p> | ||||
|     <p class="billing-address-label">Received From:</p> | ||||
|     @if($payment->user->billingaddress->name) | ||||
|         <p class="bill-user-name"> | ||||
|         <p class="billing-address-name"> | ||||
|             {{$payment->user->billingaddress->name}} | ||||
|         </p> | ||||
|     @endif | ||||
|     <p class="bill-user-address"> | ||||
|     <p class="billing-address"> | ||||
|         @if($payment->user->billingaddress->address_street_1) | ||||
|             {!! nl2br(htmlspecialchars($payment->user->billingaddress->address_street_1)) !!}<br> | ||||
|         @endif | ||||
| @ -25,7 +25,7 @@ | ||||
|             {{$payment->user->billingaddress->country->name}}<br> | ||||
|         @endif | ||||
|         @if($payment->user->billingaddress->phone) | ||||
|             <p class="bill-user-phone"> | ||||
|             <p class="billing-address"> | ||||
|                 Phone :{{$payment->user->billingaddress->phone}} | ||||
|             </p> | ||||
|         @endif | ||||
|  | ||||
| @ -3,7 +3,7 @@ | ||||
| @endif | ||||
|  | ||||
| @if($company_address) | ||||
|     <p class="company-add"> | ||||
|     <p class="company-address"> | ||||
|         @if($company_address->addresses[0]['address_street_1']) | ||||
|             {!! nl2br(htmlspecialchars($company_address->addresses[0]['address_street_1'])) !!} <br> | ||||
|         @endif | ||||
|  | ||||
| @ -1,11 +1,11 @@ | ||||
| @if($payment->user->shippingaddress) | ||||
|     <p class="ship-to">Ship To,</p> | ||||
|     <p class="shipping-address-label">Ship To,</p> | ||||
|     @if($payment->user->shippingaddress->name) | ||||
|         <p class="ship-user-name"> | ||||
|         <p class="shipping-address-name"> | ||||
|             {{$payment->user->shippingaddress->name}} | ||||
|         </p> | ||||
|     @endif | ||||
|     <p class="ship-user-address"> | ||||
|     <p class="shipping-address"> | ||||
|         @if($payment->user->shippingaddress->address_street_1) | ||||
|             {!! nl2br(htmlspecialchars($payment->user->shippingaddress->address_street_1)) !!}<br> | ||||
|         @endif | ||||
| @ -31,7 +31,7 @@ | ||||
|         @endif | ||||
|  | ||||
|         @if($payment->user->phone) | ||||
|             <p class="ship-user-phone"> | ||||
|             <p class="shipping-address"> | ||||
|                 Phone :{{$payment->user->shippingaddress->phone}} | ||||
|             </p> | ||||
|         @endif | ||||
|  | ||||
| @ -2,10 +2,10 @@ | ||||
| <html> | ||||
| <head> | ||||
|     <title>Invoice</title> | ||||
|     {{-- <link href="https://fonts.googleapis.com/css?family=Poppins&display=swap" rel="stylesheet"> --}} | ||||
|     <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> | ||||
|  | ||||
|     <style type="text/css"> | ||||
|         /* -- Base -- */ | ||||
|         body { | ||||
|             font-family: "DejaVu Sans"; | ||||
|         } | ||||
| @ -13,6 +13,7 @@ | ||||
|         html { | ||||
|             margin: 0px; | ||||
|             padding: 0px; | ||||
|             margin-top: 50px; | ||||
|         } | ||||
|         table { | ||||
|             border-collapse: collapse; | ||||
| @ -27,339 +28,48 @@ | ||||
|             width: 100%; | ||||
|         } | ||||
|  | ||||
|         .header-left { | ||||
|             padding-top: 45px; | ||||
|             padding-bottom: 45px; | ||||
|             padding-left: 30px; | ||||
|             display:inline-block; | ||||
|             width:30%; | ||||
|         } | ||||
|         .header-table { | ||||
|         /* -- Heeader -- */ | ||||
|  | ||||
|         .header-container { | ||||
|             position: absolute; | ||||
|             width: 100%; | ||||
|             height: 150px; | ||||
|             left: 0px; | ||||
|             top: -60px; | ||||
|         } | ||||
|  | ||||
|         .header-section-left { | ||||
|             padding-top: 45px; | ||||
|             padding-bottom: 45px; | ||||
|             padding-left: 30px; | ||||
|             display:inline-block; | ||||
|             width:30%; | ||||
|         } | ||||
|  | ||||
|         .header-logo { | ||||
|             position: absolute; | ||||
|             height: 50px; | ||||
|             text-transform: capitalize; | ||||
|             color: #817AE3; | ||||
|         } | ||||
|         .header-right { | ||||
|         .header-section-right { | ||||
|             display:inline-block; | ||||
|             position: absolute; | ||||
|             right:0; | ||||
|             padding: 15px 30px 15px 0px; | ||||
|             float: right; | ||||
|         } | ||||
|         .inv-flex{ | ||||
|             display:flex; | ||||
|         } | ||||
|         .inv-data{ | ||||
|             text-align:right; | ||||
|             margin-right:120px; | ||||
|         } | ||||
|         .inv-value{ | ||||
|             text-align:left; | ||||
|             margin-left:160px; | ||||
|         } | ||||
|  | ||||
|         .header { | ||||
|             font-size: 20px; | ||||
|             color: rgba(0, 0, 0, 0.7); | ||||
|         } | ||||
|  | ||||
|         .TextColor1 { | ||||
|             font-size: 16px; | ||||
|             color: rgba(0, 0, 0, 0.5); | ||||
|         } | ||||
|         /* -- Company Address -- */ | ||||
|  | ||||
|         @page { | ||||
|             margin-top: 60px !important; | ||||
|         } | ||||
|         .wrapper { | ||||
|            display: block; | ||||
|            height: 200px; | ||||
|         } | ||||
|  | ||||
|         .address { | ||||
|             display: inline-block; | ||||
|             padding-top: 20px | ||||
|         } | ||||
|  | ||||
|         .bill-add { | ||||
|             display: block; | ||||
|             float:left; | ||||
|             width:40%; | ||||
|             padding: 0 0 0 30px; | ||||
|         } | ||||
|         .company { | ||||
|             padding-left: 30px; | ||||
|             display: inline; | ||||
|             float:left; | ||||
|             width:30%; | ||||
|         } | ||||
|  | ||||
|         .company h1 { | ||||
|             font-style: normal; | ||||
|             font-weight: bold; | ||||
|             font-size: 18px; | ||||
|             line-height: 22px; | ||||
|             letter-spacing: 0.05em; | ||||
|         } | ||||
|  | ||||
|         .company-add { | ||||
|             text-align: left; | ||||
|             font-style: normal; | ||||
|             font-weight: normal; | ||||
|             font-size: 10px; | ||||
|             line-height: 15px; | ||||
|             color: #595959; | ||||
|             margin: 0px; | ||||
|         } | ||||
|  | ||||
|          /* -------------------------- */ | ||||
|         /* shipping style */ | ||||
|         .ship-to { | ||||
|             padding-top: 5px; | ||||
|             font-style: normal; | ||||
|             font-weight: normal; | ||||
|             font-size: 12px; | ||||
|             line-height: 18px; | ||||
|             margin-bottom: 0px; | ||||
|         } | ||||
|  | ||||
|         .ship-user-name { | ||||
|             padding: 0px; | ||||
|             font-style: normal; | ||||
|             font-weight: normal; | ||||
|             font-size: 15px; | ||||
|             line-height: 22px; | ||||
|             margin: 0px; | ||||
|         } | ||||
|  | ||||
|         .ship-user-address { | ||||
|             font-style: normal; | ||||
|             font-weight: normal; | ||||
|             font-size: 10px; | ||||
|             line-height: 15px; | ||||
|             color: #595959; | ||||
|             margin: 0px; | ||||
|             width: 160px; | ||||
|         } | ||||
|  | ||||
|         .ship-user-phone { | ||||
|             font-style: normal; | ||||
|             font-weight: normal; | ||||
|             font-size: 10px; | ||||
|             line-height: 15px; | ||||
|             color: #595959; | ||||
|             margin: 0px; | ||||
|         } | ||||
|  | ||||
|          /* -------------------------- */ | ||||
|         /* billing style */ | ||||
|         .bill-to { | ||||
|             padding-top: 5px; | ||||
|             font-style: normal; | ||||
|             font-weight: normal; | ||||
|             font-size: 12px; | ||||
|             line-height: 18px; | ||||
|             margin-bottom: 0px; | ||||
|             color: #55547A; | ||||
|         } | ||||
|  | ||||
|         .bill-user-name { | ||||
|             padding: 0px; | ||||
|             font-style: normal; | ||||
|             font-weight: normal; | ||||
|             font-size: 15px; | ||||
|             line-height: 22px; | ||||
|             margin: 0px; | ||||
|         } | ||||
|  | ||||
|         .bill-user-address { | ||||
|             font-style: normal; | ||||
|             font-weight: normal; | ||||
|             font-size: 10px; | ||||
|             line-height: 15px; | ||||
|             color: #595959; | ||||
|             margin:0px; | ||||
|             width: 160px; | ||||
|         } | ||||
|  | ||||
|         .bill-user-phone { | ||||
|             font-style: normal; | ||||
|             font-weight: normal; | ||||
|             font-size: 10px; | ||||
|             line-height: 15px; | ||||
|             color: #595959; | ||||
|             margin: 0px; | ||||
|  | ||||
|         } | ||||
|  | ||||
|  | ||||
|         .job-add { | ||||
|             display: inline; | ||||
|             position: absolute; | ||||
|             float: right; | ||||
|             width: 40%; | ||||
|             height: 120px; | ||||
|             padding: 20px 30px 0 0; | ||||
|         } | ||||
|         .amount-due { | ||||
|             background-color: #f2f2f2; | ||||
|         } | ||||
|  | ||||
|         .textRight { | ||||
|             text-align: right; | ||||
|         } | ||||
|  | ||||
|         .textLeft { | ||||
|             text-align: left; | ||||
|         } | ||||
|  | ||||
|         .textStyle1 { | ||||
|             font-style: normal; | ||||
|             font-weight: normal; | ||||
|             font-size: 12px; | ||||
|             line-height: 18px; | ||||
|         } | ||||
|  | ||||
|         .textStyle2 { | ||||
|             font-style: normal; | ||||
|             font-weight: normal; | ||||
|             font-size: 12px; | ||||
|             line-height: 18px; | ||||
|             text-align: right; | ||||
|         } | ||||
|         .main-table-header td { | ||||
|             padding: 10px; | ||||
|         } | ||||
|         .main-table-header { | ||||
|             border-bottom: 1px solid red; | ||||
|         } | ||||
|         tr.main-table-header th { | ||||
|             font-style: normal; | ||||
|             font-weight: 600; | ||||
|             font-size: 12px; | ||||
|             line-height: 18px; | ||||
|         } | ||||
|         tr.item-details td { | ||||
|             font-style: normal; | ||||
|             font-weight: normal; | ||||
|             font-size: 12px; | ||||
|             line-height: 18px; | ||||
|         } | ||||
|         .table2 { | ||||
|             margin-top: 188px; | ||||
|             border-bottom: 1px solid #EAF1FB; | ||||
|             padding: 0px 30px 0 30px; | ||||
|             page-break-before: avoid; | ||||
|             page-break-after: auto; | ||||
|         } | ||||
|  | ||||
|         .table2 hr { | ||||
|             height:0.1px; | ||||
|         } | ||||
|  | ||||
|         .ItemTableHeader { | ||||
|             font-size: 13.5; | ||||
|             text-align: center; | ||||
|             color: rgba(0, 0, 0, 0.85); | ||||
|             padding: 5px; | ||||
|         } | ||||
|  | ||||
|         .items { | ||||
|             font-size: 13; | ||||
|             color: rgba(0, 0, 0, 0.6); | ||||
|             text-align: center; | ||||
|             padding: 5px; | ||||
|         } | ||||
|  | ||||
|         .note-header { | ||||
|             font-size: 13; | ||||
|             color: rgba(0, 0, 0, 0.6); | ||||
|         } | ||||
|  | ||||
|         .note-text { | ||||
|             font-size: 10; | ||||
|             color: rgba(0, 0, 0, 0.6); | ||||
|         } | ||||
|  | ||||
|         .padd8 { | ||||
|             padding-top: 8px; | ||||
|             padding-bottom: 8px; | ||||
|         } | ||||
|  | ||||
|         .padd2 { | ||||
|             padding-top: 2px; | ||||
|             padding-bottom: 2px; | ||||
|         } | ||||
|  | ||||
|         .table3 { | ||||
|             border: 1px solid #EAF1FB; | ||||
|             border-top: none; | ||||
|             box-sizing: border-box; | ||||
|             width: 630px; | ||||
|             page-break-inside: avoid; | ||||
|             page-break-before: auto; | ||||
|             page-break-after: auto; | ||||
|         } | ||||
|  | ||||
|         .text-per-item-table3 { | ||||
|             border: 1px solid #EAF1FB; | ||||
|             border-top: none; | ||||
|             padding-right: 30px; | ||||
|             box-sizing: border-box; | ||||
|             width: 260px; | ||||
|             /* height: 100px; */ | ||||
|             position: absolute; | ||||
|             right: -25; | ||||
|         } | ||||
|  | ||||
|         td.invoice-total1 { | ||||
|             text-align:left; | ||||
|             padding: 15px 0 15px 10px; | ||||
|             font-size:12px; | ||||
|             line-height: 18px; | ||||
|             color: #55547A; | ||||
|             border-bottom:1px solid #E8E8E8; | ||||
|             border-top:1px solid #E8E8E8; | ||||
|             border-left:1px solid #E8E8E8; | ||||
|         } | ||||
|  | ||||
|         td.invoice-total2 { | ||||
|             font-weight: 500; | ||||
|             text-align: right; | ||||
|             font-size:12px; | ||||
|             line-height: 18px; | ||||
|             padding: 15px 10px 15px 0; | ||||
|             color: #5851DB; | ||||
|             border-bottom:1px solid #E8E8E8; | ||||
|             border-top:1px solid #E8E8E8; | ||||
|             border-right:1px solid #E8E8E8; | ||||
|         } | ||||
|  | ||||
|         .inv-item { | ||||
|             border-color: #d9d9d9; | ||||
|         } | ||||
|  | ||||
|         .no-border { | ||||
|             border: none; | ||||
|         } | ||||
|         .desc { | ||||
|             font-weight: 100; | ||||
|             text-align: justify; | ||||
|             font-size: 10px; | ||||
|             margin-bottom: 15px; | ||||
|             margin-top:7px; | ||||
|             color:rgba(0, 0, 0, 0.85); | ||||
|         } | ||||
|         .company-details h1 { | ||||
|             margin:0; | ||||
|             font-style: normal; | ||||
|  | ||||
|             font-weight: bold; | ||||
|             font-size: 15px; | ||||
|             line-height: 22px; | ||||
| @ -367,26 +77,117 @@ | ||||
|             text-align: left; | ||||
|             max-width: 220px; | ||||
|         } | ||||
|         .company-details h4 { | ||||
|             margin:0; | ||||
|             font-style: normal; | ||||
|             font-weight: 100; | ||||
|             font-size: 18px; | ||||
|             line-height: 25px; | ||||
|             text-align: right; | ||||
|         } | ||||
|         .company-details h3 { | ||||
|              margin-bottom:1px; | ||||
|              margin-top:0; | ||||
|         } | ||||
|         tr.total td { | ||||
|             border-bottom:1px solid #E8E8E8; | ||||
|             border-top:1px solid #E8E8E8; | ||||
|  | ||||
|         .company-address{ | ||||
|             text-align: left; | ||||
|             font-size: 10px; | ||||
|             line-height: 15px; | ||||
|             color: #595959; | ||||
|             margin: 0px; | ||||
|         } | ||||
|  | ||||
|         .content-wrapper { | ||||
|            display: block; | ||||
|            height: 200px; | ||||
|         } | ||||
|  | ||||
|         .main-content { | ||||
|             display: inline-block; | ||||
|             padding-top: 20px | ||||
|         } | ||||
|  | ||||
|         /* -- Customer Address -- */ | ||||
|         .customer-address-container { | ||||
|             display: block; | ||||
|             float:left; | ||||
|             width:40%; | ||||
|             padding: 0 0 0 30px; | ||||
|         } | ||||
|  | ||||
|         /* -- Shipping -- */ | ||||
|  | ||||
|         .shipping-address-label { | ||||
|             padding-top: 5px; | ||||
|             font-size: 12px; | ||||
|             line-height: 18px; | ||||
|             margin-bottom: 0px; | ||||
|         } | ||||
|  | ||||
|         .shipping-address-name { | ||||
|             padding: 0px; | ||||
|             font-size: 15px; | ||||
|             line-height: 22px; | ||||
|             margin: 0px; | ||||
|         } | ||||
|  | ||||
|         .shipping-address { | ||||
|             font-size: 10px; | ||||
|             line-height: 15px; | ||||
|             color: #595959; | ||||
|             margin: 0px; | ||||
|             width: 160px; | ||||
|         } | ||||
|  | ||||
|         /* -- Billing -- */ | ||||
|  | ||||
|         .billing-address-container { | ||||
|             float: left; | ||||
|         } | ||||
|  | ||||
|         .billing-address-container--right { | ||||
|             float: right; | ||||
|         } | ||||
|  | ||||
|         .billing-address-label { | ||||
|             padding-top: 5px; | ||||
|             font-size: 12px; | ||||
|             line-height: 18px; | ||||
|             margin-bottom: 0px; | ||||
|             color: #55547A; | ||||
|         } | ||||
|  | ||||
|         .billing-address-name { | ||||
|             padding: 0px; | ||||
|             font-size: 15px; | ||||
|             line-height: 22px; | ||||
|             margin: 0px; | ||||
|         } | ||||
|  | ||||
|         .billing-address { | ||||
|             font-size: 10px; | ||||
|             line-height: 15px; | ||||
|             color: #595959; | ||||
|             margin:0px; | ||||
|             width: 160px; | ||||
|         } | ||||
|  | ||||
|         /* -- Payment Details -- */ | ||||
|  | ||||
|         .payment-details-container { | ||||
|             display: inline; | ||||
|             position: absolute; | ||||
|             float: right; | ||||
|             width: 40%; | ||||
|             height: 120px; | ||||
|             padding: 20px 30px 0 0; | ||||
|         } | ||||
|  | ||||
|         .attribute-label { | ||||
|             font-size: 12px; | ||||
|             line-height: 18px; | ||||
|             text-align: left; | ||||
|             color: #55547A | ||||
|         } | ||||
|  | ||||
|         .attribute-value { | ||||
|             font-size: 12px; | ||||
|             line-height: 18px; | ||||
|             text-align: right; | ||||
|         } | ||||
|  | ||||
|         /* -- Notes -- */ | ||||
|  | ||||
|         .notes { | ||||
|             font-style: normal; | ||||
|             font-weight: 300; | ||||
|             font-size: 12px; | ||||
|             color: #595959; | ||||
|             margin-top: 15px; | ||||
| @ -397,8 +198,6 @@ | ||||
|         } | ||||
|  | ||||
|         .notes-label { | ||||
|             font-style: normal; | ||||
|             font-weight: normal; | ||||
|             font-size: 15px; | ||||
|             line-height: 22px; | ||||
|             letter-spacing: 0.05em; | ||||
| @ -408,7 +207,7 @@ | ||||
|             padding-bottom: 10px; | ||||
|         } | ||||
|  | ||||
|         .content-header { | ||||
|         .content-heading { | ||||
|             margin-top: 120px; | ||||
|             width: 100%; | ||||
|             text-align: center; | ||||
| @ -419,14 +218,17 @@ | ||||
|             margin:  0 0 0 0; | ||||
|         } | ||||
|  | ||||
|         .content-header span { | ||||
|             font-weight: 500; | ||||
|         .content-heading span { | ||||
|             font-weight: 400; | ||||
|             font-size: 14px; | ||||
|             line-height: 25px; | ||||
|             padding-bottom: 5px; | ||||
|             border-bottom: 1px solid #B9C1D1; | ||||
|         } | ||||
|  | ||||
|         .total-amount { | ||||
|         /* -- Total Display Box -- */ | ||||
|  | ||||
|         .total-display-box { | ||||
|             width: 315px; | ||||
|             display: block; | ||||
|             margin-right: 30px; | ||||
| @ -437,7 +239,7 @@ | ||||
|             padding: 12px 15px 15px 15px; | ||||
|         } | ||||
|  | ||||
|         .total-amount-label { | ||||
|         .total-display-label { | ||||
|             display: inline; | ||||
|             font-weight: 600; | ||||
|             font-size: 14px; | ||||
| @ -445,7 +247,7 @@ | ||||
|             color: #595959; | ||||
|         } | ||||
|  | ||||
|         .total-amount span { | ||||
|         .total-display-box span { | ||||
|             float: right; | ||||
|             font-weight: 500; | ||||
|             font-size: 14px; | ||||
| @ -453,62 +255,64 @@ | ||||
|             text-align: right; | ||||
|             color: #5851D8; | ||||
|         } | ||||
|  | ||||
|     </style> | ||||
| </head> | ||||
| <body> | ||||
|     <div class="header-table"> | ||||
|     <div class="header-container"> | ||||
|         <table width="100%"> | ||||
|             <tr> | ||||
|                 @if($logo) | ||||
|                     <td class="header-left"> | ||||
|                     <td class="header-section-left"> | ||||
|                         <img class="header-logo" src="{{ $logo }}" alt="Company Logo"> | ||||
|                 @else | ||||
|                     @if($payment->user->company) | ||||
|                     <td class="header-left" style="padding-top:0px;"> | ||||
|                     <td class="header-section-left" style="padding-top:0px;"> | ||||
|                         <h1 class="header-logo"> {{$payment->user->company->name}} </h1> | ||||
|                     @endif | ||||
|                 @endif | ||||
|                 </td> | ||||
|                 <td class="header-right company-details"> | ||||
|                 <td class="header-section-right company-details"> | ||||
|                     @include('app.pdf.payment.partials.company-address') | ||||
|                 </td> | ||||
|             </tr> | ||||
|         </table> | ||||
|     </div> | ||||
|  | ||||
|     <hr style="border: 0.620315px solid #E8E8E8;"> | ||||
|     <p class="content-header"> | ||||
|  | ||||
|     <p class="content-heading"> | ||||
|         <span>PAYMENT RECEIPT</span> | ||||
|     </p> | ||||
|     <div class="wrapper"> | ||||
|         <div class="address"> | ||||
|             <div class="bill-add"> | ||||
|                 <div style="float:left;"> | ||||
|  | ||||
|     <div class="content-wrapper"> | ||||
|         <div class="main-content"> | ||||
|             <div class="customer-address-container"> | ||||
|                 <div class="billing-address-container"> | ||||
|                     @include('app.pdf.payment.partials.billing-address') | ||||
|                 </div> | ||||
|                 <div style="float:right;"> | ||||
|                 <div class="billing-address-container--right"> | ||||
|                 </div> | ||||
|                 <div style="clear: both;"></div> | ||||
|             </div> | ||||
|  | ||||
|             <div class="job-add"> | ||||
|             <div class="payment-details-container"> | ||||
|                 <table width="100%"> | ||||
|                     <tr> | ||||
|                         <td class="textStyle1" style="text-align: left; color: #55547A">Payment Date</td> | ||||
|                         <td class="textStyle2">  {{$payment->formattedPaymentDate}}</td> | ||||
|                         <td class="attribute-label">Payment Date</td> | ||||
|                         <td class="attribute-value">  {{$payment->formattedPaymentDate}}</td> | ||||
|                     </tr> | ||||
|                     <tr> | ||||
|                         <td class="textStyle1" style="text-align: left; color: #55547A">Payment Number</td> | ||||
|                         <td class="textStyle2">  {{$payment->payment_number}}</td> | ||||
|                         <td class="attribute-label">Payment Number</td> | ||||
|                         <td class="attribute-value">  {{$payment->payment_number}}</td> | ||||
|                     </tr> | ||||
|                     <tr> | ||||
|                         <td class="textStyle1" style="text-align: left; color: #55547A">Payment Mode</td> | ||||
|                         <td class="textStyle2">  {{$payment->paymentMethod ? $payment->paymentMethod->name : '-'}}</td> | ||||
|                         <td class="attribute-label">Payment Mode</td> | ||||
|                         <td class="attribute-value">  {{$payment->paymentMethod ? $payment->paymentMethod->name : '-'}}</td> | ||||
|                     </tr> | ||||
|                     @if ($payment->invoice && $payment->invoice->invoice_number) | ||||
|                         <tr> | ||||
|                             <td class="textStyle1" style="text-align: left; color: #55547A">Invoice</td> | ||||
|                             <td class="textStyle2">  {{$payment->invoice->invoice_number}}</td> | ||||
|                             <td class="attribute-label">Invoice</td> | ||||
|                             <td class="attribute-value">  {{$payment->invoice->invoice_number}}</td> | ||||
|                         </tr> | ||||
|                     @endif | ||||
|                 </table> | ||||
| @ -516,8 +320,8 @@ | ||||
|         </div> | ||||
|         <div style="clear: both;"></div> | ||||
|     </div> | ||||
|     <div class="total-amount"> | ||||
|         <p class="total-amount-label">Amount Received</p> | ||||
|     <div class="total-display-box"> | ||||
|         <p class="total-display-label">Amount Received</p> | ||||
|         <span>{!! format_money_pdf($payment->amount, $payment->user->currency) !!}</span> | ||||
|     </div> | ||||
| </body> | ||||
|  | ||||
		Reference in New Issue
	
	Block a user