quicktip.blade.php 1.11 KB
Newer Older
1
2
3
@if (sizeof($quicktip->details) > 0)
  <details>
    <summary class="quicktip-summary">
4
      <i class="quicktip-extender fa fa-chevron-down"></i>
5
6
7
8
9
10
11
12
13
14
      @if ($quicktip->title != "")
        <h1>
          @if ($quicktip->link != "")
            <a href="{{ $quicktip->link }}">{{ $quicktip->title }}</a>
          @else
            {{ $quicktip->title }}
          @endif
        </h1>
      @endif
      <p>{!! $quicktip->descr !!}</p>
15
16
17
18
19
20
21
22
23
24
    </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>
25
        <p>{!! $detail->descr !!}</p>
26
27
28
29
      </div>
    @endforeach
  </details>
@else
30
31
32
33
34
35
36
37
38
39
40
41
  <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>
42
@endif