refactor reports pdfs

This commit is contained in:
Jay Makwana
2020-05-07 18:59:50 +05:30
parent 611ffafec5
commit fc1a7c7438
5 changed files with 321 additions and 375 deletions

View File

@ -2,30 +2,20 @@
<html lang="en">
<head>
<title>Expenses Report</title>
{{-- <link href="https://fonts.googleapis.com/css?family=Poppins&display=swap" rel="stylesheet"> --}}
<style type="text/css">
body {
font-family: "DejaVu Sans";
}
/* html {
margin: 0px;
padding: 0px;
} */
.main-container {
/* padding: 30px 60px; */
}
.sub-container{
padding: 0px 20px;
}
table {
border-collapse: collapse;
}
.header {
.sub-container{
padding: 0px 20px;
}
.report-header {
width: 100%;
}
@ -115,7 +105,7 @@
color: #040405;
}
.expenses-total-indicator-table {
.report-footer {
width: 100%;
margin-top: 40px;
padding: 15px 20px;
@ -123,7 +113,7 @@
box-sizing: border-box;
}
.total-expense-title {
.report-footer-label {
padding: 0px;
margin: 0px;
text-align: left;
@ -133,7 +123,7 @@
color: #595959;
}
.total-expense-amount {
.report-footer-value {
padding: 0px;
margin: 0px;
text-align: right;
@ -145,9 +135,8 @@
</style>
</head>
<body>
<div class="main-container">
<div class="sub-container">
<table class="header">
<table class="report-header">
<tr>
<td>
<p class="heading-text">{{ $company->name }}</p>
@ -190,16 +179,15 @@
</td>
</tr>
</table>
<table class="expenses-total-indicator-table">
<table class="report-footer">
<tr>
<td>
<p class="total-expense-title">TOTAL EXPENSE</p>
<p class="report-footer-label">TOTAL EXPENSE</p>
</td>
<td>
<p class="total-expense-amount">{!! format_money_pdf($totalExpense) !!}</p>
<p class="report-footer-value">{!! format_money_pdf($totalExpense) !!}</p>
</td>
</tr>
</table>
</div>
</body>
</html>

View File

@ -2,30 +2,20 @@
<html lang="en">
<head>
<title>Profit & Loss Report</title>
{{-- <link href="https://fonts.googleapis.com/css?family=Poppins&display=swap" rel="stylesheet"> --}}
<style type="text/css">
body {
font-family: "DejaVu Sans";
}
html {
margin: 0px;
padding: 0px;
}
.main-container {
padding: 30px 60px;
}
.sub-container{
padding: 0px 20px;
}
table {
border-collapse: collapse;
}
.header {
.sub-container{
padding: 0px 20px;
}
.report-header {
width: 100%;
}
@ -140,7 +130,7 @@
color: #040405;
}
.profit-indicator-table {
.report-footer {
width: 100%;
margin-top: 40px;
padding: 15px 20px;
@ -148,7 +138,7 @@
box-sizing: border-box;
}
.profit-title {
.report-footer-label {
padding: 0px;
margin: 0px;
text-align: left;
@ -158,7 +148,7 @@
color: #595959;
}
.profit-amount {
.report-footer-value {
padding: 0px;
margin: 0px;
text-align: right;
@ -170,9 +160,8 @@
</style>
</head>
<body>
<div class="main-container">
<div class="sub-container">
<table class="header">
<table class="report-header">
<tr>
<td>
<p class="heading-text">{{ $company->name }}</p>
@ -227,16 +216,15 @@
</td>
</tr>
</table>
<table class="profit-indicator-table">
<table class="report-footer">
<tr>
<td>
<p class="profit-title">NET PROFIT</p>
<p class="report-footer-label">NET PROFIT</p>
</td>
<td>
<p class="profit-amount">{!! format_money_pdf(($income-$totalExpense)) !!}</p>
<p class="report-footer-value">{!! format_money_pdf(($income-$totalExpense)) !!}</p>
</td>
</tr>
</table>
</div>
</body>
</html>

View File

@ -2,28 +2,23 @@
<html lang="en">
<head>
<title>Sales Customer Report</title>
{{-- <link href="https://fonts.googleapis.com/css?family=Poppins&display=swap" rel="stylesheet"> --}}
<style type="text/css">
body {
font-family: "DejaVu Sans";
}
.main-container {
/* padding: 30px 80px; */
table {
border-collapse: collapse;
}
.sub-container{
padding: 0px 20px;
}
.header {
.report-header {
width: 100%;
}
table {
border-collapse: collapse;
}
.heading-text {
font-weight: 600;
font-size: 24px;
@ -54,7 +49,7 @@
margin-top: 30px;
}
.sales-cusutomer-name {
.sales-customer-name {
margin-top: 20px;
padding-left: 3px;
font-size: 16px;
@ -110,7 +105,7 @@
color: #040405;
}
.profit-indicator-table {
.report-footer {
width: 100%;
margin-top: 40px;
padding: 15px 20px;
@ -118,7 +113,7 @@
box-sizing: border-box;
}
.profit-title {
.report-footer-label {
padding: 0px;
margin: 0px;
text-align: left;
@ -128,7 +123,7 @@
color: #595959;
}
.profit-amount {
.report-footer-value {
padding: 0px;
margin: 0px;
text-align: right;
@ -143,9 +138,8 @@
</style>
</head>
<body>
<div class="main-container">
<div class="sub-container">
<table class="header">
<table class="report-header">
<tr>
<td>
<p class="heading-text">{{ $company->name }}</p>
@ -162,7 +156,7 @@
</table>
@foreach ($customers as $customer)
<p class="sales-cusutomer-name">{{ $customer->name }}</p>
<p class="sales-customer-name">{{ $customer->name }}</p>
<div class="sales-table-container">
<table class="sales-table">
@foreach ($customer->invoices as $invoice)
@ -194,18 +188,17 @@
</div>
<table class="profit-indicator-table">
<table class="report-footer">
<tr>
<td>
<p class="profit-title">TOTAL SALES</p>
<p class="report-footer-label">TOTAL SALES</p>
</td>
<td>
<p class="profit-amount">
<p class="report-footer-value">
{!! format_money_pdf($totalAmount) !!}
</p>
</td>
</tr>
</table>
</div>
</body>
</html>

View File

@ -2,30 +2,20 @@
<html lang="en">
<head>
<title>Sales Item Report</title>
{{-- <link href="https://fonts.googleapis.com/css?family=Poppins&display=swap" rel="stylesheet"> --}}
<style type="text/css">
body {
font-family: "DejaVu Sans";
}
/* html {
margin: 0px;
padding: 0px;
} */
.main-container {
/* padding: 30px 80px; */
}
.sub-container{
padding: 0px 20px;
}
table {
border-collapse: collapse;
}
.header {
.sub-container{
padding: 0px 20px;
}
.report-header {
width: 100%;
}
@ -115,7 +105,7 @@
color: #040405;
}
.profit-indicator-table {
.report-footer {
width: 100%;
margin-top: 40px;
padding: 15px 20px;
@ -123,7 +113,7 @@
box-sizing: border-box;
}
.profit-title {
.report-footer-label {
padding: 0px;
margin: 0px;
text-align: left;
@ -133,7 +123,7 @@
color: #595959;
}
.profit-amount {
.report-footer-value {
padding: 0px;
margin: 0px;
text-align: right;
@ -148,9 +138,8 @@
</style>
</head>
<body>
<div class="main-container">
<div class="sub-container">
<table class="header">
<table class="report-header">
<tr>
<td>
<p class="heading-text">{{ $company->name }}</p>
@ -198,18 +187,17 @@
</div>
<table class="profit-indicator-table">
<table class="report-footer">
<tr>
<td>
<p class="profit-title">TOTAL SALES</p>
<p class="report-footer-label">TOTAL SALES</p>
</td>
<td>
<p class="profit-amount">
<p class="report-footer-value">
{!! format_money_pdf($totalAmount) !!}
</p>
</td>
</tr>
</table>
</div>
</body>
</html>

View File

@ -2,29 +2,20 @@
<html lang="en">
<head>
<title>Tax Summary Report</title>
{{-- <link href="https://fonts.googleapis.com/css?family=Poppins&display=swap" rel="stylesheet"> --}}
<style type="text/css">
body {
font-family: "DejaVu Sans";
}
/* html {
margin: 0px;
padding: 0px;
} */
.main-container {
}
.sub-container{
padding: 0px 20px;
}
table {
border-collapse: collapse;
}
.header {
.sub-container{
padding: 0px 20px;
}
.report-header {
width: 100%;
margin-bottom: 60px
}
@ -115,7 +106,7 @@
color: #040405;
}
.total-tax-indicator-table {
.report-footer {
width: 100%;
margin-top: 40px;
padding: 15px 20px;
@ -123,7 +114,7 @@
box-sizing: border-box;
}
.total-tax-title {
.report-footer-label {
padding: 0px;
margin: 0px;
text-align: left;
@ -133,7 +124,7 @@
color: #595959;
}
.total-tax-amount {
.report-footer-value {
padding: 0px;
margin: 0px;
text-align: right;
@ -145,9 +136,8 @@
</style>
</head>
<body>
<div class="main-container">
<div class="sub-container">
<table class="header">
<table class="report-header">
<tr>
<td>
<p class="heading-text">
@ -197,18 +187,17 @@
</td>
</tr>
</table>
<table class="total-tax-indicator-table">
<table class="report-footer">
<tr>
<td>
<p class="total-tax-title">TOTAL TAX</p>
<p class="report-footer-label">TOTAL TAX</p>
</td>
<td>
<p class="total-tax-amount">
<p class="report-footer-value">
{!! format_money_pdf($totalTaxAmount) !!}
</p>
</td>
</tr>
</table>
</div>
</body>
</html>