2020-02-05 05:06:03 +01:00
|
|
|
<?php
|
|
|
|
/**
|
|
|
|
* Invoice Ninja (https://invoiceninja.com)
|
|
|
|
*
|
|
|
|
* @link https://github.com/invoiceninja/invoiceninja source repository
|
|
|
|
*
|
|
|
|
* @copyright Copyright (c) 2020. Invoice Ninja LLC (https://invoiceninja.com)
|
|
|
|
*
|
|
|
|
* @license https://opensource.org/licenses/AAL
|
|
|
|
*/
|
|
|
|
|
|
|
|
namespace App\Designs;
|
|
|
|
|
2020-02-12 01:41:17 +01:00
|
|
|
class Modern extends AbstractDesign
|
2020-02-05 05:06:03 +01:00
|
|
|
{
|
|
|
|
|
2020-02-12 01:41:17 +01:00
|
|
|
public function __construct() {
|
|
|
|
}
|
2020-02-05 05:06:03 +01:00
|
|
|
|
|
|
|
|
2020-03-07 07:31:26 +01:00
|
|
|
public function includes()
|
2020-03-04 12:09:43 +01:00
|
|
|
{
|
|
|
|
return '
|
|
|
|
<!DOCTYPE html>
|
2020-02-05 05:06:03 +01:00
|
|
|
<html lang="en">
|
|
|
|
<head>
|
2020-02-05 22:54:20 +01:00
|
|
|
<title>$number</title>
|
2020-02-05 05:06:03 +01:00
|
|
|
<meta charset="utf-8">
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
|
|
|
<meta http-equiv="x-ua-compatible" content="ie=edge">
|
2020-03-11 21:30:49 +01:00
|
|
|
<link href="https://unpkg.com/tailwindcss@^1.0/dist/tailwind.min.css" rel="stylesheet">
|
2020-02-06 10:35:51 +01:00
|
|
|
<style>
|
2020-03-11 21:30:49 +01:00
|
|
|
body {font-size:90%}
|
2020-03-05 08:14:57 +01:00
|
|
|
.table_header_thead_class {text-align:left; text-align:left; color:#fff; background-color:#1a202c;}
|
|
|
|
.table_header_td_class {padding-left:1rem;padding-right:1rem; padding-top:.5rem;padding-bottom:.5rem}
|
|
|
|
.table_body_td_class {border-top-width:1px; border-bottom-width:1px; border-color:#1a202c; padding-left:1rem;padding-right:1rem; padding-top:1rem;padding-bottom:1rem;}
|
|
|
|
|
|
|
|
@media screen {
|
|
|
|
div.div_header {
|
2020-03-06 08:50:42 +01:00
|
|
|
display: flex;
|
2020-03-05 08:14:57 +01:00
|
|
|
}
|
|
|
|
div.div_footer {
|
2020-03-06 08:50:42 +01:00
|
|
|
display: flex;
|
2020-03-05 08:14:57 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
@media print {
|
|
|
|
div.div_footer {
|
2020-03-11 21:30:49 +01:00
|
|
|
display: flex;
|
2020-03-05 08:14:57 +01:00
|
|
|
position: running(footer);
|
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
div.div_header {
|
2020-03-11 21:30:49 +01:00
|
|
|
display: flex;
|
2020-03-05 08:14:57 +01:00
|
|
|
position: running(header);
|
|
|
|
width:100%;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
footer, header, hgroup, menu, nav, section {
|
|
|
|
display: block;
|
|
|
|
}
|
2020-02-26 04:20:12 +01:00
|
|
|
</style>
|
2020-02-05 05:06:03 +01:00
|
|
|
</head>
|
2020-02-26 04:20:12 +01:00
|
|
|
<body>
|
2020-03-04 12:09:43 +01:00
|
|
|
';
|
|
|
|
}
|
2020-03-11 21:30:49 +01:00
|
|
|
|
2020-03-04 12:09:43 +01:00
|
|
|
|
|
|
|
public function header() {
|
|
|
|
|
|
|
|
return '
|
2020-03-05 08:14:57 +01:00
|
|
|
<div class="div_header bg-orange-600 flex justify-between py-12 px-12" style="page-break-inside: avoid;">
|
2020-02-26 04:20:12 +01:00
|
|
|
<div class="w-1/2">
|
|
|
|
<h1 class="text-white font-bold text-5xl">$company.name</h1>
|
|
|
|
</div>
|
|
|
|
<div class="w-1/2 flex justify-end">
|
|
|
|
<div class="w-56 flex flex-col text-white">
|
|
|
|
$entity_labels
|
|
|
|
</div>
|
|
|
|
<div class="w-32 flex flex-col text-left text-white">
|
|
|
|
$entity_details
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2020-02-05 05:06:03 +01:00
|
|
|
';
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2020-02-12 01:41:17 +01:00
|
|
|
public function body() {
|
2020-02-05 05:06:03 +01:00
|
|
|
|
|
|
|
return '
|
2020-03-05 08:14:57 +01:00
|
|
|
<section>
|
2020-02-05 05:06:03 +01:00
|
|
|
<div class="flex justify-between px-12 pt-12">
|
|
|
|
<div class="w-1/2">
|
|
|
|
$company_logo
|
|
|
|
</div>
|
|
|
|
<div class="w-1/2 flex justify-end">
|
|
|
|
<div class="w-56 flex flex-col">
|
|
|
|
$client_details
|
|
|
|
</div>
|
|
|
|
<div class="w-32">
|
|
|
|
<!-- -->
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2020-03-11 21:30:49 +01:00
|
|
|
<div class="px-12 pt-5 pb-20">
|
2020-02-05 05:06:03 +01:00
|
|
|
';
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2020-03-07 07:31:26 +01:00
|
|
|
public function task() {
|
2020-03-05 08:14:57 +01:00
|
|
|
}
|
2020-02-05 05:06:03 +01:00
|
|
|
|
2020-03-11 21:30:49 +01:00
|
|
|
public function task_table()
|
|
|
|
{
|
|
|
|
return '
|
|
|
|
<table class="w-full table-auto mt-8">
|
|
|
|
<thead class="text-left text-white bg-gray-900 display: table-header-group;">
|
|
|
|
<tr>
|
|
|
|
$task_table_header
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
$task_table_body
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
';
|
|
|
|
}
|
|
|
|
|
|
|
|
public function product()
|
|
|
|
{
|
|
|
|
return '';
|
|
|
|
}
|
|
|
|
|
|
|
|
public function product_table() {
|
2020-02-05 05:06:03 +01:00
|
|
|
return '
|
2020-03-11 21:30:49 +01:00
|
|
|
<table class="w-full table-auto mt-8">
|
|
|
|
<thead class="text-left text-white bg-gray-900 display: table-header-group;">
|
|
|
|
<tr>
|
|
|
|
$product_table_header
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
$product_table_body
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
';
|
|
|
|
}
|
|
|
|
|
|
|
|
public function footer() {
|
|
|
|
|
|
|
|
return '
|
|
|
|
<div class="flex px-4 mt-6 w-full" style="page-break-inside: avoid;">
|
2020-02-05 05:06:03 +01:00
|
|
|
<div class="w-1/2">
|
2020-02-19 22:46:31 +01:00
|
|
|
$entity.public_notes
|
2020-02-05 05:06:03 +01:00
|
|
|
</div>
|
2020-03-05 08:14:57 +01:00
|
|
|
<div class="w-1/2 flex" style="page-break-inside: avoid;">
|
|
|
|
<div class="w-1/2 text-right flex flex-col" style="page-break-inside: avoid;">
|
2020-02-06 10:35:51 +01:00
|
|
|
$total_tax_labels
|
|
|
|
$line_tax_labels
|
2020-02-05 05:06:03 +01:00
|
|
|
</div>
|
2020-03-05 08:14:57 +01:00
|
|
|
<div class="w-1/2 text-right flex flex-col" style="page-break-inside: avoid;">
|
2020-02-06 10:35:51 +01:00
|
|
|
$total_tax_values
|
|
|
|
$line_tax_values
|
2020-02-05 05:06:03 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2020-02-12 01:41:17 +01:00
|
|
|
<div class="flex px-4 mt-4 w-full items-end mt-5" style="page-break-inside: avoid;">
|
2020-03-05 08:14:57 +01:00
|
|
|
<div class="w-1/2" style="page-break-inside: avoid;">
|
2020-02-05 05:06:03 +01:00
|
|
|
<p class="font-semibold">$terms_label</p>
|
|
|
|
$terms
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2020-02-12 01:41:17 +01:00
|
|
|
<div class="mt-8 px-4 py-2 bg-gray-900 text-white" style="page-break-inside: avoid;">
|
2020-02-05 05:06:03 +01:00
|
|
|
<div class="w-1/2"></div>
|
2020-03-05 08:14:57 +01:00
|
|
|
<div class="w-auto flex justify-end" style="page-break-inside: avoid;">
|
|
|
|
<div class="w-56" style="page-break-inside: avoid;">
|
2020-02-05 05:06:03 +01:00
|
|
|
<p class="font-bold">$balance_due_label</p>
|
|
|
|
</div>
|
|
|
|
<p>$balance_due</p>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
2020-03-05 08:14:57 +01:00
|
|
|
</section>
|
|
|
|
<footer>
|
|
|
|
<div class="div_footer bg-orange-600 flex justify-between py-8 px-12" style="page-break-inside: avoid;">
|
2020-02-05 05:06:03 +01:00
|
|
|
<div class="w-1/2">
|
|
|
|
<!-- // -->
|
|
|
|
</div>
|
|
|
|
<div class="w-1/2 flex justify-end">
|
|
|
|
<div class="w-56 flex flex-col text-white">
|
|
|
|
$company_details
|
|
|
|
</div>
|
|
|
|
<div class="w-32 flex flex-col text-left text-white">
|
|
|
|
$company_address
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2020-03-05 08:14:57 +01:00
|
|
|
</footer>
|
2020-02-05 05:06:03 +01:00
|
|
|
</html>
|
|
|
|
';
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2020-03-11 21:30:49 +01:00
|
|
|
}
|