mirror of
https://github.com/crater-invoice/crater.git
synced 2025-11-01 06:01:08 -04:00
init crater
This commit is contained in:
214
resources/views/app/pdf/reports/expenses.blade.php
Normal file
214
resources/views/app/pdf/reports/expenses.blade.php
Normal file
@ -0,0 +1,214 @@
|
||||
<!DOCTYPE html>
|
||||
<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: 'Roboto', sans-serif;
|
||||
}
|
||||
|
||||
/* html {
|
||||
margin: 0px;
|
||||
padding: 0px;
|
||||
} */
|
||||
|
||||
table {
|
||||
border-collapse: collapse;
|
||||
}
|
||||
|
||||
.main-container {
|
||||
/* padding: 30px 60px; */
|
||||
}
|
||||
|
||||
.sub-container{
|
||||
padding: 0px 20px;
|
||||
}
|
||||
|
||||
.header {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.heading-text {
|
||||
font-style: normal;
|
||||
font-weight: 600;
|
||||
font-size: 24px;
|
||||
color: #5851D8;
|
||||
width: 100%;
|
||||
text-align: left;
|
||||
padding: 0px;
|
||||
margin: 0px;
|
||||
}
|
||||
|
||||
.heading-date-range {
|
||||
font-style: normal;
|
||||
font-weight: 600;
|
||||
font-size: 15px;
|
||||
color: #A5ACC1;
|
||||
width: 100%;
|
||||
text-align: right;
|
||||
padding: 0px;
|
||||
margin: 0px;
|
||||
}
|
||||
|
||||
.sub-heading-text {
|
||||
font-style: normal;
|
||||
font-weight: 600;
|
||||
font-size: 16px;
|
||||
/* line-height: 21px; */
|
||||
color: #595959;
|
||||
padding: 0px;
|
||||
margin: 0px;
|
||||
margin-top: 6px;
|
||||
}
|
||||
|
||||
.expenses-title {
|
||||
margin-top: 60px;
|
||||
padding-left: 3px;
|
||||
font-style: normal;
|
||||
font-weight: normal;
|
||||
font-size: 16px;
|
||||
line-height: 21px;
|
||||
color: #040405;
|
||||
}
|
||||
|
||||
.expenses-table-container {
|
||||
padding-left: 10px;
|
||||
}
|
||||
|
||||
.expenses-table {
|
||||
width: 100%;
|
||||
padding-bottom: 10px;
|
||||
}
|
||||
|
||||
.expense-title {
|
||||
padding: 0px;
|
||||
margin: 0px;
|
||||
font-style: normal;
|
||||
font-weight: normal;
|
||||
font-size: 14px;
|
||||
line-height: 21px;
|
||||
color: #595959;
|
||||
}
|
||||
|
||||
.expense-money {
|
||||
padding: 0px;
|
||||
margin: 0px;
|
||||
font-style: normal;
|
||||
font-weight: normal;
|
||||
font-size: 14px;
|
||||
line-height: 21px;
|
||||
text-align: right;
|
||||
color: #595959;
|
||||
}
|
||||
|
||||
.expense-total-table {
|
||||
border-top: 1px solid #EAF1FB;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.expense-total-cell {
|
||||
padding-right: 20px;
|
||||
padding-top: 10px;
|
||||
}
|
||||
|
||||
.expense-total {
|
||||
padding-top: 10px;
|
||||
padding-right: 30px;
|
||||
padding: 0px;
|
||||
margin: 0px;
|
||||
text-align: right;
|
||||
font-style: normal;
|
||||
font-weight: 500;
|
||||
font-size: 16px;
|
||||
line-height: 21px;
|
||||
text-align: right;
|
||||
color: #040405;
|
||||
}
|
||||
|
||||
.total-expense-table {
|
||||
width: 100%;
|
||||
margin-top: 40px;
|
||||
padding: 15px 20px;
|
||||
background: #F9FBFF;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.total-expense-title {
|
||||
padding: 0px;
|
||||
margin: 0px;
|
||||
text-align: left;
|
||||
font-style: normal;
|
||||
font-weight: 600;
|
||||
font-size: 16px;
|
||||
line-height: 21px;
|
||||
color: #595959;
|
||||
}
|
||||
|
||||
.total-expense-money {
|
||||
padding: 0px;
|
||||
margin: 0px;
|
||||
text-align: right;
|
||||
font-style: normal;
|
||||
font-weight: 500;
|
||||
font-size: 20px;
|
||||
line-height: 21px;
|
||||
color: #5851D8;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="main-container">
|
||||
<div class="sub-container">
|
||||
<table class="header">
|
||||
<tr>
|
||||
<td>
|
||||
<p class="heading-text">{{ $company->name }}</p>
|
||||
</td>
|
||||
<td>
|
||||
<p class="heading-date-range">{{ $from_date }} - {{ $to_date }}</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
<p class="sub-heading-text">EXPENSES REPORT</p>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<p class="expenses-title">Expenses</p>
|
||||
<div class="expenses-table-container">
|
||||
<table class="expenses-table">
|
||||
@foreach ($expenseCategories as $expenseCategory)
|
||||
<tr>
|
||||
<td>
|
||||
<p class="expense-title">{{ $expenseCategory->category->name }}</p>
|
||||
</td>
|
||||
<td>
|
||||
<p class="expense-money">{!! format_money_pdf($expenseCategory->total_amount) !!}</p>
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<table class="expense-total-table">
|
||||
<tr>
|
||||
<td class="expense-total-cell">
|
||||
<p class="expense-total">{!! format_money_pdf($totalExpense) !!}</p>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<table class="total-expense-table">
|
||||
<tr>
|
||||
<td>
|
||||
<p class="total-expense-title">TOTAL EXPENSE</p>
|
||||
</td>
|
||||
<td>
|
||||
<p class="total-expense-money">{!! format_money_pdf($totalExpense) !!}</p>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
254
resources/views/app/pdf/reports/profit-loss.blade.php
Normal file
254
resources/views/app/pdf/reports/profit-loss.blade.php
Normal file
@ -0,0 +1,254 @@
|
||||
<!DOCTYPE html>
|
||||
<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: 'Roboto', sans-serif;
|
||||
}
|
||||
|
||||
html {
|
||||
margin: 0px;
|
||||
padding: 0px;
|
||||
}
|
||||
|
||||
table {
|
||||
border-collapse: collapse;
|
||||
}
|
||||
|
||||
.main-container {
|
||||
padding: 30px 60px;
|
||||
}
|
||||
|
||||
.sub-container{
|
||||
padding: 0px 20px;
|
||||
}
|
||||
|
||||
.header {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.heading-text {
|
||||
font-style: normal;
|
||||
font-weight: 600;
|
||||
font-size: 24px;
|
||||
color: #5851D8;
|
||||
width: 100%;
|
||||
text-align: left;
|
||||
padding: 0px;
|
||||
margin: 0px;
|
||||
}
|
||||
|
||||
.heading-date-range {
|
||||
font-style: normal;
|
||||
font-weight: 600;
|
||||
font-size: 15px;
|
||||
color: #A5ACC1;
|
||||
width: 100%;
|
||||
text-align: right;
|
||||
padding: 0px;
|
||||
margin: 0px;
|
||||
}
|
||||
|
||||
.sub-heading-text {
|
||||
font-style: normal;
|
||||
font-weight: 600;
|
||||
font-size: 16px;
|
||||
/* line-height: 21px; */
|
||||
color: #595959;
|
||||
padding: 0px;
|
||||
margin: 0px;
|
||||
margin-top: 6px;
|
||||
}
|
||||
|
||||
.income-table {
|
||||
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;
|
||||
padding-left: 3px;
|
||||
font-style: normal;
|
||||
font-weight: normal;
|
||||
font-size: 16px;
|
||||
line-height: 21px;
|
||||
color: #040405;
|
||||
}
|
||||
|
||||
.expenses-table-container {
|
||||
padding-left: 10px;
|
||||
}
|
||||
|
||||
.expenses-table {
|
||||
width: 100%;
|
||||
padding-bottom: 10px;
|
||||
}
|
||||
|
||||
.expense-title {
|
||||
padding: 0px;
|
||||
margin: 0px;
|
||||
font-style: normal;
|
||||
font-weight: normal;
|
||||
font-size: 14px;
|
||||
line-height: 21px;
|
||||
color: #595959;
|
||||
}
|
||||
|
||||
.expense-money {
|
||||
padding: 0px;
|
||||
margin: 0px;
|
||||
font-style: normal;
|
||||
font-weight: normal;
|
||||
font-size: 14px;
|
||||
line-height: 21px;
|
||||
text-align: right;
|
||||
color: #595959;
|
||||
}
|
||||
|
||||
.expense-total-table {
|
||||
border-top: 1px solid #EAF1FB;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.expense-total-cell {
|
||||
padding-right: 20px;
|
||||
padding-top: 10px;
|
||||
}
|
||||
|
||||
.expense-total {
|
||||
padding-top: 10px;
|
||||
padding-right: 30px;
|
||||
padding: 0px;
|
||||
margin: 0px;
|
||||
text-align: right;
|
||||
font-style: normal;
|
||||
font-weight: 500;
|
||||
font-size: 16px;
|
||||
line-height: 21px;
|
||||
text-align: right;
|
||||
color: #040405;
|
||||
}
|
||||
|
||||
.profit-table {
|
||||
width: 100%;
|
||||
margin-top: 40px;
|
||||
padding: 15px 20px;
|
||||
background: #F9FBFF;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.profit-title {
|
||||
padding: 0px;
|
||||
margin: 0px;
|
||||
text-align: left;
|
||||
font-style: normal;
|
||||
font-weight: 600;
|
||||
font-size: 16px;
|
||||
line-height: 21px;
|
||||
color: #595959;
|
||||
}
|
||||
|
||||
.profit-money {
|
||||
padding: 0px;
|
||||
margin: 0px;
|
||||
text-align: right;
|
||||
font-style: normal;
|
||||
font-weight: 500;
|
||||
font-size: 20px;
|
||||
line-height: 21px;
|
||||
color: #5851D8;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="main-container">
|
||||
<div class="sub-container">
|
||||
<table class="header">
|
||||
<tr>
|
||||
<td>
|
||||
<p class="heading-text">{{ $company->name }}</p>
|
||||
</td>
|
||||
<td>
|
||||
<p class="heading-date-range">{{ $from_date }} - {{ $to_date }}</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
<p class="sub-heading-text">PROFIT & LOSS REPORT</p>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<table class="income-table">
|
||||
<tr>
|
||||
<td>
|
||||
<p class="income-title">Income</p>
|
||||
</td>
|
||||
<td>
|
||||
<p class="income-money">{!! format_money_pdf($income) !!}</p>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<p class="expenses-title">Expenses</p>
|
||||
<div class="expenses-table-container">
|
||||
<table class="expenses-table">
|
||||
@foreach ($expenseCategories as $expenseCategory)
|
||||
<tr>
|
||||
<td>
|
||||
<p class="expense-title">{{ $expenseCategory->category->name }}</p>
|
||||
</td>
|
||||
<td>
|
||||
<p class="expense-money">{!! format_money_pdf($expenseCategory->total_amount) !!}</p>
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<table class="expense-total-table">
|
||||
<tr>
|
||||
<td class="expense-total-cell">
|
||||
<p class="expense-total">{!! format_money_pdf($totalExpense) !!}</p>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<table class="profit-table">
|
||||
<tr>
|
||||
<td>
|
||||
<p class="profit-title">NET PROFIT</p>
|
||||
</td>
|
||||
<td>
|
||||
<p class="profit-money">{!! format_money_pdf(($income-$totalExpense)) !!}</p>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
258
resources/views/app/pdf/reports/sales-customers.blade.php
Normal file
258
resources/views/app/pdf/reports/sales-customers.blade.php
Normal file
@ -0,0 +1,258 @@
|
||||
<!DOCTYPE html>
|
||||
<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: 'Roboto', sans-serif;
|
||||
}
|
||||
|
||||
/* html {
|
||||
margin: 0px;
|
||||
padding: 0px;
|
||||
} */
|
||||
|
||||
table {
|
||||
border-collapse: collapse;
|
||||
}
|
||||
|
||||
.main-container {
|
||||
/* padding: 30px 80px; */
|
||||
}
|
||||
|
||||
.sub-container{
|
||||
padding: 0px 20px;
|
||||
}
|
||||
|
||||
.header {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.heading-text {
|
||||
font-style: normal;
|
||||
font-weight: 600;
|
||||
font-size: 24px;
|
||||
color: #5851D8;
|
||||
width: 100%;
|
||||
text-align: left;
|
||||
padding: 0px;
|
||||
margin: 0px;
|
||||
}
|
||||
|
||||
.heading-date-range {
|
||||
font-style: normal;
|
||||
font-weight: 600;
|
||||
font-size: 15px;
|
||||
color: #A5ACC1;
|
||||
width: 100%;
|
||||
text-align: right;
|
||||
padding: 0px;
|
||||
margin: 0px;
|
||||
}
|
||||
|
||||
.sub-heading-text {
|
||||
font-style: normal;
|
||||
font-weight: 600;
|
||||
font-size: 16px;
|
||||
line-height: 21px;
|
||||
color: #595959;
|
||||
padding: 0px;
|
||||
margin: 0px;
|
||||
margin-top: 30px;
|
||||
}
|
||||
|
||||
.income-table {
|
||||
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;
|
||||
padding-left: 3px;
|
||||
font-style: normal;
|
||||
font-weight: normal;
|
||||
font-size: 16px;
|
||||
line-height: 21px;
|
||||
color: #040405;
|
||||
}
|
||||
|
||||
.expenses-table-container {
|
||||
padding-left: 10px;
|
||||
}
|
||||
|
||||
.expenses-table {
|
||||
width: 100%;
|
||||
padding-bottom: 10px;
|
||||
}
|
||||
|
||||
.expense-title {
|
||||
padding: 0px;
|
||||
margin: 0px;
|
||||
font-style: normal;
|
||||
font-weight: normal;
|
||||
font-size: 14px;
|
||||
line-height: 21px;
|
||||
color: #595959;
|
||||
}
|
||||
|
||||
.expense-money {
|
||||
padding: 0px;
|
||||
margin: 0px;
|
||||
font-style: normal;
|
||||
font-weight: normal;
|
||||
font-size: 14px;
|
||||
line-height: 21px;
|
||||
text-align: right;
|
||||
color: #595959;
|
||||
}
|
||||
|
||||
.expense-total-table {
|
||||
border-top: 1px solid #EAF1FB;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.expense-total-cell {
|
||||
padding-top: 10px;
|
||||
}
|
||||
|
||||
.expense-total {
|
||||
padding-top: 10px;
|
||||
padding-right: 30px;
|
||||
padding: 0px;
|
||||
margin: 0px;
|
||||
text-align: right;
|
||||
font-style: normal;
|
||||
font-weight: 500;
|
||||
font-size: 16px;
|
||||
line-height: 21px;
|
||||
text-align: right;
|
||||
color: #040405;
|
||||
}
|
||||
|
||||
.profit-table {
|
||||
width: 100%;
|
||||
margin-top: 40px;
|
||||
padding: 15px 20px;
|
||||
background: #F9FBFF;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.profit-title {
|
||||
padding: 0px;
|
||||
margin: 0px;
|
||||
text-align: left;
|
||||
font-style: normal;
|
||||
font-weight: 600;
|
||||
font-size: 16px;
|
||||
line-height: 21px;
|
||||
color: #595959;
|
||||
}
|
||||
|
||||
.profit-money {
|
||||
padding: 0px;
|
||||
margin: 0px;
|
||||
text-align: right;
|
||||
font-style: normal;
|
||||
font-weight: 500;
|
||||
font-size: 20px;
|
||||
line-height: 21px;
|
||||
color: #5851D8;
|
||||
}
|
||||
.text-center {
|
||||
text-align: center;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="main-container">
|
||||
<div class="sub-container">
|
||||
<table class="header">
|
||||
<tr>
|
||||
<td>
|
||||
<p class="heading-text">{{ $company->name }}</p>
|
||||
</td>
|
||||
<td>
|
||||
<p class="heading-date-range">{{ $from_date }} - {{ $to_date }}</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
<p class="sub-heading-text text-center">Sales Report: By Customer</p>
|
||||
</td>
|
||||
</tr>
|
||||
</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)
|
||||
<p class="expenses-title">{{ $customer->name }}</p>
|
||||
<div class="expenses-table-container">
|
||||
<table class="expenses-table">
|
||||
@foreach ($customer->invoices as $invoice)
|
||||
<tr>
|
||||
<td>
|
||||
<p class="expense-title">{{ $invoice->formattedInvoiceDate }} ({{ $invoice->invoice_number }})</p>
|
||||
</td>
|
||||
<td>
|
||||
<p class="expense-money">{!! format_money_pdf($invoice->total) !!}</p>
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</table>
|
||||
</div>
|
||||
<table class="expense-total-table">
|
||||
<tr>
|
||||
<td class="expense-total-cell">
|
||||
<p class="expense-total">{!! format_money_pdf($customer->totalAmount) !!}</p>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
@endforeach
|
||||
</div>
|
||||
|
||||
|
||||
<table class="profit-table">
|
||||
<tr>
|
||||
<td>
|
||||
<p class="profit-title">TOTAL SALES</p>
|
||||
</td>
|
||||
<td>
|
||||
<p class="profit-money">{!! format_money_pdf($totalAmount) !!}</p>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
257
resources/views/app/pdf/reports/sales-items.blade.php
Normal file
257
resources/views/app/pdf/reports/sales-items.blade.php
Normal file
@ -0,0 +1,257 @@
|
||||
<!DOCTYPE html>
|
||||
<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: 'Roboto', sans-serif;
|
||||
}
|
||||
|
||||
/* html {
|
||||
margin: 0px;
|
||||
padding: 0px;
|
||||
} */
|
||||
|
||||
table {
|
||||
border-collapse: collapse;
|
||||
}
|
||||
|
||||
.main-container {
|
||||
/* padding: 30px 80px; */
|
||||
}
|
||||
|
||||
.sub-container{
|
||||
padding: 0px 20px;
|
||||
}
|
||||
|
||||
.header {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.heading-text {
|
||||
font-style: normal;
|
||||
font-weight: 600;
|
||||
font-size: 24px;
|
||||
color: #5851D8;
|
||||
width: 100%;
|
||||
text-align: left;
|
||||
padding: 0px;
|
||||
margin: 0px;
|
||||
}
|
||||
|
||||
.heading-date-range {
|
||||
font-style: normal;
|
||||
font-weight: 600;
|
||||
font-size: 15px;
|
||||
color: #A5ACC1;
|
||||
width: 100%;
|
||||
text-align: right;
|
||||
padding: 0px;
|
||||
margin: 0px;
|
||||
}
|
||||
|
||||
.sub-heading-text {
|
||||
font-style: normal;
|
||||
font-weight: 600;
|
||||
font-size: 16px;
|
||||
line-height: 21px;
|
||||
color: #595959;
|
||||
padding: 0px;
|
||||
margin: 0px;
|
||||
margin-top: 30px;
|
||||
}
|
||||
|
||||
.income-table {
|
||||
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;
|
||||
padding-left: 3px;
|
||||
font-style: normal;
|
||||
font-weight: normal;
|
||||
font-size: 16px;
|
||||
line-height: 21px;
|
||||
color: #040405;
|
||||
}
|
||||
|
||||
.expenses-table-container {
|
||||
padding-left: 10px;
|
||||
}
|
||||
|
||||
.expenses-table {
|
||||
width: 100%;
|
||||
padding-bottom: 10px;
|
||||
}
|
||||
|
||||
.expense-title {
|
||||
padding: 0px;
|
||||
margin: 0px;
|
||||
font-style: normal;
|
||||
font-weight: normal;
|
||||
font-size: 14px;
|
||||
line-height: 21px;
|
||||
color: #595959;
|
||||
}
|
||||
|
||||
.expense-money {
|
||||
padding: 0px;
|
||||
margin: 0px;
|
||||
font-style: normal;
|
||||
font-weight: normal;
|
||||
font-size: 14px;
|
||||
line-height: 21px;
|
||||
text-align: right;
|
||||
color: #595959;
|
||||
}
|
||||
|
||||
.expense-total-table {
|
||||
border-top: 1px solid #EAF1FB;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.expense-total-cell {
|
||||
padding-top: 10px;
|
||||
}
|
||||
|
||||
.expense-total {
|
||||
padding-top: 10px;
|
||||
padding-right: 30px;
|
||||
padding: 0px;
|
||||
margin: 0px;
|
||||
text-align: right;
|
||||
font-style: normal;
|
||||
font-weight: 500;
|
||||
font-size: 16px;
|
||||
line-height: 21px;
|
||||
text-align: right;
|
||||
color: #040405;
|
||||
}
|
||||
|
||||
.profit-table {
|
||||
width: 100%;
|
||||
margin-top: 40px;
|
||||
padding: 15px 20px;
|
||||
background: #F9FBFF;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.profit-title {
|
||||
padding: 0px;
|
||||
margin: 0px;
|
||||
text-align: left;
|
||||
font-style: normal;
|
||||
font-weight: 600;
|
||||
font-size: 16px;
|
||||
line-height: 21px;
|
||||
color: #595959;
|
||||
}
|
||||
|
||||
.profit-money {
|
||||
padding: 0px;
|
||||
margin: 0px;
|
||||
text-align: right;
|
||||
font-style: normal;
|
||||
font-weight: 500;
|
||||
font-size: 20px;
|
||||
line-height: 21px;
|
||||
color: #5851D8;
|
||||
}
|
||||
.text-center {
|
||||
text-align: center;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="main-container">
|
||||
<div class="sub-container">
|
||||
<table class="header">
|
||||
<tr>
|
||||
<td>
|
||||
<p class="heading-text">{{ $company->name }}</p>
|
||||
</td>
|
||||
<td>
|
||||
<p class="heading-date-range">{{ $from_date }} - {{ $to_date }}</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
<p class="sub-heading-text text-center">Sales Report: By Item</p>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
{{-- <table class="income-table">
|
||||
<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)
|
||||
<div class="expenses-table-container">
|
||||
<table class="expenses-table">
|
||||
<tr>
|
||||
<td>
|
||||
<p class="expense-title">{{ $item->item->name }}</p>
|
||||
</td>
|
||||
<td>
|
||||
<p class="expense-money">{!! format_money_pdf($item->total_amount) !!}</p>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
@endforeach
|
||||
|
||||
<table class="expense-total-table">
|
||||
<tr>
|
||||
<td class="expense-total-cell">
|
||||
<p class="expense-total">{!! format_money_pdf($totalAmount) !!}</p>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
|
||||
<table class="profit-table">
|
||||
<tr>
|
||||
<td>
|
||||
<p class="profit-title">TOTAL SALES</p>
|
||||
</td>
|
||||
<td>
|
||||
<p class="profit-money">{!! format_money_pdf($totalAmount) !!}</p>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
226
resources/views/app/pdf/reports/tax-summary.blade.php
Normal file
226
resources/views/app/pdf/reports/tax-summary.blade.php
Normal file
@ -0,0 +1,226 @@
|
||||
<!DOCTYPE html>
|
||||
<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: 'Roboto', sans-serif;
|
||||
}
|
||||
|
||||
/* html {
|
||||
margin: 0px;
|
||||
padding: 0px;
|
||||
} */
|
||||
|
||||
table {
|
||||
border-collapse: collapse;
|
||||
}
|
||||
|
||||
.main-container {
|
||||
/* padding: 30px 60px; */
|
||||
}
|
||||
|
||||
.sub-container{
|
||||
padding: 0px 20px;
|
||||
}
|
||||
|
||||
.header {
|
||||
width: 100%;
|
||||
margin-bottom: 60px
|
||||
}
|
||||
|
||||
.heading-text {
|
||||
font-style: normal;
|
||||
font-weight: 600;
|
||||
font-size: 24px;
|
||||
color: #5851D8;
|
||||
width: 100%;
|
||||
text-align: left;
|
||||
padding: 0px;
|
||||
margin: 0px;
|
||||
}
|
||||
|
||||
.heading-date-range {
|
||||
font-style: normal;
|
||||
font-weight: 600;
|
||||
font-size: 15px;
|
||||
color: #A5ACC1;
|
||||
width: 100%;
|
||||
text-align: right;
|
||||
padding: 0px;
|
||||
margin: 0px;
|
||||
}
|
||||
|
||||
.sub-heading-text {
|
||||
font-style: normal;
|
||||
font-weight: 600;
|
||||
font-size: 16px;
|
||||
/* line-height: 21px; */
|
||||
color: #595959;
|
||||
padding: 0px;
|
||||
margin: 0px;
|
||||
margin-top: 6px;
|
||||
}
|
||||
|
||||
.types-title {
|
||||
margin-top: 20px;
|
||||
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;
|
||||
line-height: 21px;
|
||||
color: #040405;
|
||||
}
|
||||
|
||||
.tax-table-container {
|
||||
padding-left: 10px;
|
||||
}
|
||||
|
||||
.tax-table {
|
||||
width: 100%;
|
||||
padding-bottom: 10px;
|
||||
}
|
||||
|
||||
.tax-title {
|
||||
padding: 0px;
|
||||
margin: 0px;
|
||||
font-style: normal;
|
||||
font-weight: normal;
|
||||
font-size: 14px;
|
||||
line-height: 21px;
|
||||
color: #595959;
|
||||
}
|
||||
|
||||
.tax-money {
|
||||
padding: 0px;
|
||||
margin: 0px;
|
||||
font-style: normal;
|
||||
font-weight: normal;
|
||||
font-size: 14px;
|
||||
line-height: 21px;
|
||||
text-align: right;
|
||||
color: #595959;
|
||||
}
|
||||
|
||||
.tax-total-table {
|
||||
border-top: 1px solid #EAF1FB;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.tax-total-cell {
|
||||
padding-right: 20px;
|
||||
padding-top: 10px;
|
||||
}
|
||||
|
||||
.tax-total {
|
||||
padding-top: 10px;
|
||||
padding-right: 30px;
|
||||
padding: 0px;
|
||||
margin: 0px;
|
||||
text-align: right;
|
||||
font-style: normal;
|
||||
font-weight: 500;
|
||||
font-size: 16px;
|
||||
line-height: 21px;
|
||||
text-align: right;
|
||||
color: #040405;
|
||||
}
|
||||
|
||||
.total-tax-table {
|
||||
width: 100%;
|
||||
margin-top: 40px;
|
||||
padding: 15px 20px;
|
||||
background: #F9FBFF;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.total-tax-title {
|
||||
padding: 0px;
|
||||
margin: 0px;
|
||||
text-align: left;
|
||||
font-style: normal;
|
||||
font-weight: 600;
|
||||
font-size: 16px;
|
||||
line-height: 21px;
|
||||
color: #595959;
|
||||
}
|
||||
|
||||
.total-tax-money {
|
||||
padding: 0px;
|
||||
margin: 0px;
|
||||
text-align: right;
|
||||
font-style: normal;
|
||||
font-weight: 500;
|
||||
font-size: 20px;
|
||||
line-height: 21px;
|
||||
color: #5851D8;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="main-container">
|
||||
<div class="sub-container">
|
||||
<table class="header">
|
||||
<tr>
|
||||
<td>
|
||||
<p class="heading-text">{{ $company->name }}</p>
|
||||
</td>
|
||||
<td>
|
||||
<p class="heading-date-range">{{ $from_date }} - {{ $to_date }}</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
<p class="sub-heading-text">TAX REPORT</p>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<p class="types-title">Tax Types</p>
|
||||
<div class="tax-table-container">
|
||||
<table class="tax-table">
|
||||
@foreach ($taxTypes as $tax)
|
||||
<tr>
|
||||
<td>
|
||||
<p class="tax-title">{{ $tax->taxType->name }}</p>
|
||||
</td>
|
||||
<td>
|
||||
<p class="tax-money">{!! format_money_pdf($tax->total_tax_amount) !!}</p>
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<table class="tax-total-table">
|
||||
<tr>
|
||||
<td class="tax-total-cell">
|
||||
<p class="tax-total">{!! format_money_pdf($totalTaxAmount) !!}</p>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<table class="total-tax-table">
|
||||
<tr>
|
||||
<td>
|
||||
<p class="total-tax-title">TOTAL TAX</p>
|
||||
</td>
|
||||
<td>
|
||||
<p class="total-tax-money">{!! format_money_pdf($totalTaxAmount) !!}</p>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user