diff --git a/resources/views/app/pdf/estimate/estimate1.blade.php b/resources/views/app/pdf/estimate/estimate1.blade.php index 5bd08298..13348e10 100644 --- a/resources/views/app/pdf/estimate/estimate1.blade.php +++ b/resources/views/app/pdf/estimate/estimate1.blade.php @@ -64,13 +64,13 @@ padding-bottom: 20px; } + /* -------------------------- */ + /* company details style */ + .company-details-container { padding-top: 30px; } - /* -------------------------- */ - /* company address style */ - .company-address-container { float: left; padding-left: 30px; @@ -100,10 +100,6 @@ padding: 10px 30px 0 0; } - .amount-due { - background-color: #f2f2f2; - } - .attribute-label { font-size: 12px; line-height: 18px; @@ -118,7 +114,6 @@ text-align: right; } - /* -------------------------- */ /* customer address style */ @@ -198,14 +193,17 @@ width: 160px; } - .item-table { + /* -------------------------- */ + /* items style */ + + .items-table { margin-top: 35px; padding: 0px 30px 10px 30px; page-break-before: avoid; page-break-after: auto; } - .item-table hr { + .items-table hr { height: 0.1px; } @@ -241,15 +239,15 @@ border-color: #d9d9d9; } - .padd8 { - padding-top: 8px; - padding-bottom: 8px; + .item-description { + color: #595959; + font-size: 9px; + font-weight:300; + line-height: 12px; } - .padd2 { - padding-top: 2px; - padding-bottom: 2px; - } + /* -------------------------- */ + /* total display table style */ .total-display-table { border-top: none; @@ -262,6 +260,23 @@ margin-top: 10px } + .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; + } + .total-border-left { border: 1px solid #E8E8E8 !important; border-right: 0px !important; @@ -276,9 +291,8 @@ padding: 8px !important; } - .inv-item { - border-color: red; - } + /* -------------------------- */ + /* notes style */ .notes { font-size: 12px; @@ -300,6 +314,13 @@ padding-bottom: 10px; } + /* -------------------------- */ + /* helpers style */ + + .text-primary { + color: #5851DB; + } + .text-center { text-align: center } @@ -312,9 +333,43 @@ text-align: right; } - .no-border { + .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; + } diff --git a/resources/views/app/pdf/estimate/estimate2.blade.php b/resources/views/app/pdf/estimate/estimate2.blade.php index 5d2d489f..6e0ee7ab 100644 --- a/resources/views/app/pdf/estimate/estimate2.blade.php +++ b/resources/views/app/pdf/estimate/estimate2.blade.php @@ -12,25 +12,23 @@ 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 style */ - .header-table { + .header-container { background: #817AE3; position: absolute; width: 100%; @@ -39,6 +37,14 @@ 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; @@ -46,14 +52,13 @@ color: #fff; } - .header-right { + .header-section-right { display: inline-block; width: 35%; float: right; padding: 20px 30px 20px 0px; text-align: right; color: white; - } .header { @@ -61,36 +66,65 @@ color: rgba(0, 0, 0, 0.7); } + /* -------------------------- */ + /* estimate details container */ + + .estimate-details-container { + text-align: center; + width: 40%; + } + + .estimate-details-container h1 { + margin: 0; + font-weight: 500; + font-size: 24px; + line-height: 36px; + text-align: right; + } + + .estimate-details-container h4 { + margin: 0; + font-size: 10px; + line-height: 15px; + text-align: right; + } + + .estimate-details-container h3 { + margin-bottom: 1px; + margin-top: 0; + } + + /* -------------------------- */ + /* address-container */ + .wrapper { display: block; margin-top: 60px; padding-bottom: 20px; } - .address { + .address-container { display: block; padding-top: 20px; } - .company { + .company-address-container { padding: 0 0 0 30px; display: inline; float: left; width: 30%; } - .company h1 { - font-style: normal; + .company-address-heading { font-weight: bold; font-size: 15px; line-height: 22px; letter-spacing: 0.05em; margin-bottom: 0; + margin-top: 12px; } - .company-address{ - font-style: normal; - font-weight: normal; + .company-address-text { font-size: 10px; line-height: 15px; color: #595959; @@ -99,25 +133,23 @@ /* -------------------------- */ /* billing style */ - .bill-address-container { + + .billing-address-container { display: block; /* position: absolute; */ 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; @@ -125,9 +157,7 @@ margin-bottom: 0px; } - .bill-user-address { - font-style: normal; - font-weight: normal; + .billing-address-text { font-size: 10px; line-height: 15px; color: #595959; @@ -136,36 +166,24 @@ 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-address-container { display: block; 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; @@ -173,9 +191,7 @@ margin-bottom: 0px; } - .ship-user-address { - font-style: normal; - font-weight: normal; + .shipping-address-text { font-size: 10px; line-height: 15px; color: #595959; @@ -184,26 +200,6 @@ 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; - } - .attribute-label { font-size: 12; font-weight: bold; @@ -217,29 +213,17 @@ color: rgba(0, 0, 0, 0.7); } - .item-table-heading-row td { - padding: 5px; - padding-bottom: 10px; - } + /* -------------------------- */ + /* items style */ - .item-table-heading-row { - border-bottom: 1px solid red; - } - - .table2 { + .items-table { margin-top: 30px; 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; - } - - .table2 hr { + .items-table hr { height: 0.1px; } @@ -250,17 +234,22 @@ padding: 5px; } + .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-row td { - font-style: normal; - font-weight: normal; font-size: 12px; line-height: 18px; } @@ -273,85 +262,63 @@ padding-top: 10px; } - .note-header { - font-size: 13; - color: rgba(0, 0, 0, 0.6); + .item-description { + color: #595959; + font-size: 9px; + font-weight:300; + line-height: 12px; } - .note-text { - font-size: 10; - color: rgba(0, 0, 0, 0.6); - } + /* -------------------------- */ + /* total display table style */ - .padd8 { - padding-top: 8px; - padding-bottom: 8px; - } - - .padd2 { - padding-top: 2px; - padding-bottom: 2px; - } - - .table3 { - border: 1px solid #EAF1FB; + .total-display-table { 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 { + margin-left:420px; + margin-top: 10px; 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; + .total-table-attribute-label { + font-size: 12px; + color: #55547A; + text-align: left; + padding-left: 10px; } - .no-border { - border: none; - } - - .company-details { - text-align: center; - width: 40%; - } - - .company-details h1 { - margin: 0; - font-style: normal; + .total-table-attribute-value { font-weight: 500; - font-size: 24px; - line-height: 36px; text-align: right; + font-size: 12px; + color: #040405; + padding-right: 10px; + padding-top: 2px; + padding-bottom: 2px; } - .company-details h4 { - margin: 0; - font-style: normal; - font-weight: normal; - font-size: 10px; - line-height: 15px; - text-align: right; + .total-border-left { + border: 1px solid #E8E8E8 !important; + border-right: 0px !important; + padding-top: 0px; + padding: 8px !important; } - .company-details h3 { - margin-bottom: 1px; - margin-top: 0; + .total-border-right { + border: 1px solid #E8E8E8 !important; + border-left: 0px !important; + padding-top: 0px; + padding: 8px !important; } + /* -------------------------- */ + /* notes style */ + .notes { - font-style: normal; font-weight: 300; font-size: 12px; color: #595959; @@ -363,8 +330,6 @@ } .notes-label { - font-style: normal; - font-weight: normal; font-size: 15px; line-height: 22px; letter-spacing: 0.05em; @@ -373,24 +338,81 @@ height: 19.87px; padding-bottom: 10px; } + + /* -------------------------- */ + /* helpers style */ + + .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; + }
-| + |
| + |
@if($estimate->user->company)
{{$estimate->user->company->name}}@endif @endif |
- + |
Estimate{{$estimate->estimate_number}}{{$estimate->formattedEstimateDate}}@@ -400,25 +422,24 @@
-
-
+
+
@include('app.pdf.estimate.partials.company-address')
-
+
@include('app.pdf.estimate.partials.shipping-address')
@if($estimate->user->shippingaddress)
-
- @else
-
- @endif
- @include('app.pdf.estimate.partials.billing-address')
-
-
+
+ @else
+
-
+ @endif
+ @include('app.pdf.estimate.partials.billing-address')
+
@include('app.pdf.estimate.partials.table')
@include('app.pdf.estimate.partials.notes')
|