|
18 | 18 |
|
19 | 19 | <div class="mb-4"> |
20 | 20 |
|
21 | | - <div class="border-b border-gray-200"> |
22 | | - <nav class="-mb-px flex"> |
23 | | -{{-- @include('online-calendar.admin._tab', [--}} |
24 | | -{{-- 'targetParam'=>'online/list',--}} |
25 | | -{{-- 'route'=>'admin.online-events',--}} |
26 | | -{{--'title'=>'All Online Activities'--}} |
27 | | -{{--])--}} |
28 | | - @include('online-calendar.admin._tab', [ |
29 | | - 'targetParam'=>'online/promoted', |
30 | | - 'route'=>'promoted_events', |
31 | | - 'title'=>'Pending Approval Activities' |
| 21 | + <div class="border-b border-gray-200"> |
| 22 | + <nav class="-mb-px flex"> |
| 23 | + @role('activities admin') |
| 24 | + @include('online-calendar.admin._tab', [ |
| 25 | +'targetParam'=>'online/list', |
| 26 | +'route'=>'admin.online-events', |
| 27 | +'title'=>'All Online Activities' |
32 | 28 | ]) |
33 | | - @include('online-calendar.admin._tab', [ |
34 | | - 'targetParam'=>'online/featured', |
35 | | - 'route'=>'featured_events', |
36 | | - 'title'=>'Featured Activities' |
| 29 | + @endrole |
| 30 | + @include('online-calendar.admin._tab', [ |
| 31 | +'targetParam'=>'online/promoted', |
| 32 | +'route'=>'promoted_events', |
| 33 | +'title'=>'Pending Approval Activities' |
| 34 | +]) |
| 35 | + @include('online-calendar.admin._tab', [ |
| 36 | +'targetParam'=>'online/featured', |
| 37 | +'route'=>'featured_events', |
| 38 | +'title'=>'Featured Activities' |
37 | 39 | ]) |
38 | 40 |
|
39 | 41 |
|
40 | | - </nav> |
41 | | - </div> |
| 42 | + </nav> |
| 43 | + </div> |
42 | 44 |
|
43 | 45 | </div> |
44 | 46 |
|
|
72 | 74 | <th class="px-6 py-3 border-b border-gray-200 bg-gray-50 text-left text-xs leading-4 font-medium text-gray-500 uppercase tracking-wider"> |
73 | 75 | Country |
74 | 76 | </th> |
75 | | -{{-- <th class="px-6 py-3 border-b border-gray-200 bg-gray-50 text-center text-xs leading-4 font-medium text-gray-500 uppercase tracking-wider">--}} |
76 | | -{{-- Status--}} |
77 | | -{{-- </th>--}} |
| 77 | + {{-- <th class="px-6 py-3 border-b border-gray-200 bg-gray-50 text-center text-xs leading-4 font-medium text-gray-500 uppercase tracking-wider">--}} |
| 78 | + {{-- Status--}} |
| 79 | + {{-- </th>--}} |
78 | 80 | <th class="px-6 py-3 border-b border-gray-200 bg-gray-50 text-center text-xs leading-4 font-medium text-gray-500 uppercase tracking-wider align-center"> |
79 | 81 | Actions |
80 | 82 | </th> |
|
85 | 87 |
|
86 | 88 | @foreach($events as $event) |
87 | 89 |
|
88 | | - @livewire('online-event-card', ['event' => $event, 'countryName' => |
89 | | - $countryNames[$event->country_iso]]) |
| 90 | + @livewire('online-event-card', ['event' => $event, 'countryName' => $countryNames[$event->country_iso]]) |
90 | 91 |
|
91 | 92 | @endforeach |
92 | 93 |
|
|
105 | 106 | {{ $events->links() }} |
106 | 107 | </div> |
107 | 108 |
|
108 | | - <span> |
| 109 | + </div> |
109 | 110 | @endsection |
110 | 111 |
|
111 | 112 |
|
0 commit comments