1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-11 13:42:49 +01:00
invoiceninja/resources/views/email/template/master.blade.php
2020-09-18 14:27:20 +02:00

62 lines
1.3 KiB
PHP

@php
if(!isset($design)) $design = 'light';
@endphp
<!DOCTYPE html>
<html lang="en">
<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
<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' }}">
<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>
@isset($below_card)
<div id="bottomText" class="px-10 my-4 text-center">
{{ $below_card }}
</div>
@endisset
</div>
</div>
</body>
</html>