<!doctype html>
-<html lang="{{ config('app.lang') }}">
+<html lang="{{ $locale->htmlLang() }}">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>@yield('title')</title>
- @include('common.export-styles', ['format' => $format])
- @include('common.export-custom-head')
+ @if($cspContent ?? false)
+ <meta http-equiv="Content-Security-Policy" content="{{ $cspContent }}">
+ @endif
+
+ @include('exports.parts.styles', ['format' => $format, 'engine' => $engine ?? ''])
+ @include('exports.parts.custom-head')
</head>
-<body>
-<div class="page-content">
+<body class="export export-format-{{ $format }} export-engine-{{ $engine ?? 'none' }}">
+@include('layouts.parts.export-body-start')
+<div class="page-content" dir="auto">
@yield('content')
</div>
+@include('layouts.parts.export-body-end')
</body>
</html>
\ No newline at end of file