mirror of
https://github.com/crater-invoice/crater.git
synced 2025-10-27 19:51:09 -04:00
refactor reports pdfs
This commit is contained in:
@ -2,30 +2,20 @@
|
|||||||
<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;
|
|
||||||
} */
|
|
||||||
|
|
||||||
.main-container {
|
|
||||||
/* padding: 30px 60px; */
|
|
||||||
}
|
|
||||||
|
|
||||||
.sub-container{
|
|
||||||
padding: 0px 20px;
|
|
||||||
}
|
|
||||||
|
|
||||||
table {
|
table {
|
||||||
border-collapse: collapse;
|
border-collapse: collapse;
|
||||||
}
|
}
|
||||||
|
|
||||||
.header {
|
.sub-container{
|
||||||
|
padding: 0px 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.report-header {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -115,7 +105,7 @@
|
|||||||
color: #040405;
|
color: #040405;
|
||||||
}
|
}
|
||||||
|
|
||||||
.expenses-total-indicator-table {
|
.report-footer {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
margin-top: 40px;
|
margin-top: 40px;
|
||||||
padding: 15px 20px;
|
padding: 15px 20px;
|
||||||
@ -123,7 +113,7 @@
|
|||||||
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;
|
||||||
@ -133,7 +123,7 @@
|
|||||||
color: #595959;
|
color: #595959;
|
||||||
}
|
}
|
||||||
|
|
||||||
.total-expense-amount {
|
.report-footer-value {
|
||||||
padding: 0px;
|
padding: 0px;
|
||||||
margin: 0px;
|
margin: 0px;
|
||||||
text-align: right;
|
text-align: right;
|
||||||
@ -145,61 +135,59 @@
|
|||||||
</style>
|
</style>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div class="main-container">
|
<div class="sub-container">
|
||||||
<div class="sub-container">
|
<table class="report-header">
|
||||||
<table class="header">
|
<tr>
|
||||||
<tr>
|
<td>
|
||||||
<td>
|
<p class="heading-text">{{ $company->name }}</p>
|
||||||
<p class="heading-text">{{ $company->name }}</p>
|
</td>
|
||||||
</td>
|
<td>
|
||||||
<td>
|
<p class="heading-date-range">{{ $from_date }} - {{ $to_date }}</p>
|
||||||
<p class="heading-date-range">{{ $from_date }} - {{ $to_date }}</p>
|
</td>
|
||||||
</td>
|
</tr>
|
||||||
</tr>
|
<tr>
|
||||||
<tr>
|
<td colspan="2">
|
||||||
<td colspan="2">
|
<p class="sub-heading-text">EXPENSES REPORT</p>
|
||||||
<p class="sub-heading-text">EXPENSES REPORT</p>
|
</td>
|
||||||
</td>
|
</tr>
|
||||||
</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-amount">
|
||||||
|
{!! format_money_pdf($expenseCategory->total_amount) !!}
|
||||||
|
</p>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
@endforeach
|
||||||
</table>
|
</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-amount">
|
|
||||||
{!! format_money_pdf($expenseCategory->total_amount) !!}
|
|
||||||
</p>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
@endforeach
|
|
||||||
</table>
|
|
||||||
</div>
|
|
||||||
</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="expenses-total-indicator-table">
|
|
||||||
<tr>
|
|
||||||
<td>
|
|
||||||
<p class="total-expense-title">TOTAL EXPENSE</p>
|
|
||||||
</td>
|
|
||||||
<td>
|
|
||||||
<p class="total-expense-amount">{!! format_money_pdf($totalExpense) !!}</p>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
</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="report-footer">
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<p class="report-footer-label">TOTAL EXPENSE</p>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<p class="report-footer-value">{!! format_money_pdf($totalExpense) !!}</p>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
@ -2,30 +2,20 @@
|
|||||||
<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;
|
|
||||||
}
|
|
||||||
|
|
||||||
.main-container {
|
|
||||||
padding: 30px 60px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.sub-container{
|
|
||||||
padding: 0px 20px;
|
|
||||||
}
|
|
||||||
|
|
||||||
table {
|
table {
|
||||||
border-collapse: collapse;
|
border-collapse: collapse;
|
||||||
}
|
}
|
||||||
|
|
||||||
.header {
|
.sub-container{
|
||||||
|
padding: 0px 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.report-header {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -140,7 +130,7 @@
|
|||||||
color: #040405;
|
color: #040405;
|
||||||
}
|
}
|
||||||
|
|
||||||
.profit-indicator-table {
|
.report-footer {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
margin-top: 40px;
|
margin-top: 40px;
|
||||||
padding: 15px 20px;
|
padding: 15px 20px;
|
||||||
@ -148,7 +138,7 @@
|
|||||||
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;
|
||||||
@ -158,7 +148,7 @@
|
|||||||
color: #595959;
|
color: #595959;
|
||||||
}
|
}
|
||||||
|
|
||||||
.profit-amount {
|
.report-footer-value {
|
||||||
padding: 0px;
|
padding: 0px;
|
||||||
margin: 0px;
|
margin: 0px;
|
||||||
text-align: right;
|
text-align: right;
|
||||||
@ -170,73 +160,71 @@
|
|||||||
</style>
|
</style>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div class="main-container">
|
<div class="sub-container">
|
||||||
<div class="sub-container">
|
<table class="report-header">
|
||||||
<table class="header">
|
<tr>
|
||||||
<tr>
|
<td>
|
||||||
<td>
|
<p class="heading-text">{{ $company->name }}</p>
|
||||||
<p class="heading-text">{{ $company->name }}</p>
|
</td>
|
||||||
</td>
|
<td>
|
||||||
<td>
|
<p class="heading-date-range">{{ $from_date }} - {{ $to_date }}</p>
|
||||||
<p class="heading-date-range">{{ $from_date }} - {{ $to_date }}</p>
|
</td>
|
||||||
</td>
|
</tr>
|
||||||
</tr>
|
<tr>
|
||||||
<tr>
|
<td colspan="2">
|
||||||
<td colspan="2">
|
<p class="sub-heading-text">PROFIT & LOSS REPORT</p>
|
||||||
<p class="sub-heading-text">PROFIT & LOSS REPORT</p>
|
</td>
|
||||||
</td>
|
</tr>
|
||||||
</tr>
|
</table>
|
||||||
</table>
|
|
||||||
|
|
||||||
<table class="income-table">
|
<table class="income-table">
|
||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td>
|
||||||
<p class="income-title">Income</p>
|
<p class="income-title">Income</p>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<p class="income-amount">{!! format_money_pdf($income) !!}</p>
|
<p class="income-amount">{!! format_money_pdf($income) !!}</p>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
<p class="expenses-title">Expenses</p>
|
<p class="expenses-title">Expenses</p>
|
||||||
<div class="expenses-table-container">
|
<div class="expenses-table-container">
|
||||||
<table class="expenses-table">
|
<table class="expenses-table">
|
||||||
@foreach ($expenseCategories as $expenseCategory)
|
@foreach ($expenseCategories as $expenseCategory)
|
||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td>
|
||||||
<p class="expense-title">
|
<p class="expense-title">
|
||||||
{{ $expenseCategory->category->name }}
|
{{ $expenseCategory->category->name }}
|
||||||
</p>
|
</p>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<p class="expense-amount">
|
<p class="expense-amount">
|
||||||
{!! format_money_pdf($expenseCategory->total_amount) !!}
|
{!! format_money_pdf($expenseCategory->total_amount) !!}
|
||||||
</p>
|
</p>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
@endforeach
|
@endforeach
|
||||||
|
|
||||||
</table>
|
</table>
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<table class="expense-total-indicator-table">
|
|
||||||
<tr>
|
|
||||||
<td class="expense-total-cell">
|
|
||||||
<p class="expense-total">{!! format_money_pdf($totalExpense) !!}</p>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
<table class="profit-indicator-table">
|
|
||||||
<tr>
|
|
||||||
<td>
|
|
||||||
<p class="profit-title">NET PROFIT</p>
|
|
||||||
</td>
|
|
||||||
<td>
|
|
||||||
<p class="profit-amount">{!! format_money_pdf(($income-$totalExpense)) !!}</p>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<table class="expense-total-indicator-table">
|
||||||
|
<tr>
|
||||||
|
<td class="expense-total-cell">
|
||||||
|
<p class="expense-total">{!! format_money_pdf($totalExpense) !!}</p>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
<table class="report-footer">
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<p class="report-footer-label">NET PROFIT</p>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<p class="report-footer-value">{!! format_money_pdf(($income-$totalExpense)) !!}</p>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
@ -2,28 +2,23 @@
|
|||||||
<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";
|
||||||
}
|
}
|
||||||
|
|
||||||
.main-container {
|
table {
|
||||||
/* padding: 30px 80px; */
|
border-collapse: collapse;
|
||||||
}
|
}
|
||||||
|
|
||||||
.sub-container{
|
.sub-container{
|
||||||
padding: 0px 20px;
|
padding: 0px 20px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.header {
|
.report-header {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
table {
|
|
||||||
border-collapse: collapse;
|
|
||||||
}
|
|
||||||
|
|
||||||
.heading-text {
|
.heading-text {
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
font-size: 24px;
|
font-size: 24px;
|
||||||
@ -54,7 +49,7 @@
|
|||||||
margin-top: 30px;
|
margin-top: 30px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.sales-cusutomer-name {
|
.sales-customer-name {
|
||||||
margin-top: 20px;
|
margin-top: 20px;
|
||||||
padding-left: 3px;
|
padding-left: 3px;
|
||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
@ -110,7 +105,7 @@
|
|||||||
color: #040405;
|
color: #040405;
|
||||||
}
|
}
|
||||||
|
|
||||||
.profit-indicator-table {
|
.report-footer {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
margin-top: 40px;
|
margin-top: 40px;
|
||||||
padding: 15px 20px;
|
padding: 15px 20px;
|
||||||
@ -118,7 +113,7 @@
|
|||||||
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;
|
||||||
@ -128,7 +123,7 @@
|
|||||||
color: #595959;
|
color: #595959;
|
||||||
}
|
}
|
||||||
|
|
||||||
.profit-amount {
|
.report-footer-value {
|
||||||
padding: 0px;
|
padding: 0px;
|
||||||
margin: 0px;
|
margin: 0px;
|
||||||
text-align: right;
|
text-align: right;
|
||||||
@ -143,69 +138,67 @@
|
|||||||
</style>
|
</style>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div class="main-container">
|
<div class="sub-container">
|
||||||
<div class="sub-container">
|
<table class="report-header">
|
||||||
<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>
|
|
||||||
|
|
||||||
@foreach ($customers as $customer)
|
|
||||||
<p class="sales-cusutomer-name">{{ $customer->name }}</p>
|
|
||||||
<div class="sales-table-container">
|
|
||||||
<table class="sales-table">
|
|
||||||
@foreach ($customer->invoices as $invoice)
|
|
||||||
<tr>
|
|
||||||
<td>
|
|
||||||
<p class="sales-information-text">
|
|
||||||
{{ $invoice->formattedInvoiceDate }} ({{ $invoice->invoice_number }})
|
|
||||||
</p>
|
|
||||||
</td>
|
|
||||||
<td>
|
|
||||||
<p class="sales-amount">
|
|
||||||
{!! format_money_pdf($invoice->total) !!}
|
|
||||||
</p>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
@endforeach
|
|
||||||
</table>
|
|
||||||
</div>
|
|
||||||
<table class="sales-total-indicator-table">
|
|
||||||
<tr>
|
|
||||||
<td class="sales-total-cell">
|
|
||||||
<p class="sales-total-amount">
|
|
||||||
{!! format_money_pdf($customer->totalAmount) !!}
|
|
||||||
</p>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
@endforeach
|
|
||||||
</div>
|
|
||||||
|
|
||||||
|
|
||||||
<table class="profit-indicator-table">
|
|
||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td>
|
||||||
<p class="profit-title">TOTAL SALES</p>
|
<p class="heading-text">{{ $company->name }}</p>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<p class="profit-amount">
|
<p class="heading-date-range">{{ $from_date }} - {{ $to_date }}</p>
|
||||||
{!! format_money_pdf($totalAmount) !!}
|
</td>
|
||||||
</p>
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td colspan="2">
|
||||||
|
<p class="sub-heading-text text-center">Sales Report: By Customer</p>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
|
@foreach ($customers as $customer)
|
||||||
|
<p class="sales-customer-name">{{ $customer->name }}</p>
|
||||||
|
<div class="sales-table-container">
|
||||||
|
<table class="sales-table">
|
||||||
|
@foreach ($customer->invoices as $invoice)
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<p class="sales-information-text">
|
||||||
|
{{ $invoice->formattedInvoiceDate }} ({{ $invoice->invoice_number }})
|
||||||
|
</p>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<p class="sales-amount">
|
||||||
|
{!! format_money_pdf($invoice->total) !!}
|
||||||
|
</p>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
@endforeach
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
|
<table class="sales-total-indicator-table">
|
||||||
|
<tr>
|
||||||
|
<td class="sales-total-cell">
|
||||||
|
<p class="sales-total-amount">
|
||||||
|
{!! format_money_pdf($customer->totalAmount) !!}
|
||||||
|
</p>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
@endforeach
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<table class="report-footer">
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<p class="report-footer-label">TOTAL SALES</p>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<p class="report-footer-value">
|
||||||
|
{!! format_money_pdf($totalAmount) !!}
|
||||||
|
</p>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
@ -2,30 +2,20 @@
|
|||||||
<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;
|
|
||||||
} */
|
|
||||||
|
|
||||||
.main-container {
|
|
||||||
/* padding: 30px 80px; */
|
|
||||||
}
|
|
||||||
|
|
||||||
.sub-container{
|
|
||||||
padding: 0px 20px;
|
|
||||||
}
|
|
||||||
|
|
||||||
table {
|
table {
|
||||||
border-collapse: collapse;
|
border-collapse: collapse;
|
||||||
}
|
}
|
||||||
|
|
||||||
.header {
|
.sub-container{
|
||||||
|
padding: 0px 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.report-header {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -115,7 +105,7 @@
|
|||||||
color: #040405;
|
color: #040405;
|
||||||
}
|
}
|
||||||
|
|
||||||
.profit-indicator-table {
|
.report-footer {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
margin-top: 40px;
|
margin-top: 40px;
|
||||||
padding: 15px 20px;
|
padding: 15px 20px;
|
||||||
@ -123,7 +113,7 @@
|
|||||||
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;
|
||||||
@ -133,7 +123,7 @@
|
|||||||
color: #595959;
|
color: #595959;
|
||||||
}
|
}
|
||||||
|
|
||||||
.profit-amount {
|
.report-footer-value {
|
||||||
padding: 0px;
|
padding: 0px;
|
||||||
margin: 0px;
|
margin: 0px;
|
||||||
text-align: right;
|
text-align: right;
|
||||||
@ -148,68 +138,66 @@
|
|||||||
</style>
|
</style>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div class="main-container">
|
<div class="sub-container">
|
||||||
<div class="sub-container">
|
<table class="report-header">
|
||||||
<table class="header">
|
<tr>
|
||||||
<tr>
|
<td>
|
||||||
<td>
|
<p class="heading-text">{{ $company->name }}</p>
|
||||||
<p class="heading-text">{{ $company->name }}</p>
|
</td>
|
||||||
</td>
|
<td>
|
||||||
<td>
|
<p class="heading-date-range">{{ $from_date }} - {{ $to_date }}</p>
|
||||||
<p class="heading-date-range">{{ $from_date }} - {{ $to_date }}</p>
|
</td>
|
||||||
</td>
|
</tr>
|
||||||
</tr>
|
<tr>
|
||||||
<tr>
|
<td colspan="2">
|
||||||
<td colspan="2">
|
<p class="sub-heading-text text-center">Sales Report: By Item</p>
|
||||||
<p class="sub-heading-text text-center">Sales Report: By Item</p>
|
</td>
|
||||||
</td>
|
</tr>
|
||||||
</tr>
|
</table>
|
||||||
</table>
|
|
||||||
|
<p class="sales-items-title">Items</p>
|
||||||
<p class="sales-items-title">Items</p>
|
@foreach ($items as $item)
|
||||||
@foreach ($items as $item)
|
<div class="items-table-container">
|
||||||
<div class="items-table-container">
|
<table class="items-table">
|
||||||
<table class="items-table">
|
|
||||||
<tr>
|
|
||||||
<td>
|
|
||||||
<p class="item-title">
|
|
||||||
{{ $item->name }}
|
|
||||||
</p>
|
|
||||||
</td>
|
|
||||||
<td>
|
|
||||||
<p class="item-sales-amount">
|
|
||||||
{!! format_money_pdf($item->total_amount) !!}
|
|
||||||
</p>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
</div>
|
|
||||||
@endforeach
|
|
||||||
|
|
||||||
<table class="sales-total-indicator-table">
|
|
||||||
<tr>
|
<tr>
|
||||||
<td class="sales-total-cell">
|
<td>
|
||||||
<p class="sales-total-amount">
|
<p class="item-title">
|
||||||
{!! format_money_pdf($totalAmount) !!}
|
{{ $item->name }}
|
||||||
|
</p>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<p class="item-sales-amount">
|
||||||
|
{!! format_money_pdf($item->total_amount) !!}
|
||||||
</p>
|
</p>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
|
@endforeach
|
||||||
|
|
||||||
|
<table class="sales-total-indicator-table">
|
||||||
<table class="profit-indicator-table">
|
<tr>
|
||||||
<tr>
|
<td class="sales-total-cell">
|
||||||
<td>
|
<p class="sales-total-amount">
|
||||||
<p class="profit-title">TOTAL SALES</p>
|
{!! format_money_pdf($totalAmount) !!}
|
||||||
</td>
|
</p>
|
||||||
<td>
|
</td>
|
||||||
<p class="profit-amount">
|
</tr>
|
||||||
{!! format_money_pdf($totalAmount) !!}
|
</table>
|
||||||
</p>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<table class="report-footer">
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<p class="report-footer-label">TOTAL SALES</p>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<p class="report-footer-value">
|
||||||
|
{!! format_money_pdf($totalAmount) !!}
|
||||||
|
</p>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
@ -2,29 +2,20 @@
|
|||||||
<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;
|
|
||||||
} */
|
|
||||||
|
|
||||||
.main-container {
|
|
||||||
}
|
|
||||||
|
|
||||||
.sub-container{
|
|
||||||
padding: 0px 20px;
|
|
||||||
}
|
|
||||||
|
|
||||||
table {
|
table {
|
||||||
border-collapse: collapse;
|
border-collapse: collapse;
|
||||||
}
|
}
|
||||||
|
|
||||||
.header {
|
.sub-container{
|
||||||
|
padding: 0px 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.report-header {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
margin-bottom: 60px
|
margin-bottom: 60px
|
||||||
}
|
}
|
||||||
@ -115,7 +106,7 @@
|
|||||||
color: #040405;
|
color: #040405;
|
||||||
}
|
}
|
||||||
|
|
||||||
.total-tax-indicator-table {
|
.report-footer {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
margin-top: 40px;
|
margin-top: 40px;
|
||||||
padding: 15px 20px;
|
padding: 15px 20px;
|
||||||
@ -123,7 +114,7 @@
|
|||||||
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;
|
||||||
@ -133,7 +124,7 @@
|
|||||||
color: #595959;
|
color: #595959;
|
||||||
}
|
}
|
||||||
|
|
||||||
.total-tax-amount {
|
.report-footer-value {
|
||||||
padding: 0px;
|
padding: 0px;
|
||||||
margin: 0px;
|
margin: 0px;
|
||||||
text-align: right;
|
text-align: right;
|
||||||
@ -145,70 +136,68 @@
|
|||||||
</style>
|
</style>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div class="main-container">
|
<div class="sub-container">
|
||||||
<div class="sub-container">
|
<table class="report-header">
|
||||||
<table class="header">
|
<tr>
|
||||||
<tr>
|
<td>
|
||||||
<td>
|
<p class="heading-text">
|
||||||
<p class="heading-text">
|
{{ $company->name }}
|
||||||
{{ $company->name }}
|
</p>
|
||||||
</p>
|
</td>
|
||||||
</td>
|
<td>
|
||||||
<td>
|
<p class="heading-date-range">
|
||||||
<p class="heading-date-range">
|
{{ $from_date }} - {{ $to_date }}
|
||||||
{{ $from_date }} - {{ $to_date }}
|
</p>
|
||||||
</p>
|
</td>
|
||||||
</td>
|
</tr>
|
||||||
</tr>
|
<tr>
|
||||||
<tr>
|
<td colspan="2">
|
||||||
<td colspan="2">
|
<p class="sub-heading-text">TAX REPORT</p>
|
||||||
<p class="sub-heading-text">TAX REPORT</p>
|
</td>
|
||||||
</td>
|
</tr>
|
||||||
</tr>
|
</table>
|
||||||
|
<p class="tax-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-amount">
|
||||||
|
{!! format_money_pdf($tax->total_tax_amount) !!}
|
||||||
|
</p>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
@endforeach
|
||||||
|
|
||||||
</table>
|
</table>
|
||||||
<p class="tax-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-amount">
|
|
||||||
{!! format_money_pdf($tax->total_tax_amount) !!}
|
|
||||||
</p>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
@endforeach
|
|
||||||
|
|
||||||
</table>
|
|
||||||
</div>
|
|
||||||
</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-indicator-table">
|
|
||||||
<tr>
|
|
||||||
<td>
|
|
||||||
<p class="total-tax-title">TOTAL TAX</p>
|
|
||||||
</td>
|
|
||||||
<td>
|
|
||||||
<p class="total-tax-amount">
|
|
||||||
{!! format_money_pdf($totalTaxAmount) !!}
|
|
||||||
</p>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
</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="report-footer">
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<p class="report-footer-label">TOTAL TAX</p>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<p class="report-footer-value">
|
||||||
|
{!! format_money_pdf($totalTaxAmount) !!}
|
||||||
|
</p>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
Reference in New Issue
Block a user