1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-09-22 17:31:35 +02:00
invoiceninja/resources/views/email/template/master.blade.php

70 lines
1.7 KiB
PHP
Raw Normal View History

2020-02-26 21:55:23 +01:00
@php
if(!isset($design)) $design = 'light';
2020-02-26 21:55:23 +01:00
@endphp
2020-02-26 21:55:23 +01:00
<!DOCTYPE html>
<html lang="en">
2020-09-25 13:57:02 +02:00
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>@yield('title')</title>
</head>
<style>
:root {
--primary-color: {{ $settings->primary_color }};
}
.border-primary {
border-color: var(--primary-color);
}
</style>
@if($design == 'dark')
<style>
* {
color: #cbd5e0 !important;
}
</style>
@endif
2020-02-26 21:55:23 +01:00
<body class="{{ $design == 'light' ? 'bg-gray-200' : 'bg-gray-800' }} my-10 font-sans {{ $design == 'light' ? 'text-gray-700' : 'text-gray-400' }}">
<div class="grid grid-cols-6">
<div class="col-span-4 col-start-2">
<div class="{{ $design == 'light' ? 'bg-white' : 'bg-gray-900' }} shadow border-t-2 {{ $design == 'light' ? 'border-primary' : 'border-gray-800' }}">
2020-08-13 15:19:03 +02:00
<div class="px-10">
{{ $header }}
</div>
<div id="text" class="flex flex-col px-10 py-6">
@isset($greeting)
{{ $greeting }}
@endisset
{{ $slot }}
@isset($signature)
{{ $signature }}
@endisset
</div>
</div>
2020-02-26 21:55:23 +01:00
@isset($below_card)
<div id="bottomText" class="px-10 my-4 text-center">
{{ $below_card }}
</div>
@endisset
2020-02-26 21:55:23 +01:00
</div>
</div>
2020-09-25 13:57:02 +02:00
<!-- Whitelabel -->
@if(!$whitelabel)
<div style="display: flex; flex-direction: row; justify-content: center; margin-top: 1rem; margin-bottom: 1rem;">
<a href="https://invoiceninja.com" target="_blank">
<img style="height: 4rem;" src="{{ asset('images/created-by-invoiceninja-new.png') }}" alt="Invoice Ninja">
</a>
</div>
@endif
</body>
</html>