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