Moved to _dev

This commit is contained in:
2025-09-20 16:11:47 +02:00
parent fb1a8753b7
commit b2ba11fcd3
1670 changed files with 224899 additions and 0 deletions

View File

@@ -0,0 +1,200 @@
<!DOCTYPE html>
<html lang="en">
<head>
<title>@lang('pdf_expense_report_label')</title>
<style type="text/css">
body {
font-family: "DejaVu Sans";
}
table {
border-collapse: collapse;
}
.sub-container {
padding: 0px 20px;
}
.report-header {
width: 100%;
}
.heading-text {
font-weight: bold;
font-size: 24px;
color: #5851D8;
width: 100%;
text-align: left;
padding: 0px;
margin: 0px;
}
.heading-date-range {
font-weight: normal;
font-size: 15px;
color: #A5ACC1;
width: 100%;
text-align: right;
padding: 0px;
margin: 0px;
}
.sub-heading-text {
font-weight: normal;
font-size: 16px;
color: #595959;
padding: 0px;
margin: 0px;
margin-top: 6px;
}
.expenses-title {
margin-top: 60px;
padding-left: 3px;
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-size: 14px;
line-height: 21px;
color: #595959;
}
.expense-amount {
padding: 0px;
margin: 0px;
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-weight: bold;
font-size: 16px;
line-height: 21px;
text-align: right;
color: #040405;
}
.report-footer {
width: 100%;
margin-top: 40px;
padding: 15px 20px;
background: #F9FBFF;
box-sizing: border-box;
}
.report-footer-label {
padding: 0px;
margin: 0px;
text-align: left;
font-weight: bold;
font-size: 16px;
line-height: 21px;
color: #595959;
}
.report-footer-value {
padding: 0px;
margin: 0px;
text-align: right;
font-weight: bold;
font-size: 20px;
line-height: 21px;
color: #5851D8;
}
</style>
@if (App::isLocale('th'))
@include('app.pdf.locale.th')
@endif
</head>
<body>
<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">@lang('pdf_expense_report_label')</p>
</td>
</tr>
</table>
<p class="expenses-title">@lang('pdf_expenses_label')</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, $currency) !!}
</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, $currency) !!}</p>
</td>
</tr>
</table>
<table class="report-footer">
<tr>
<td>
<p class="report-footer-label">@lang('pdf_total_expenses_label')</p>
</td>
<td>
<p class="report-footer-value">{!! format_money_pdf($totalExpense, $currency) !!}</p>
</td>
</tr>
</table>
</body>
</html>

View File

@@ -0,0 +1,237 @@
<!DOCTYPE html>
<html lang="en">
<head>
<title>@lang('pdf_profit_loss_label')</title>
<style type="text/css">
body {
font-family: "DejaVu Sans";
}
table {
border-collapse: collapse;
}
.sub-container {
padding: 0px 20px;
}
.report-header {
width: 100%;
}
.heading-text {
font-weight: bold;
font-size: 24px;
color: #5851D8;
width: 100%;
text-align: left;
padding: 0px;
margin: 0px;
}
.heading-date-range {
font-weight: normal;
font-size: 15px;
color: #A5ACC1;
width: 100%;
text-align: right;
padding: 0px;
margin: 0px;
}
.sub-heading-text {
font-weight: normal;
font-size: 16px;
color: #595959;
padding: 0px;
margin: 0px;
margin-top: 6px;
}
.income-table {
margin-top: 53px;
width: 100%;
}
.income-title {
padding: 0px;
margin: 0px;
font-size: 16px;
line-height: 21px;
color: #040405;
text-align: left;
}
.income-amount {
padding: 0px;
margin: 0px;
font-weight: bold;
font-size: 16px;
line-height: 21px;
text-align: right;
color: #040405;
text-align: right;
}
.expenses-title {
margin-top: 20px;
padding-left: 3px;
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-size: 14px;
line-height: 21px;
color: #595959;
}
.expense-amount {
padding: 0px;
margin: 0px;
font-size: 14px;
line-height: 21px;
text-align: right;
color: #595959;
}
.expense-total-indicator-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-weight: bold;
font-size: 16px;
line-height: 21px;
text-align: right;
color: #040405;
}
.report-footer {
width: 100%;
margin-top: 40px;
padding: 15px 20px;
background: #F9FBFF;
box-sizing: border-box;
}
.report-footer-label {
padding: 0px;
margin: 0px;
text-align: left;
font-weight: bold;
font-size: 16px;
line-height: 21px;
color: #595959;
}
.report-footer-value {
padding: 0px;
margin: 0px;
text-align: right;
font-weight: bold;
font-size: 20px;
line-height: 21px;
color: #5851D8;
}
</style>
@if (App::isLocale('th'))
@include('app.pdf.locale.th')
@endif
</head>
<body>
<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">@lang('pdf_profit_loss_label')</p>
</td>
</tr>
</table>
<table class="income-table">
<tr>
<td>
<p class="income-title">@lang("pdf_income_label")</p>
</td>
<td>
<p class="income-amount">{!! format_money_pdf($income, $currency) !!}</p>
</td>
</tr>
</table>
<p class="expenses-title">@lang('pdf_expenses_label')</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, $currency) !!}
</p>
</td>
</tr>
@endforeach
</table>
</div>
</div>
<table class="expense-total-indicator-table">
<tr>
<td class="expense-total-cell">
<p class="expense-total">{!! format_money_pdf($totalExpense, $currency) !!}</p>
</td>
</tr>
</table>
<table class="report-footer">
<tr>
<td>
<p class="report-footer-label">@lang("pdf_net_profit_label")</p>
</td>
<td>
<p class="report-footer-value">{!! format_money_pdf($income - $totalExpense, $currency) !!}</p>
</td>
</tr>
</table>
</body>
</html>

View File

@@ -0,0 +1,212 @@
<!DOCTYPE html>
<html lang="en">
<head>
<title>@lang('pdf_sales_customers_label')</title>
<style type="text/css">
body {
font-family: "DejaVu Sans";
}
table {
border-collapse: collapse;
}
.sub-container {
padding: 0px 20px;
}
.report-header {
width: 100%;
}
.heading-text {
font-weight: bold;
font-size: 24px;
color: #5851D8;
width: 100%;
text-align: left;
padding: 0px;
margin: 0px;
}
.heading-date-range {
font-weight: normal;
font-size: 15px;
color: #A5ACC1;
width: 100%;
text-align: right;
padding: 0px;
margin: 0px;
}
.sub-heading-text {
font-weight: bold;
font-size: 16px;
line-height: 21px;
color: #595959;
padding: 0px;
margin: 0px;
margin-top: 30px;
}
.sales-customer-name {
margin-top: 20px;
padding-left: 3px;
font-size: 16px;
line-height: 21px;
color: #040405;
}
.sales-table-container {
padding-left: 10px;
}
.sales-table {
width: 100%;
padding-bottom: 10px;
}
.sales-information-text {
padding: 0px;
margin: 0px;
font-size: 14px;
line-height: 21px;
color: #595959;
}
.sales-amount {
padding: 0px;
margin: 0px;
font-size: 14px;
line-height: 21px;
text-align: right;
color: #595959;
}
.sales-total-indicator-table {
border-top: 1px solid #EAF1FB;
width: 100%;
}
.sales-total-cell {
padding-top: 10px;
}
.sales-total-amount {
padding-top: 10px;
padding-right: 30px;
padding: 0px;
margin: 0px;
text-align: right;
font-weight: bold;
font-size: 16px;
line-height: 21px;
text-align: right;
color: #040405;
}
.report-footer {
width: 100%;
margin-top: 40px;
padding: 15px 20px;
background: #F9FBFF;
box-sizing: border-box;
}
.report-footer-label {
padding: 0px;
margin: 0px;
text-align: left;
font-weight: bold;
font-size: 16px;
line-height: 21px;
color: #595959;
}
.report-footer-value {
padding: 0px;
margin: 0px;
text-align: right;
font-weight: bold;
font-size: 20px;
line-height: 21px;
color: #5851D8;
}
.text-center {
text-align: center;
}
</style>
@if (App::isLocale('th'))
@include('app.pdf.locale.th')
@endif
</head>
<body>
<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 text-center">@lang('pdf_customer_sales_report')</p>
</td>
</tr>
</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->base_total, $currency) !!}
</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, $currency) !!}
</p>
</td>
</tr>
</table>
@endforeach
</div>
<table class="report-footer">
<tr>
<td>
<p class="report-footer-label">@lang('pdf_total_sales_label')</p>
</td>
<td>
<p class="report-footer-value">
{!! format_money_pdf($totalAmount, $currency) !!}
</p>
</td>
</tr>
</table>
</body>
</html>

View File

@@ -0,0 +1,211 @@
<!DOCTYPE html>
<html lang="en">
<head>
<title>@lang('pdf_sales_items_label')</title>
<style type="text/css">
body {
font-family: "DejaVu Sans";
}
table {
border-collapse: collapse;
}
.sub-container {
padding: 0px 20px;
}
.report-header {
width: 100%;
}
.heading-text {
font-weight: bold;
font-size: 24px;
color: #5851D8;
width: 100%;
text-align: left;
padding: 0px;
margin: 0px;
}
.heading-date-range {
font-weight: normal;
font-size: 15px;
color: #A5ACC1;
width: 100%;
text-align: right;
padding: 0px;
margin: 0px;
}
.sub-heading-text {
font-weight: bold;
font-size: 16px;
line-height: 21px;
color: #595959;
padding: 0px;
margin: 0px;
margin-top: 30px;
}
.sales-items-title {
margin-top: 20px;
padding-left: 3px;
font-size: 16px;
line-height: 21px;
color: #040405;
}
.items-table-container {
padding-left: 10px;
}
.items-table {
width: 100%;
padding-bottom: 10px;
}
.item-title {
padding: 0px;
margin: 0px;
font-size: 14px;
line-height: 21px;
color: #595959;
}
.item-sales-amount {
padding: 0px;
margin: 0px;
font-size: 14px;
line-height: 21px;
text-align: right;
color: #595959;
}
.sales-total-indicator-table {
border-top: 1px solid #EAF1FB;
width: 100%;
}
.sales-total-cell {
padding-top: 10px;
}
.sales-total-amount {
padding-top: 10px;
padding-right: 30px;
padding: 0px;
margin: 0px;
text-align: right;
font-weight: bold;
font-size: 16px;
line-height: 21px;
text-align: right;
color: #040405;
}
.report-footer {
width: 100%;
margin-top: 40px;
padding: 15px 20px;
background: #F9FBFF;
box-sizing: border-box;
}
.report-footer-label {
padding: 0px;
margin: 0px;
text-align: left;
font-weight: bold;
font-size: 16px;
line-height: 21px;
color: #595959;
}
.report-footer-value {
padding: 0px;
margin: 0px;
text-align: right;
font-weight: bold;
font-size: 20px;
line-height: 21px;
color: #5851D8;
}
.text-center {
text-align: center;
}
</style>
@if (App::isLocale('th'))
@include('app.pdf.locale.th')
@endif
</head>
<body>
<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 text-center">@lang('pdf_item_sales_label')</p>
</td>
</tr>
</table>
<p class="sales-items-title">@lang('pdf_items_label')</p>
@foreach ($items as $item)
<div class="items-table-container">
<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, $currency) !!}
</p>
</td>
</tr>
</table>
</div>
@endforeach
<table class="sales-total-indicator-table">
<tr>
<td class="sales-total-cell">
<p class="sales-total-amount">
{!! format_money_pdf($totalAmount, $currency) !!}
</p>
</td>
</tr>
</table>
</div>
<table class="report-footer">
<tr>
<td>
<p class="report-footer-label">@lang('pdf_total_sales_label')</p>
</td>
<td>
<p class="report-footer-value">
{!! format_money_pdf($totalAmount, $currency) !!}
</p>
</td>
</tr>
</table>
</body>
</html>

View File

@@ -0,0 +1,210 @@
<!DOCTYPE html>
<html lang="en">
<head>
<title>@lang('pdf_tax_summery_label')</title>
<style type="text/css">
body {
font-family: "DejaVu Sans";
}
table {
border-collapse: collapse;
}
.sub-container {
padding: 0px 20px;
}
.report-header {
width: 100%;
margin-bottom: 60px
}
.heading-text {
font-weight: bold;
font-size: 24px;
color: #5851D8;
width: 100%;
text-align: left;
padding: 0px;
margin: 0px;
}
.heading-date-range {
font-weight: normal;
font-size: 15px;
color: #A5ACC1;
width: 100%;
text-align: right;
padding: 0px;
margin: 0px;
}
.sub-heading-text {
font-weight: bold;
font-size: 16px;
color: #595959;
padding: 0px;
margin: 0px;
margin-top: 6px;
}
.tax-types-title {
margin-top: 20px;
padding-left: 3px;
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-size: 14px;
line-height: 21px;
color: #595959;
}
.tax-amount {
padding: 0px;
margin: 0px;
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-weight: bold;
font-size: 16px;
line-height: 21px;
text-align: right;
color: #040405;
}
.report-footer {
width: 100%;
margin-top: 40px;
padding: 15px 20px;
background: #F9FBFF;
box-sizing: border-box;
}
.report-footer-label {
padding: 0px;
margin: 0px;
text-align: left;
font-weight: bold;
font-size: 16px;
line-height: 21px;
color: #595959;
}
.report-footer-value {
padding: 0px;
margin: 0px;
text-align: right;
font-weight: bold;
font-size: 20px;
line-height: 21px;
color: #5851D8;
}
</style>
@if (App::isLocale('th'))
@include('app.pdf.locale.th')
@endif
</head>
<body>
<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">@lang('pdf_tax_report_label')</p>
</td>
</tr>
</table>
<p class="tax-types-title">@lang('pdf_tax_types_label')</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, $currency) !!}
</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, $currency) !!}
</p>
</td>
</tr>
</table>
<table class="report-footer">
<tr>
<td>
<p class="report-footer-label">@lang('pdf_total_tax_label')</p>
</td>
<td>
<p class="report-footer-value">
{!! format_money_pdf($totalTaxAmount, $currency) !!}
</p>
</td>
</tr>
</table>
</body>
</html>