@extends('pdf.layout-small')

@section('content')
    <style>
        h2 {
            margin-bottom: 0;
        }

        ul, ol {
            padding-left: 2rem;
        }
        li {
            padding-bottom: 0.5rem;
        }
        .pdf-input-content {
            font-size: 11pt;
            line-height: 1.3em;
            margin-bottom: 2rem;
        }
        .pdf-break-block {
            page-break-inside: avoid;

        }
    </style>

    <h1>HINWEISE FERIENWOHNUNG STERN USEDOM</h1>
    <h1>{{$fewo->single_name}} in der {{ $fewo->adress1 }} in {{ $fewo->zip_code }} {{ $fewo->city }}</h1>
    <hr>
    @foreach($contents as $content)
        @if($content->getObjectBy('page-break'))
           <div class="page_break"></div>
        @endif
        <div class="pdf-break-block">
            <h2>{{$content->name}}</h2>
            <div class="pdf-input-content">
                {!! $content->getContent() !!}
            </div>
        </div>
    @endforeach
@endsection