|
12 | 12 | <div class="col-sm-12"> |
13 | 13 |
|
14 | 14 | <h3 class="mb-4"><i class="bi bi-menu-up"></i> Dashboard</h3> |
15 | | - |
16 | | - {{-- <!-- Section: Design Block --> |
17 | | - <section class="mb-3 text-gray-800 text-center shadow p-4 w-full"> |
18 | | - <div class='font-weight-bold text-left'>Visitor analytics:</div> |
19 | | - <div class="d-flex flex-wrap justify-content-around"> |
20 | | - |
21 | | - <div class="p-2"> |
22 | | - <h3 class="text-primary"><strong>{{ $pageStats['visitors']['day']}}</strong></h3> |
23 | | - <span class="text-muted">Today</span> |
24 | | - |
25 | | - </div> |
26 | | - |
27 | | - <div class="p-2"> |
28 | | - <h3 class="text-primary"><strong>{{ $pageStats['visitors']['week']}}</strong></h3> |
29 | | - <span class="text-muted">Week</span> |
30 | | - |
31 | | - |
32 | | - </div> |
33 | | - |
34 | | - <div class="p-2"> |
35 | | - <h3 class="text-primary"><strong>{{ $pageStats['visitors']['month']}}</strong></h3> |
36 | | - <span class="text-muted">Month</span> |
37 | | - |
38 | | - |
39 | | - </div> |
40 | | - <div class="p-2"> |
41 | | - <h3 class="text-primary"><strong>{{ $pageStats['visitors']['year']}}</strong></h3> |
42 | | - <span class="text-muted">Year</span> |
43 | | - |
44 | | - |
45 | | - </div> |
46 | | - <div class="p-2"> |
47 | | - <h3 class="text-primary"><strong>{{ $pageStats['visitors']['all']}}</strong></h3> |
48 | | - <span class="text-muted">All Time</span> |
49 | | - |
50 | | - |
51 | | - </div> |
52 | | - |
53 | | - </div> |
54 | | - </section> --}} |
55 | | - |
56 | | - |
57 | 15 |
|
58 | 16 | <section class="mb-3 text-center p-4 w-full"> |
59 | 17 | <div class=" d-flex"> |
|
74 | 32 |
|
75 | 33 | <div class="bd-example" > |
76 | 34 | <ol class="list-group list-group-numbered" style="text-align: left;"> |
| 35 | + @if($toplinks == "[]") |
| 36 | + <div class="container"> |
| 37 | + <div class="row justify-content-center mt-3"> |
| 38 | + <div class="col-6 text-center"> |
| 39 | + <p class="p-2">You haven't added any links yet.</p> |
| 40 | + </div> |
| 41 | + </div> |
| 42 | + </div> |
| 43 | + @else |
77 | 44 | @foreach($toplinks as $link) |
78 | 45 | @php $linkName = str_replace('default ','',$link->name) @endphp |
79 | 46 | @php $i++; @endphp |
|
88 | 55 | </li> |
89 | 56 | @endif |
90 | 57 | @endforeach |
| 58 | + @endif |
91 | 59 | </ol> |
92 | 60 | </div> |
93 | | - |
94 | | - |
95 | | - |
96 | 61 |
|
97 | 62 | </section> |
98 | 63 |
|
|
0 commit comments