mirror of
https://github.com/crater-invoice/crater.git
synced 2025-10-27 11:41:09 -04:00
refactor reports pdfs
This commit is contained in:
@ -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,70 +136,68 @@
|
||||
</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>
|
||||
<div class="sub-container">
|
||||
<table class="report-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="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>
|
||||
<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>
|
||||
|
||||
<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>
|
||||
|
||||
<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>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user