Merge branch 'refactor-report-pdfs' into 'master'

Refactor report pdfs

See merge request mohit.panjvani/crater-web!233
This commit is contained in:
Mohit Panjwani
2020-05-11 15:48:49 +00:00
5 changed files with 325 additions and 537 deletions

View File

@ -2,35 +2,24 @@
<html lang="en"> <html lang="en">
<head> <head>
<title>Expenses Report</title> <title>Expenses Report</title>
{{-- <link href="https://fonts.googleapis.com/css?family=Poppins&display=swap" rel="stylesheet"> --}}
<style type="text/css"> <style type="text/css">
body { body {
font-family: "DejaVu Sans"; font-family: "DejaVu Sans";
} }
/* html {
margin: 0px;
padding: 0px;
} */
table { table {
border-collapse: collapse; border-collapse: collapse;
} }
.main-container {
/* padding: 30px 60px; */
}
.sub-container{ .sub-container{
padding: 0px 20px; padding: 0px 20px;
} }
.header { .report-header {
width: 100%; width: 100%;
} }
.heading-text { .heading-text {
font-style: normal;
font-weight: 600; font-weight: 600;
font-size: 24px; font-size: 24px;
color: #5851D8; color: #5851D8;
@ -41,7 +30,6 @@
} }
.heading-date-range { .heading-date-range {
font-style: normal;
font-weight: 600; font-weight: 600;
font-size: 15px; font-size: 15px;
color: #A5ACC1; color: #A5ACC1;
@ -52,10 +40,8 @@
} }
.sub-heading-text { .sub-heading-text {
font-style: normal;
font-weight: 600; font-weight: 600;
font-size: 16px; font-size: 16px;
/* line-height: 21px; */
color: #595959; color: #595959;
padding: 0px; padding: 0px;
margin: 0px; margin: 0px;
@ -65,8 +51,6 @@
.expenses-title { .expenses-title {
margin-top: 60px; margin-top: 60px;
padding-left: 3px; padding-left: 3px;
font-style: normal;
font-weight: normal;
font-size: 16px; font-size: 16px;
line-height: 21px; line-height: 21px;
color: #040405; color: #040405;
@ -84,18 +68,14 @@
.expense-title { .expense-title {
padding: 0px; padding: 0px;
margin: 0px; margin: 0px;
font-style: normal;
font-weight: normal;
font-size: 14px; font-size: 14px;
line-height: 21px; line-height: 21px;
color: #595959; color: #595959;
} }
.expense-money { .expense-amount {
padding: 0px; padding: 0px;
margin: 0px; margin: 0px;
font-style: normal;
font-weight: normal;
font-size: 14px; font-size: 14px;
line-height: 21px; line-height: 21px;
text-align: right; text-align: right;
@ -118,7 +98,6 @@
padding: 0px; padding: 0px;
margin: 0px; margin: 0px;
text-align: right; text-align: right;
font-style: normal;
font-weight: 500; font-weight: 500;
font-size: 16px; font-size: 16px;
line-height: 21px; line-height: 21px;
@ -126,7 +105,7 @@
color: #040405; color: #040405;
} }
.total-expense-table { .report-footer {
width: 100%; width: 100%;
margin-top: 40px; margin-top: 40px;
padding: 15px 20px; padding: 15px 20px;
@ -134,22 +113,20 @@
box-sizing: border-box; box-sizing: border-box;
} }
.total-expense-title { .report-footer-label {
padding: 0px; padding: 0px;
margin: 0px; margin: 0px;
text-align: left; text-align: left;
font-style: normal;
font-weight: 600; font-weight: 600;
font-size: 16px; font-size: 16px;
line-height: 21px; line-height: 21px;
color: #595959; color: #595959;
} }
.total-expense-money { .report-footer-value {
padding: 0px; padding: 0px;
margin: 0px; margin: 0px;
text-align: right; text-align: right;
font-style: normal;
font-weight: 500; font-weight: 500;
font-size: 20px; font-size: 20px;
line-height: 21px; line-height: 21px;
@ -158,9 +135,8 @@
</style> </style>
</head> </head>
<body> <body>
<div class="main-container">
<div class="sub-container"> <div class="sub-container">
<table class="header"> <table class="report-header">
<tr> <tr>
<td> <td>
<p class="heading-text">{{ $company->name }}</p> <p class="heading-text">{{ $company->name }}</p>
@ -186,7 +162,7 @@
</p> </p>
</td> </td>
<td> <td>
<p class="expense-money"> <p class="expense-amount">
{!! format_money_pdf($expenseCategory->total_amount) !!} {!! format_money_pdf($expenseCategory->total_amount) !!}
</p> </p>
</td> </td>
@ -203,16 +179,15 @@
</td> </td>
</tr> </tr>
</table> </table>
<table class="total-expense-table"> <table class="report-footer">
<tr> <tr>
<td> <td>
<p class="total-expense-title">TOTAL EXPENSE</p> <p class="report-footer-label">TOTAL EXPENSE</p>
</td> </td>
<td> <td>
<p class="total-expense-money">{!! format_money_pdf($totalExpense) !!}</p> <p class="report-footer-value">{!! format_money_pdf($totalExpense) !!}</p>
</td> </td>
</tr> </tr>
</table> </table>
</div>
</body> </body>
</html> </html>

View File

@ -2,35 +2,24 @@
<html lang="en"> <html lang="en">
<head> <head>
<title>Profit & Loss Report</title> <title>Profit & Loss Report</title>
{{-- <link href="https://fonts.googleapis.com/css?family=Poppins&display=swap" rel="stylesheet"> --}}
<style type="text/css"> <style type="text/css">
body { body {
font-family: "DejaVu Sans"; font-family: "DejaVu Sans";
} }
html {
margin: 0px;
padding: 0px;
}
table { table {
border-collapse: collapse; border-collapse: collapse;
} }
.main-container {
padding: 30px 60px;
}
.sub-container{ .sub-container{
padding: 0px 20px; padding: 0px 20px;
} }
.header { .report-header {
width: 100%; width: 100%;
} }
.heading-text { .heading-text {
font-style: normal;
font-weight: 600; font-weight: 600;
font-size: 24px; font-size: 24px;
color: #5851D8; color: #5851D8;
@ -41,7 +30,6 @@
} }
.heading-date-range { .heading-date-range {
font-style: normal;
font-weight: 600; font-weight: 600;
font-size: 15px; font-size: 15px;
color: #A5ACC1; color: #A5ACC1;
@ -52,10 +40,8 @@
} }
.sub-heading-text { .sub-heading-text {
font-style: normal;
font-weight: 600; font-weight: 600;
font-size: 16px; font-size: 16px;
/* line-height: 21px; */
color: #595959; color: #595959;
padding: 0px; padding: 0px;
margin: 0px; margin: 0px;
@ -70,18 +56,15 @@
.income-title { .income-title {
padding: 0px; padding: 0px;
margin: 0px; margin: 0px;
font-style: normal;
font-weight: normal;
font-size: 16px; font-size: 16px;
line-height: 21px; line-height: 21px;
color: #040405; color: #040405;
text-align: left; text-align: left;
} }
.income-money { .income-amount {
padding: 0px; padding: 0px;
margin: 0px; margin: 0px;
font-style: normal;
font-weight: 500; font-weight: 500;
font-size: 16px; font-size: 16px;
line-height: 21px; line-height: 21px;
@ -93,8 +76,6 @@
.expenses-title { .expenses-title {
margin-top: 20px; margin-top: 20px;
padding-left: 3px; padding-left: 3px;
font-style: normal;
font-weight: normal;
font-size: 16px; font-size: 16px;
line-height: 21px; line-height: 21px;
color: #040405; color: #040405;
@ -112,25 +93,21 @@
.expense-title { .expense-title {
padding: 0px; padding: 0px;
margin: 0px; margin: 0px;
font-style: normal;
font-weight: normal;
font-size: 14px; font-size: 14px;
line-height: 21px; line-height: 21px;
color: #595959; color: #595959;
} }
.expense-money { .expense-amount {
padding: 0px; padding: 0px;
margin: 0px; margin: 0px;
font-style: normal;
font-weight: normal;
font-size: 14px; font-size: 14px;
line-height: 21px; line-height: 21px;
text-align: right; text-align: right;
color: #595959; color: #595959;
} }
.expense-total-table { .expense-total-indicator-table {
border-top: 1px solid #EAF1FB; border-top: 1px solid #EAF1FB;
width: 100%; width: 100%;
} }
@ -146,7 +123,6 @@
padding: 0px; padding: 0px;
margin: 0px; margin: 0px;
text-align: right; text-align: right;
font-style: normal;
font-weight: 500; font-weight: 500;
font-size: 16px; font-size: 16px;
line-height: 21px; line-height: 21px;
@ -154,7 +130,7 @@
color: #040405; color: #040405;
} }
.profit-table { .report-footer {
width: 100%; width: 100%;
margin-top: 40px; margin-top: 40px;
padding: 15px 20px; padding: 15px 20px;
@ -162,22 +138,20 @@
box-sizing: border-box; box-sizing: border-box;
} }
.profit-title { .report-footer-label {
padding: 0px; padding: 0px;
margin: 0px; margin: 0px;
text-align: left; text-align: left;
font-style: normal;
font-weight: 600; font-weight: 600;
font-size: 16px; font-size: 16px;
line-height: 21px; line-height: 21px;
color: #595959; color: #595959;
} }
.profit-money { .report-footer-value {
padding: 0px; padding: 0px;
margin: 0px; margin: 0px;
text-align: right; text-align: right;
font-style: normal;
font-weight: 500; font-weight: 500;
font-size: 20px; font-size: 20px;
line-height: 21px; line-height: 21px;
@ -186,9 +160,8 @@
</style> </style>
</head> </head>
<body> <body>
<div class="main-container">
<div class="sub-container"> <div class="sub-container">
<table class="header"> <table class="report-header">
<tr> <tr>
<td> <td>
<p class="heading-text">{{ $company->name }}</p> <p class="heading-text">{{ $company->name }}</p>
@ -210,7 +183,7 @@
<p class="income-title">Income</p> <p class="income-title">Income</p>
</td> </td>
<td> <td>
<p class="income-money">{!! format_money_pdf($income) !!}</p> <p class="income-amount">{!! format_money_pdf($income) !!}</p>
</td> </td>
</tr> </tr>
</table> </table>
@ -225,7 +198,7 @@
</p> </p>
</td> </td>
<td> <td>
<p class="expense-money"> <p class="expense-amount">
{!! format_money_pdf($expenseCategory->total_amount) !!} {!! format_money_pdf($expenseCategory->total_amount) !!}
</p> </p>
</td> </td>
@ -236,23 +209,22 @@
</div> </div>
</div> </div>
<table class="expense-total-table"> <table class="expense-total-indicator-table">
<tr> <tr>
<td class="expense-total-cell"> <td class="expense-total-cell">
<p class="expense-total">{!! format_money_pdf($totalExpense) !!}</p> <p class="expense-total">{!! format_money_pdf($totalExpense) !!}</p>
</td> </td>
</tr> </tr>
</table> </table>
<table class="profit-table"> <table class="report-footer">
<tr> <tr>
<td> <td>
<p class="profit-title">NET PROFIT</p> <p class="report-footer-label">NET PROFIT</p>
</td> </td>
<td> <td>
<p class="profit-money">{!! format_money_pdf(($income-$totalExpense)) !!}</p> <p class="report-footer-value">{!! format_money_pdf(($income-$totalExpense)) !!}</p>
</td> </td>
</tr> </tr>
</table> </table>
</div>
</body> </body>
</html> </html>

View File

@ -2,35 +2,24 @@
<html lang="en"> <html lang="en">
<head> <head>
<title>Sales Customer Report</title> <title>Sales Customer Report</title>
{{-- <link href="https://fonts.googleapis.com/css?family=Poppins&display=swap" rel="stylesheet"> --}}
<style type="text/css"> <style type="text/css">
body { body {
font-family: "DejaVu Sans"; font-family: "DejaVu Sans";
} }
/* html {
margin: 0px;
padding: 0px;
} */
table { table {
border-collapse: collapse; border-collapse: collapse;
} }
.main-container {
/* padding: 30px 80px; */
}
.sub-container{ .sub-container{
padding: 0px 20px; padding: 0px 20px;
} }
.header { .report-header {
width: 100%; width: 100%;
} }
.heading-text { .heading-text {
font-style: normal;
font-weight: 600; font-weight: 600;
font-size: 24px; font-size: 24px;
color: #5851D8; color: #5851D8;
@ -41,7 +30,6 @@
} }
.heading-date-range { .heading-date-range {
font-style: normal;
font-weight: 600; font-weight: 600;
font-size: 15px; font-size: 15px;
color: #A5ACC1; color: #A5ACC1;
@ -52,7 +40,6 @@
} }
.sub-heading-text { .sub-heading-text {
font-style: normal;
font-weight: 600; font-weight: 600;
font-size: 16px; font-size: 16px;
line-height: 21px; line-height: 21px;
@ -62,90 +49,55 @@
margin-top: 30px; margin-top: 30px;
} }
.income-table { .sales-customer-name {
margin-top: 53px;
width: 100%;
}
.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 {
padding: 0px;
margin: 0px;
font-style: normal;
font-weight: 500;
font-size: 16px;
line-height: 21px;
text-align: right;
color: #040405;
text-align: right;
}
.expenses-title {
margin-top: 20px; margin-top: 20px;
padding-left: 3px; padding-left: 3px;
font-style: normal;
font-weight: normal;
font-size: 16px; font-size: 16px;
line-height: 21px; line-height: 21px;
color: #040405; color: #040405;
} }
.expenses-table-container { .sales-table-container {
padding-left: 10px; padding-left: 10px;
} }
.expenses-table { .sales-table {
width: 100%; width: 100%;
padding-bottom: 10px; padding-bottom: 10px;
} }
.expense-title { .sales-information-text {
padding: 0px; padding: 0px;
margin: 0px; margin: 0px;
font-style: normal;
font-weight: normal;
font-size: 14px; font-size: 14px;
line-height: 21px; line-height: 21px;
color: #595959; color: #595959;
} }
.expense-money { .sales-amount {
padding: 0px; padding: 0px;
margin: 0px; margin: 0px;
font-style: normal;
font-weight: normal;
font-size: 14px; font-size: 14px;
line-height: 21px; line-height: 21px;
text-align: right; text-align: right;
color: #595959; color: #595959;
} }
.expense-total-table { .sales-total-indicator-table {
border-top: 1px solid #EAF1FB; border-top: 1px solid #EAF1FB;
width: 100%; width: 100%;
} }
.expense-total-cell { .sales-total-cell {
padding-top: 10px; padding-top: 10px;
} }
.expense-total { .sales-total-amount {
padding-top: 10px; padding-top: 10px;
padding-right: 30px; padding-right: 30px;
padding: 0px; padding: 0px;
margin: 0px; margin: 0px;
text-align: right; text-align: right;
font-style: normal;
font-weight: 500; font-weight: 500;
font-size: 16px; font-size: 16px;
line-height: 21px; line-height: 21px;
@ -153,7 +105,7 @@
color: #040405; color: #040405;
} }
.profit-table { .report-footer {
width: 100%; width: 100%;
margin-top: 40px; margin-top: 40px;
padding: 15px 20px; padding: 15px 20px;
@ -161,22 +113,20 @@
box-sizing: border-box; box-sizing: border-box;
} }
.profit-title { .report-footer-label {
padding: 0px; padding: 0px;
margin: 0px; margin: 0px;
text-align: left; text-align: left;
font-style: normal;
font-weight: 600; font-weight: 600;
font-size: 16px; font-size: 16px;
line-height: 21px; line-height: 21px;
color: #595959; color: #595959;
} }
.profit-money { .report-footer-value {
padding: 0px; padding: 0px;
margin: 0px; margin: 0px;
text-align: right; text-align: right;
font-style: normal;
font-weight: 500; font-weight: 500;
font-size: 20px; font-size: 20px;
line-height: 21px; line-height: 21px;
@ -188,9 +138,8 @@
</style> </style>
</head> </head>
<body> <body>
<div class="main-container">
<div class="sub-container"> <div class="sub-container">
<table class="header"> <table class="report-header">
<tr> <tr>
<td> <td>
<p class="heading-text">{{ $company->name }}</p> <p class="heading-text">{{ $company->name }}</p>
@ -206,29 +155,19 @@
</tr> </tr>
</table> </table>
{{-- <table class="income-table">
<tr>
<td>
<p class="income-title">Income</p>
</td>
<td>
<p class="income-money">{{ $income }}</p>
</td>
</tr>
</table> --}}
@foreach ($customers as $customer) @foreach ($customers as $customer)
<p class="expenses-title">{{ $customer->name }}</p> <p class="sales-customer-name">{{ $customer->name }}</p>
<div class="expenses-table-container"> <div class="sales-table-container">
<table class="expenses-table"> <table class="sales-table">
@foreach ($customer->invoices as $invoice) @foreach ($customer->invoices as $invoice)
<tr> <tr>
<td> <td>
<p class="expense-title"> <p class="sales-information-text">
{{ $invoice->formattedInvoiceDate }} ({{ $invoice->invoice_number }}) {{ $invoice->formattedInvoiceDate }} ({{ $invoice->invoice_number }})
</p> </p>
</td> </td>
<td> <td>
<p class="expense-money"> <p class="sales-amount">
{!! format_money_pdf($invoice->total) !!} {!! format_money_pdf($invoice->total) !!}
</p> </p>
</td> </td>
@ -236,10 +175,10 @@
@endforeach @endforeach
</table> </table>
</div> </div>
<table class="expense-total-table"> <table class="sales-total-indicator-table">
<tr> <tr>
<td class="expense-total-cell"> <td class="sales-total-cell">
<p class="expense-total"> <p class="sales-total-amount">
{!! format_money_pdf($customer->totalAmount) !!} {!! format_money_pdf($customer->totalAmount) !!}
</p> </p>
</td> </td>
@ -249,18 +188,17 @@
</div> </div>
<table class="profit-table"> <table class="report-footer">
<tr> <tr>
<td> <td>
<p class="profit-title">TOTAL SALES</p> <p class="report-footer-label">TOTAL SALES</p>
</td> </td>
<td> <td>
<p class="profit-money"> <p class="report-footer-value">
{!! format_money_pdf($totalAmount) !!} {!! format_money_pdf($totalAmount) !!}
</p> </p>
</td> </td>
</tr> </tr>
</table> </table>
</div>
</body> </body>
</html> </html>

View File

@ -2,35 +2,24 @@
<html lang="en"> <html lang="en">
<head> <head>
<title>Sales Item Report</title> <title>Sales Item Report</title>
{{-- <link href="https://fonts.googleapis.com/css?family=Poppins&display=swap" rel="stylesheet"> --}}
<style type="text/css"> <style type="text/css">
body { body {
font-family: "DejaVu Sans"; font-family: "DejaVu Sans";
} }
/* html {
margin: 0px;
padding: 0px;
} */
table { table {
border-collapse: collapse; border-collapse: collapse;
} }
.main-container {
/* padding: 30px 80px; */
}
.sub-container{ .sub-container{
padding: 0px 20px; padding: 0px 20px;
} }
.header { .report-header {
width: 100%; width: 100%;
} }
.heading-text { .heading-text {
font-style: normal;
font-weight: 600; font-weight: 600;
font-size: 24px; font-size: 24px;
color: #5851D8; color: #5851D8;
@ -41,7 +30,6 @@
} }
.heading-date-range { .heading-date-range {
font-style: normal;
font-weight: 600; font-weight: 600;
font-size: 15px; font-size: 15px;
color: #A5ACC1; color: #A5ACC1;
@ -52,7 +40,6 @@
} }
.sub-heading-text { .sub-heading-text {
font-style: normal;
font-weight: 600; font-weight: 600;
font-size: 16px; font-size: 16px;
line-height: 21px; line-height: 21px;
@ -62,90 +49,55 @@
margin-top: 30px; margin-top: 30px;
} }
.income-table { .sales-items-title {
margin-top: 53px;
width: 100%;
}
.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 {
padding: 0px;
margin: 0px;
font-style: normal;
font-weight: 500;
font-size: 16px;
line-height: 21px;
text-align: right;
color: #040405;
text-align: right;
}
.expenses-title {
margin-top: 20px; margin-top: 20px;
padding-left: 3px; padding-left: 3px;
font-style: normal;
font-weight: normal;
font-size: 16px; font-size: 16px;
line-height: 21px; line-height: 21px;
color: #040405; color: #040405;
} }
.expenses-table-container { .items-table-container {
padding-left: 10px; padding-left: 10px;
} }
.expenses-table { .items-table {
width: 100%; width: 100%;
padding-bottom: 10px; padding-bottom: 10px;
} }
.expense-title { .item-title {
padding: 0px; padding: 0px;
margin: 0px; margin: 0px;
font-style: normal;
font-weight: normal;
font-size: 14px; font-size: 14px;
line-height: 21px; line-height: 21px;
color: #595959; color: #595959;
} }
.expense-money { .item-sales-amount {
padding: 0px; padding: 0px;
margin: 0px; margin: 0px;
font-style: normal;
font-weight: normal;
font-size: 14px; font-size: 14px;
line-height: 21px; line-height: 21px;
text-align: right; text-align: right;
color: #595959; color: #595959;
} }
.expense-total-table { .sales-total-indicator-table {
border-top: 1px solid #EAF1FB; border-top: 1px solid #EAF1FB;
width: 100%; width: 100%;
} }
.expense-total-cell { .sales-total-cell {
padding-top: 10px; padding-top: 10px;
} }
.expense-total { .sales-total-amount {
padding-top: 10px; padding-top: 10px;
padding-right: 30px; padding-right: 30px;
padding: 0px; padding: 0px;
margin: 0px; margin: 0px;
text-align: right; text-align: right;
font-style: normal;
font-weight: 500; font-weight: 500;
font-size: 16px; font-size: 16px;
line-height: 21px; line-height: 21px;
@ -153,7 +105,7 @@
color: #040405; color: #040405;
} }
.profit-table { .report-footer {
width: 100%; width: 100%;
margin-top: 40px; margin-top: 40px;
padding: 15px 20px; padding: 15px 20px;
@ -161,22 +113,20 @@
box-sizing: border-box; box-sizing: border-box;
} }
.profit-title { .report-footer-label {
padding: 0px; padding: 0px;
margin: 0px; margin: 0px;
text-align: left; text-align: left;
font-style: normal;
font-weight: 600; font-weight: 600;
font-size: 16px; font-size: 16px;
line-height: 21px; line-height: 21px;
color: #595959; color: #595959;
} }
.profit-money { .report-footer-value {
padding: 0px; padding: 0px;
margin: 0px; margin: 0px;
text-align: right; text-align: right;
font-style: normal;
font-weight: 500; font-weight: 500;
font-size: 20px; font-size: 20px;
line-height: 21px; line-height: 21px;
@ -188,9 +138,8 @@
</style> </style>
</head> </head>
<body> <body>
<div class="main-container">
<div class="sub-container"> <div class="sub-container">
<table class="header"> <table class="report-header">
<tr> <tr>
<td> <td>
<p class="heading-text">{{ $company->name }}</p> <p class="heading-text">{{ $company->name }}</p>
@ -206,28 +155,18 @@
</tr> </tr>
</table> </table>
{{-- <table class="income-table"> <p class="sales-items-title">Items</p>
<tr>
<td>
<p class="income-title">Income</p>
</td>
<td>
<p class="income-money">{{ $income }}</p>
</td>
</tr>
</table> --}}
<p class="expenses-title">Items</p>
@foreach ($items as $item) @foreach ($items as $item)
<div class="expenses-table-container"> <div class="items-table-container">
<table class="expenses-table"> <table class="items-table">
<tr> <tr>
<td> <td>
<p class="expense-title"> <p class="item-title">
{{ $item->name }} {{ $item->name }}
</p> </p>
</td> </td>
<td> <td>
<p class="expense-money"> <p class="item-sales-amount">
{!! format_money_pdf($item->total_amount) !!} {!! format_money_pdf($item->total_amount) !!}
</p> </p>
</td> </td>
@ -236,10 +175,10 @@
</div> </div>
@endforeach @endforeach
<table class="expense-total-table"> <table class="sales-total-indicator-table">
<tr> <tr>
<td class="expense-total-cell"> <td class="sales-total-cell">
<p class="expense-total"> <p class="sales-total-amount">
{!! format_money_pdf($totalAmount) !!} {!! format_money_pdf($totalAmount) !!}
</p> </p>
</td> </td>
@ -248,18 +187,17 @@
</div> </div>
<table class="profit-table"> <table class="report-footer">
<tr> <tr>
<td> <td>
<p class="profit-title">TOTAL SALES</p> <p class="report-footer-label">TOTAL SALES</p>
</td> </td>
<td> <td>
<p class="profit-money"> <p class="report-footer-value">
{!! format_money_pdf($totalAmount) !!} {!! format_money_pdf($totalAmount) !!}
</p> </p>
</td> </td>
</tr> </tr>
</table> </table>
</div>
</body> </body>
</html> </html>

View File

@ -2,36 +2,25 @@
<html lang="en"> <html lang="en">
<head> <head>
<title>Tax Summary Report</title> <title>Tax Summary Report</title>
{{-- <link href="https://fonts.googleapis.com/css?family=Poppins&display=swap" rel="stylesheet"> --}}
<style type="text/css"> <style type="text/css">
body { body {
font-family: "DejaVu Sans"; font-family: "DejaVu Sans";
} }
/* html {
margin: 0px;
padding: 0px;
} */
table { table {
border-collapse: collapse; border-collapse: collapse;
} }
.main-container {
/* padding: 30px 60px; */
}
.sub-container{ .sub-container{
padding: 0px 20px; padding: 0px 20px;
} }
.header { .report-header {
width: 100%; width: 100%;
margin-bottom: 60px margin-bottom: 60px
} }
.heading-text { .heading-text {
font-style: normal;
font-weight: 600; font-weight: 600;
font-size: 24px; font-size: 24px;
color: #5851D8; color: #5851D8;
@ -42,7 +31,6 @@
} }
.heading-date-range { .heading-date-range {
font-style: normal;
font-weight: 600; font-weight: 600;
font-size: 15px; font-size: 15px;
color: #A5ACC1; color: #A5ACC1;
@ -53,31 +41,17 @@
} }
.sub-heading-text { .sub-heading-text {
font-style: normal;
font-weight: 600; font-weight: 600;
font-size: 16px; font-size: 16px;
/* line-height: 21px; */
color: #595959; color: #595959;
padding: 0px; padding: 0px;
margin: 0px; margin: 0px;
margin-top: 6px; margin-top: 6px;
} }
.types-title { .tax-types-title {
margin-top: 20px; margin-top: 20px;
padding-left: 3px; padding-left: 3px;
font-style: normal;
font-weight: normal;
font-size: 16px;
line-height: 21px;
color: #040405;
}
.tax-title {
margin-top: 60px;
padding-left: 3px;
font-style: normal;
font-weight: normal;
font-size: 16px; font-size: 16px;
line-height: 21px; line-height: 21px;
color: #040405; color: #040405;
@ -95,18 +69,14 @@
.tax-title { .tax-title {
padding: 0px; padding: 0px;
margin: 0px; margin: 0px;
font-style: normal;
font-weight: normal;
font-size: 14px; font-size: 14px;
line-height: 21px; line-height: 21px;
color: #595959; color: #595959;
} }
.tax-money { .tax-amount {
padding: 0px; padding: 0px;
margin: 0px; margin: 0px;
font-style: normal;
font-weight: normal;
font-size: 14px; font-size: 14px;
line-height: 21px; line-height: 21px;
text-align: right; text-align: right;
@ -129,7 +99,6 @@
padding: 0px; padding: 0px;
margin: 0px; margin: 0px;
text-align: right; text-align: right;
font-style: normal;
font-weight: 500; font-weight: 500;
font-size: 16px; font-size: 16px;
line-height: 21px; line-height: 21px;
@ -137,7 +106,7 @@
color: #040405; color: #040405;
} }
.total-tax-table { .report-footer {
width: 100%; width: 100%;
margin-top: 40px; margin-top: 40px;
padding: 15px 20px; padding: 15px 20px;
@ -145,22 +114,20 @@
box-sizing: border-box; box-sizing: border-box;
} }
.total-tax-title { .report-footer-label {
padding: 0px; padding: 0px;
margin: 0px; margin: 0px;
text-align: left; text-align: left;
font-style: normal;
font-weight: 600; font-weight: 600;
font-size: 16px; font-size: 16px;
line-height: 21px; line-height: 21px;
color: #595959; color: #595959;
} }
.total-tax-money { .report-footer-value {
padding: 0px; padding: 0px;
margin: 0px; margin: 0px;
text-align: right; text-align: right;
font-style: normal;
font-weight: 500; font-weight: 500;
font-size: 20px; font-size: 20px;
line-height: 21px; line-height: 21px;
@ -169,9 +136,8 @@
</style> </style>
</head> </head>
<body> <body>
<div class="main-container">
<div class="sub-container"> <div class="sub-container">
<table class="header"> <table class="report-header">
<tr> <tr>
<td> <td>
<p class="heading-text"> <p class="heading-text">
@ -190,7 +156,7 @@
</td> </td>
</tr> </tr>
</table> </table>
<p class="types-title">Tax Types</p> <p class="tax-types-title">Tax Types</p>
<div class="tax-table-container"> <div class="tax-table-container">
<table class="tax-table"> <table class="tax-table">
@foreach ($taxTypes as $tax) @foreach ($taxTypes as $tax)
@ -201,7 +167,7 @@
</p> </p>
</td> </td>
<td> <td>
<p class="tax-money"> <p class="tax-amount">
{!! format_money_pdf($tax->total_tax_amount) !!} {!! format_money_pdf($tax->total_tax_amount) !!}
</p> </p>
</td> </td>
@ -221,18 +187,17 @@
</td> </td>
</tr> </tr>
</table> </table>
<table class="total-tax-table"> <table class="report-footer">
<tr> <tr>
<td> <td>
<p class="total-tax-title">TOTAL TAX</p> <p class="report-footer-label">TOTAL TAX</p>
</td> </td>
<td> <td>
<p class="total-tax-money"> <p class="report-footer-value">
{!! format_money_pdf($totalTaxAmount) !!} {!! format_money_pdf($totalTaxAmount) !!}
</p> </p>
</td> </td>
</tr> </tr>
</table> </table>
</div>
</body> </body>
</html> </html>