2020-02-26 21:55:23 +01:00
|
|
|
@php
|
2020-09-18 14:27:20 +02:00
|
|
|
if(!isset($design)) $design = 'light';
|
2020-02-26 21:55:23 +01:00
|
|
|
@endphp
|
2019-12-10 21:25:54 +01:00
|
|
|
|
2020-02-26 21:55:23 +01:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html lang="en">
|
2020-05-19 00:22:29 +02:00
|
|
|
|
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>
|
2019-12-10 21:25:54 +01:00
|
|
|
|
2020-09-18 14:27:20 +02:00
|
|
|
<style>
|
|
|
|
:root {
|
2020-10-27 16:04:28 +01:00
|
|
|
@isset($settings)
|
2020-09-18 14:27:20 +02:00
|
|
|
--primary-color: {{ $settings->primary_color }};
|
2020-10-07 05:56:35 +02:00
|
|
|
@else
|
|
|
|
--primary-color: #4caf50;
|
2020-10-27 16:04:28 +01:00
|
|
|
@endisset
|
2020-09-18 14:27:20 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.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' }}">
|
2020-05-19 00:22:29 +02:00
|
|
|
<div class="grid grid-cols-6">
|
2020-09-18 14:27:20 +02:00
|
|
|
<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-12-29 15:14:42 +01:00
|
|
|
<div class="px-10 break-all">
|
2020-08-13 15:19:03 +02:00
|
|
|
{{ $header }}
|
|
|
|
</div>
|
2020-09-18 14:27:20 +02:00
|
|
|
<div id="text" class="flex flex-col px-10 py-6">
|
2020-05-19 00:22:29 +02:00
|
|
|
@isset($greeting)
|
2020-09-18 14:27:20 +02:00
|
|
|
{{ $greeting }}
|
2020-05-19 00:22:29 +02:00
|
|
|
@endisset
|
2020-09-18 14:27:20 +02:00
|
|
|
|
2020-11-27 11:38:22 +01:00
|
|
|
<div class="break-all">
|
|
|
|
{{ $slot}}
|
|
|
|
</div>
|
2020-09-18 14:27:20 +02:00
|
|
|
|
2020-05-19 00:22:29 +02:00
|
|
|
@isset($signature)
|
2020-09-18 14:27:20 +02:00
|
|
|
{{ $signature }}
|
2020-05-19 00:22:29 +02:00
|
|
|
@endisset
|
|
|
|
</div>
|
|
|
|
</div>
|
2020-02-26 21:55:23 +01:00
|
|
|
|
2020-05-19 00:22:29 +02:00
|
|
|
@isset($below_card)
|
2020-09-18 14:27:20 +02:00
|
|
|
<div id="bottomText" class="px-10 my-4 text-center">
|
2020-05-19 00:22:29 +02:00
|
|
|
{{ $below_card }}
|
|
|
|
</div>
|
|
|
|
@endisset
|
2019-12-10 21:25:54 +01:00
|
|
|
|
2020-02-26 21:55:23 +01:00
|
|
|
</div>
|
2020-05-19 00:22:29 +02:00
|
|
|
</div>
|
|
|
|
|
2020-09-25 13:57:02 +02:00
|
|
|
<!-- Whitelabel -->
|
2020-09-28 12:36:51 +02:00
|
|
|
@isset($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">
|
2020-11-18 15:14:59 +01:00
|
|
|
<img style="height: 4rem; {{ $design == 'dark' ? 'filter: invert(100%);' : '' }}" src="{{ asset('images/created-by-invoiceninja-new.png') }}" alt="Invoice Ninja">
|
2020-09-28 12:36:51 +02:00
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
@endif
|
2020-09-25 13:57:02 +02:00
|
|
|
@endif
|
|
|
|
</body>
|
2019-12-10 21:25:54 +01:00
|
|
|
</html>
|