|
1 | | -<div class="max-w-lg mx-auto mt-12 p-6 bg-white rounded-lg shadow-md"> |
2 | | - <div class="mb-8"> |
3 | | - <h1 class="text-2xl font-bold mb-2">Link Details</h1> |
4 | | - <a href="{{ $link->url }}" target="_blank" class="text-blue-600 hover:underline"> |
5 | | - {{ $link->url }} |
6 | | - </a> |
7 | | - <div class="mt-4 text-xl"> |
8 | | - Total Rating: <span class="font-bold">{{ $this->totalRating }}</span> |
9 | | - </div> |
10 | | - </div> |
| 1 | +<x-layouts.app> |
| 2 | + <div class="py-12"> |
| 3 | + <div class="max-w-7xl mx-auto sm:px-6 lg:px-8"> |
| 4 | + <div class="bg-white dark:bg-gray-800 overflow-hidden shadow-sm sm:rounded-lg"> |
| 5 | + <div class="p-6 text-gray-900 dark:text-gray-100"> |
| 6 | + <h1 class="text-2xl font-bold mb-4">Link Details</h1> |
| 7 | + <a href="{{ $link->url }}" target="_blank" class="text-blue-600 dark:text-blue-400 hover:underline"> |
| 8 | + {{ $link->url }} |
| 9 | + </a> |
| 10 | + <div class="mt-4 text-xl"> |
| 11 | + Total Rating: <span class="font-bold">{{ $this->totalRating }}</span> |
| 12 | + </div> |
11 | 13 |
|
12 | | - <div class="mb-8"> |
13 | | - <h2 class="text-xl font-bold mb-4">Rate This Link</h2> |
14 | | - @livewire('links.rating-slider', ['link' => $link]) |
15 | | - </div> |
| 14 | + <div class="mt-8"> |
| 15 | + <h2 class="text-xl font-bold mb-4">Rate This Link</h2> |
| 16 | + @livewire('links.rating-slider', ['link' => $link]) |
| 17 | + </div> |
16 | 18 |
|
17 | | - <div class="grid grid-cols-1 md:grid-cols-2 gap-8"> |
18 | | - <div> |
19 | | - <h2 class="text-xl font-bold mb-4">Positive Ratings ({{ $this->positiveRatings->count() }})</h2> |
20 | | - <div class="space-y-4"> |
21 | | - @foreach ($this->positiveRatings as $rating) |
22 | | - <div class="p-4 bg-green-50 rounded-lg"> |
23 | | - <div class="font-medium">Rating: {{ $rating->score }}</div> |
24 | | - @if ($rating->evidence->count() > 0) |
25 | | - <div class="mt-2 text-sm"> |
26 | | - Evidence: {{ $rating->evidence->count() }} items |
| 19 | + <div class="mt-8 grid grid-cols-1 md:grid-cols-2 gap-8"> |
| 20 | + <div> |
| 21 | + <h2 class="text-xl font-bold mb-4">Positive Ratings ({{ $this->positiveRatings->count() }}) |
| 22 | + </h2> |
| 23 | + <div class="space-y-4"> |
| 24 | + @foreach ($this->positiveRatings as $rating) |
| 25 | + <div class="p-4 bg-green-50 dark:bg-green-900/20 rounded-lg"> |
| 26 | + <div class="font-medium">Rating: {{ $rating->score }}</div> |
| 27 | + @if ($rating->evidence->count() > 0) |
| 28 | + <div class="mt-2 text-sm"> |
| 29 | + Evidence: {{ $rating->evidence->count() }} items |
| 30 | + </div> |
| 31 | + @endif |
| 32 | + </div> |
| 33 | + @endforeach |
27 | 34 | </div> |
28 | | - @endif |
29 | | - </div> |
30 | | - @endforeach |
31 | | - </div> |
32 | | - </div> |
| 35 | + </div> |
33 | 36 |
|
34 | | - <div> |
35 | | - <h2 class="text-xl font-bold mb-4">Negative Ratings ({{ $this->negativeRatings->count() }})</h2> |
36 | | - <div class="space-y-4"> |
37 | | - @foreach ($this->negativeRatings as $rating) |
38 | | - <div class="p-4 bg-red-50 rounded-lg"> |
39 | | - <div class="font-medium">Rating: {{ $rating->score }}</div> |
40 | | - @if ($rating->evidence->count() > 0) |
41 | | - <div class="mt-2 text-sm"> |
42 | | - Evidence: {{ $rating->evidence->count() }} items |
| 37 | + <div> |
| 38 | + <h2 class="text-xl font-bold mb-4">Negative Ratings ({{ $this->negativeRatings->count() }}) |
| 39 | + </h2> |
| 40 | + <div class="space-y-4"> |
| 41 | + @foreach ($this->negativeRatings as $rating) |
| 42 | + <div class="p-4 bg-red-50 dark:bg-red-900/20 rounded-lg"> |
| 43 | + <div class="font-medium">Rating: {{ $rating->score }}</div> |
| 44 | + @if ($rating->evidence->count() > 0) |
| 45 | + <div class="mt-2 text-sm"> |
| 46 | + Evidence: {{ $rating->evidence->count() }} items |
| 47 | + </div> |
| 48 | + @endif |
| 49 | + </div> |
| 50 | + @endforeach |
43 | 51 | </div> |
44 | | - @endif |
| 52 | + </div> |
45 | 53 | </div> |
46 | | - @endforeach |
| 54 | + </div> |
47 | 55 | </div> |
48 | 56 | </div> |
49 | 57 | </div> |
50 | | -</div> |
| 58 | +</x-layouts.app> |
0 commit comments