quicktip.blade.php 1.6 KB
Newer Older
1
2
3
@if (sizeof($quicktip->details) > 0)
  <details>
    <summary class="quicktip-summary">
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
      <div class="quicktip-headline">
        @if ($quicktip->title != "")
          <h1 class="quicktip-title">
            @if ($quicktip->link != "")
              <a href="{{ $quicktip->link }}">{{ $quicktip->title }}</a>
            @else
              {{ $quicktip->title }}
            @endif
          </h1>
        @endif
        <div class="space-taker"></div>
        @if ($quicktip->gefVonLink != "")
          <a class="quicktip-hoster" href="{{ $quicktip->gefVonLink }}" target="_blank" rel="noopener">
            @if ($quicktip->gefVonTitle != "")
              {{ $quicktip->gefVonTitle }}
            @else
              {{ $quicktip->gefVonTitle }}
            @endif
          </a>
        @endif
        <i class="quicktip-extender fa fa-chevron-down"></i>
      </div>
      <p class="quicktip-description">{!! $quicktip->descr !!}</p>
27
28
29
30
31
32
33
34
35
36
    </summary>
    @foreach ($quicktip->details as $detail)
      <div class="quicktip-detail">
        <h2>
          @if (isset($detail->link))
            <a href="{{ $detail->link }}">{{ $detail->title }}</a>
          @else
            {{ $detail->title }}
          @endif
        </h2>
37
        <p>{!! $detail->descr !!}</p>
38
39
40
41
      </div>
    @endforeach
  </details>
@else
42
43
44
45
46
47
48
49
50
51
52
53
  <div class="quicktip-summary">
    @if ($quicktip->title != "")
      <h1>
        @if ($quicktip->link != "")
          <a href="{{ $quicktip->link }}">{{ $quicktip->title }}</a>
        @else
          {{ $quicktip->title }}
        @endif
      </h1>
    @endif
    <p>{!! $quicktip->descr !!}</p>
  </div>
54
@endif