From f8913531b6be338815e32e323246bef4f90ae145 Mon Sep 17 00:00:00 2001
From: Jay Makwana
Date: Wed, 6 May 2020 18:09:28 +0530
Subject: [PATCH] refactor profit loss pdfs
---
.../app/pdf/reports/profit-loss.blade.php | 44 ++++++-------------
1 file changed, 14 insertions(+), 30 deletions(-)
diff --git a/resources/views/app/pdf/reports/profit-loss.blade.php b/resources/views/app/pdf/reports/profit-loss.blade.php
index fbcb59c7..4434fb38 100644
--- a/resources/views/app/pdf/reports/profit-loss.blade.php
+++ b/resources/views/app/pdf/reports/profit-loss.blade.php
@@ -13,10 +13,6 @@
padding: 0px;
}
- table {
- border-collapse: collapse;
- }
-
.main-container {
padding: 30px 60px;
}
@@ -25,12 +21,15 @@
padding: 0px 20px;
}
+ table {
+ border-collapse: collapse;
+ }
+
.header {
width: 100%;
}
.heading-text {
- font-style: normal;
font-weight: 600;
font-size: 24px;
color: #5851D8;
@@ -41,7 +40,6 @@
}
.heading-date-range {
- font-style: normal;
font-weight: 600;
font-size: 15px;
color: #A5ACC1;
@@ -52,10 +50,8 @@
}
.sub-heading-text {
- font-style: normal;
font-weight: 600;
font-size: 16px;
- /* line-height: 21px; */
color: #595959;
padding: 0px;
margin: 0px;
@@ -70,18 +66,15 @@
.income-title {
padding: 0px;
margin: 0px;
- font-style: normal;
- font-weight: normal;
font-size: 16px;
line-height: 21px;
color: #040405;
text-align: left;
}
- .income-money {
+ .income-amount {
padding: 0px;
margin: 0px;
- font-style: normal;
font-weight: 500;
font-size: 16px;
line-height: 21px;
@@ -93,8 +86,6 @@
.expenses-title {
margin-top: 20px;
padding-left: 3px;
- font-style: normal;
- font-weight: normal;
font-size: 16px;
line-height: 21px;
color: #040405;
@@ -112,25 +103,21 @@
.expense-title {
padding: 0px;
margin: 0px;
- font-style: normal;
- font-weight: normal;
font-size: 14px;
line-height: 21px;
color: #595959;
}
- .expense-money {
+ .expense-amount {
padding: 0px;
margin: 0px;
- font-style: normal;
- font-weight: normal;
font-size: 14px;
line-height: 21px;
text-align: right;
color: #595959;
}
- .expense-total-table {
+ .expense-total-indicator-table {
border-top: 1px solid #EAF1FB;
width: 100%;
}
@@ -146,7 +133,6 @@
padding: 0px;
margin: 0px;
text-align: right;
- font-style: normal;
font-weight: 500;
font-size: 16px;
line-height: 21px;
@@ -154,7 +140,7 @@
color: #040405;
}
- .profit-table {
+ .profit-indicator-table {
width: 100%;
margin-top: 40px;
padding: 15px 20px;
@@ -166,18 +152,16 @@
padding: 0px;
margin: 0px;
text-align: left;
- font-style: normal;
font-weight: 600;
font-size: 16px;
line-height: 21px;
color: #595959;
}
- .profit-money {
+ .profit-amount {
padding: 0px;
margin: 0px;
text-align: right;
- font-style: normal;
font-weight: 500;
font-size: 20px;
line-height: 21px;
@@ -210,7 +194,7 @@
Income
- {!! format_money_pdf($income) !!}
+ {!! format_money_pdf($income) !!}
|
@@ -225,7 +209,7 @@
-
+
{!! format_money_pdf($expenseCategory->total_amount) !!}
|
@@ -236,20 +220,20 @@
-
+
|
{!! format_money_pdf($totalExpense) !!}
|
-
+
|
NET PROFIT
|
- {!! format_money_pdf(($income-$totalExpense)) !!}
+ {!! format_money_pdf(($income-$totalExpense)) !!}
|